Can all registered uses please login, even just for a few minutes..
It helps build a picture where our "good traffic" is coming from..
Thanks :)
It helps build a picture where our "good traffic" is coming from..
Thanks :)
General Stuff(tm)
- stephen_usher
- Site sponsor

- Posts: 7464
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: General Stuff(tm)
Can I stop hitting my head against a brick wall now?!
I'm trying to set the state of GPIO pin 28. According to the get output level function call the pin voltage is going up and down. However, the real-world voltage isn't changing. This worked in micropython so that must be doing something magical.
If I use the default setting for the pin then it's always low. If I set the pin function to "NULL", i.e. doesn't use a special hardware function such as SPI etc., then the pin is always high. Also, if I don't turn the pull-ups on then the output floats, even though Pico GPIO pins set to output should always be driven and are never tri-stated. (Another function confirms that the data direction is "out".)
I'm trying to set the state of GPIO pin 28. According to the get output level function call the pin voltage is going up and down. However, the real-world voltage isn't changing. This worked in micropython so that must be doing something magical.
If I use the default setting for the pin then it's always low. If I set the pin function to "NULL", i.e. doesn't use a special hardware function such as SPI etc., then the pin is always high. Also, if I don't turn the pull-ups on then the output floats, even though Pico GPIO pins set to output should always be driven and are never tri-stated. (Another function confirms that the data direction is "out".)
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
- stephen_usher
- Site sponsor

- Posts: 7464
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: General Stuff(tm)
Erm... it mysteriously fixed itself and started working without me doing anything.
I don't trust things which do that as it probably means that it'll mysteriously stop working again at some point.
However, I have discovered that I need more pull-ups. Goodness knows how the python version worked fine but the C version has low voltages on the 5V data lines (as in 2V!).
I don't trust things which do that as it probably means that it'll mysteriously stop working again at some point.
However, I have discovered that I need more pull-ups. Goodness knows how the python version worked fine but the C version has low voltages on the 5V data lines (as in 2V!).
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
- stephen_usher
- Site sponsor

- Posts: 7464
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: General Stuff(tm)
The pull-ups did their thing. The data lines are at a reasonable voltage now.
However, things aren't working. The Pico isn't able to write to the data bus, but it can read. I've tried re-initialising the data bus pins after changing direction but nothing. Still everything else is reliable.
I've got a decent set up and worked out a workflow for compilation and debugging.
Taking out all of the debugging text does speed things up a bit. Here's a trace of the Apricot testing to see if the hard disk interface is there by writing 2049 bytes to the data buffer (one byte at a time to the same address) and then trying to read back the first byte. It fails only because the Pico isn't outputting the data onto the bus.
As you can see the data burst takes about 16ms, so that's about 125KB/s without using PIO etc. or any real optimisation. Probably not far off the original 10MB hard drive speed actually.
Now, if only I could write data to the host! (It must be possible as the micropython program could do it.)
However, things aren't working. The Pico isn't able to write to the data bus, but it can read. I've tried re-initialising the data bus pins after changing direction but nothing. Still everything else is reliable.
I've got a decent set up and worked out a workflow for compilation and debugging.
Taking out all of the debugging text does speed things up a bit. Here's a trace of the Apricot testing to see if the hard disk interface is there by writing 2049 bytes to the data buffer (one byte at a time to the same address) and then trying to read back the first byte. It fails only because the Pico isn't outputting the data onto the bus.
As you can see the data burst takes about 16ms, so that's about 125KB/s without using PIO etc. or any real optimisation. Probably not far off the original 10MB hard drive speed actually.
Now, if only I could write data to the host! (It must be possible as the micropython program could do it.)
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
- stephen_usher
- Site sponsor

- Posts: 7464
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: General Stuff(tm)
I've resorted to asking a question on the Rapsberry Pi forums as GPIO0-GPIO6 are not outputting anything but GPIO7 is working correctly.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
- stephen_usher
- Site sponsor

