ExtremeElectronics / Pico-SD--IDE-interface--for-Rc2014

Pico SD - IDE interface - for Rc2014
GNU General Public License v3.0
6 stars 3 forks source link

SD read but RomWBW not detecting IDE0 #2

Closed zomgugoff closed 1 month ago

zomgugoff commented 2 months ago

This is a follow-up on the post I made in the RomWBW repo. The IDE device is detected, but IDE0 and IDE1 are not. I read out the serial data from the Pico while it booted and it didn't report any errors. Below is the output. It specifies that IDE0 is open, but RomWBW says "NO MEDIA" for IDE0. When booting the RC2014, IO is logged also.

sd_spi_go_low_frequency: Actual frequency: 400000 V2-Version Card R3/R7: 0x1aa R3/R7: 0xff8000 R3/R7: 0xc0ff8000 Card Initialized: High Capacity Card SD card initialized SDHC/SDXC Card: hc_c_size: 29567 Sectors: 30277632 Capacity: 14784 MB sd_spi_go_high_frequency: Actual frequency: 12000000

SD INIT OK

Ini file rc2014.ini Exists Loading ...

Loaded INI

IDE0 Open OK

Trace:1

OK lets start the z80 stuff

Listning for IDE activity...

Start?:

OK

io:1C00 Wr reg[07]->40 064

io:1C00 Wr reg[07]->40 064

io:0C00 Wr reg[03]->01 001

io:1C00 Wr reg[07]->40 064

io:0C00 Wr reg[03]->01 001

ExtremeElectronics commented 1 month ago

Sorry, but as I mentioned on the WBW issues, I have no way of testing this I don't have a machine capable of running WBW with the interface.

ExtremeElectronics commented 1 month ago

Does the SD card interface work with a stock RC2014 build ?

wwarthen commented 1 month ago

Hi @zomgugoff,

Could you please post your rc2014.ini file? I will try to replicate your issue.

Thanks, Wayne

zomgugoff commented 1 month ago

I have not tried a stock build. I can try it. I will post my INI when I get home. I can say it's unchanged from the WBW INI except for fixing the image filename (because the archived filename is slightly different)

zomgugoff commented 1 month ago

@wwarthen Here is my INI

#
# RC2014 ROM WBW configuration #
#

[IDE]
#file to use for IDE drives;
idefilei = "RomWBWIDE.id";
iscf = 0;
idefile = "hd_combo-RC2014 Zed.img";

[DEBUG]
trace=1;

#for other settings see README
wwarthen commented 1 month ago

@zomgugoff, your rc2014.ini matches mine (except I don't have trace enabled). This configuration is working for me. I'm not sure what to suggest.

-Wayne

zomgugoff commented 1 month ago

Do you have any output with trace enabled I can look at? I would be curious to see what I should be seeing. Also, if I were to make my image file available, would that be worth testing?

zomgugoff commented 1 month ago

@ExtremeElectronics I only have the 512K RAM/ROM board. I don't think I can run stock ROMs. But in the most minimal config, It's still reporting no media.

wwarthen commented 1 month ago

@zomgugoff, I captured this log file showing the initial power-up of the board followed by RomWBW booting.

boot.log

Thanks, Wayne

zomgugoff commented 1 month ago

Aha, I see only writes in my output whereas you have reads and writes. I'm afraid I don't know enough about the Pico nor the RC2014 to discern what is to/from on those lines, but obviously, I've only got 1-way communication. Thank you for doing that.

zomgugoff commented 1 month ago

And now, I will reveal a simple case of user error:

I started re-poking the solder joints and found a short between GPIO14 and GPIO15. In the process of tracking this down, I attempted to remove RN2 (where I initially found the short) and broke pins 2-6 off. They were still in the board, so I reattached the remaining legs and at the very least, IDE0 is now detected.

I apologize for the run-around in tracking this issue down. I now have to make an 'order of shame' for a new resistor network.

Thanks again for putting up with my self-inflicted issue.