- Posts: 7464
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: General Stuff(tm)
Oh, it's working now!
Anyway, now starting on the rest of the state machines. The machine now thinks that it has a hard drive and the first couple of commands, which are simple (ScanID and Restore) have been written and seem to work as the machine expects.
I think next will be Seek before the more complex ones, such as Read and especially Write and Format.
Anyway, now starting on the rest of the state machines. The machine now thinks that it has a hard drive and the first couple of commands, which are simple (ScanID and Restore) have been written and seem to work as the machine expects.
I think next will be Seek before the more complex ones, such as Read and especially Write and Format.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
- stephen_usher
- Site sponsor

- Posts: 7464
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: General Stuff(tm)
Just as I thought that I was getting somewhere the last of my microSD cards walked out. That's three which have died this weekend and they've not all been connected to the same devices and I've been careful not to touch the contacts.
That's rather brought me to a crashing halt on the project as I now have no storage for the disk images and the system can't work without one.
Well, I won't get one until Tuesday now it seems.
That's rather brought me to a crashing halt on the project as I now have no storage for the disk images and the system can't work without one.
Well, I won't get one until Tuesday now it seems.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
- rubber_jonnie
- Site Admin

- Posts: 15073
- Joined: Thu Aug 17, 2017 7:40 pm
- Location: Essex
- Contact:
Re: General Stuff(tm)
All the same make? Bit rubbish for them all to go over the same weekend.stephen_usher wrote: Sun Jan 15, 2023 10:35 pm Just as I thought that I was getting somewhere the last of my microSD cards walked out. That's three which have died this weekend and they've not all been connected to the same devices and I've been careful not to touch the contacts.
That's rather brought me to a crashing halt on the project as I now have no storage for the disk images and the system can't work without one.
Well, I won't get one until Tuesday now it seems.
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
- stephen_usher
- Site sponsor

- Posts: 7464
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: General Stuff(tm)
Yes, I think they're all from the same Raspberry Pi branded 8GB cards I bought about 4 years ago.rubber_jonnie wrote: Sun Jan 15, 2023 11:13 pmAll the same make? Bit rubbish for them all to go over the same weekend.stephen_usher wrote: Sun Jan 15, 2023 10:35 pm Just as I thought that I was getting somewhere the last of my microSD cards walked out. That's three which have died this weekend and they've not all been connected to the same devices and I've been careful not to touch the contacts.
That's rather brought me to a crashing halt on the project as I now have no storage for the disk images and the system can't work without one.
Well, I won't get one until Tuesday now it seems.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
- rubber_jonnie
- Site Admin

- Posts: 15073
- Joined: Thu Aug 17, 2017 7:40 pm
- Location: Essex
- Contact:
Re: General Stuff(tm)
Thats rather peculiar, dodgy batch maybe? I think over all the years I've been using SD cards (All types) I've had just one die on me, and that was a microSD in an RPi. It died after a power cut, went read only on me.stephen_usher wrote: Sun Jan 15, 2023 11:18 pmYes, I think they're all from the same Raspberry Pi branded 8GB cards I bought about 4 years ago.rubber_jonnie wrote: Sun Jan 15, 2023 11:13 pm
All the same make? Bit rubbish for them all to go over the same weekend.
These days I just back up regularly with Win32 Disk Imager, but for all 3 to die, that sucks
Collector of many retro things!
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
800XL and 65XE both with Ultimate1MB,VBXL/XE & PokeyMax, SIDE3, SDrive Max, 2x 1010 cassette, 2x 1050 one with Happy mod, 3x 2600 Jr, 7800 and Lynx II
Approx 20 STs, including a 520 STM, 520 STFMs, 3x Mega ST, MSTE & 2x 32 Mhz boosted STEs
Plus the rest, totalling around 50 machines including a QL, 3x BBC Model B, Electron, Spectrums, ZX81 etc...
- stephen_usher
- Site sponsor

- Posts: 7464
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: General Stuff(tm)
As I've got the day off due to building works for my out building starting I popped down to Sainsbury's to get a microSD card from Argos.
Starting to make more progress.
The hosts is requesting disk reads now but I must have the signalling incorrect as the host never actually tries to read from the buffer. This is strange as I've followed the WD1010 data sheet to the letter using their flow chart.
Starting to make more progress.
The hosts is requesting disk reads now but I must have the signalling incorrect as the host never actually tries to read from the buffer. This is strange as I've followed the WD1010 data sheet to the letter using their flow chart.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.