RetroBrew Computers Forum
Discussion forum for the RetroBrew Computers community.

Home » RBC Forums » General Discussion » Problems with SD Card on SC130 board and ROMWBW
Problems with SD Card on SC130 board and ROMWBW [message #7437] Mon, 06 April 2020 14:50 Go to next message
wtim55 is currently offline  wtim55
Messages: 13
Registered: September 2018
Location: Sao Paulo SP, BR
Junior Member
Hello everyone,

Did anyone have problems with SD Card on the SC130 board?
I'm having an answer when turning on the board:

SD0: INITIALIZATION TIMEOUT [6940000000000100]

After the reset the answer is:

SD0: COMMAND ERROR [4000000000950B00]
SD0: COMMAND TIMEOUT [7700000000000000]

I have only 128 and 256 Mb SD Cards.
I would appreciate any help

Jorge
Re: Problems with SD Card on SC130 board and ROMWBW [message #7439 is a reply to message #7437] Mon, 06 April 2020 15:58 Go to previous messageGo to next message
Wayne W is currently offline  Wayne W
Messages: 385
Registered: October 2015
Location: Fallbrook, California, US...
Senior Member
Hi Jorge,

There was one other report about an SD Card not working on an SC131 a few days ago. However, the error was different. The Google Group posting is here.

It doesn't matter as far as I know, but would like to know what version of RomWBW firmware you are running.

How are you powering your board? SD Card are known to have a current inrush during initialization and there have been issues when power quality was not solid.

For what it is worth, my SC131 + SD Card is working fine, but I am using a higher capacity SD Card. I don't have any SD Cards below 1GB in capacity.

Thanks,

Wayne
Re: Problems with SD Card on SC130 board and ROMWBW [message #7442 is a reply to message #7439] Mon, 06 April 2020 17:29 Go to previous messageGo to next message
wtim55 is currently offline  wtim55
Messages: 13
Registered: September 2018
Location: Sao Paulo SP, BR
Junior Member
Hi Wayne,

I didn't know about the SC130 / 13 from the Google Group. Thanks for the information. I think I put my question in the wrong place. I'm sorry for this.

I am using version 292p28 but I did a test with version 3.0 and the result was the same.

I'm powering the board with 5V / 1A power supplies that are the same as the ones I use on Zeta and N8 boards.
No similar problem with the Zeta or the N8.

I got a 2GB SD card and the result was the same.

Thank you for your attention

Jorge


/forum/index.php?t=getfile&id=1725&private=0


/forum/index.php?t=getfile&id=1726&private=0


Re: Problems with SD Card on SC130 board and ROMWBW [message #7443 is a reply to message #7442] Mon, 06 April 2020 18:04 Go to previous messageGo to next message
Wayne W is currently offline  Wayne W
Messages: 385
Registered: October 2015
Location: Fallbrook, California, US...
Senior Member
Hmmm... the SD card interface circuit in the N8 is virtually identical to the one in the SC130 and, therefore, so is the SD driver code in RomWBW. So, if the same SD card is working in N8, but not in the SC130, it is odd. The errors imply the card is not responding. So, check the circuit paths to the SPI interface on the SC130 carefully. Also, look carefully at the SPI/SD adapter card you are using on the SC130 -- those things are not always the best quality. If you have another SPI/SD adapter, definitely try that.

I was unable to view either of the links you added to your message. They both download as zero bytes -- no idea why.

-Wayne
Re: Problems with SD Card on SC130 board and ROMWBW [message #7444 is a reply to message #7443] Mon, 06 April 2020 18:34 Go to previous messageGo to next message
wtim55 is currently offline  wtim55
Messages: 13
Registered: September 2018
Location: Sao Paulo SP, BR
Junior Member
So I checked the SD Card control pins for activity and everyone has activity. CS remains low while SCK, MISO and MOSI show intense activity and then CS goes to a high level and all activity on the control pins stops.

I tried to change the adapter (I have several) and the answer was the same.

The attached images are of a 2GB SD card and a 256MB
The 2GB SD Card appears at startup as SDSC and the 256MB SD Card does not appear at all.



/forum/index.php?t=getfile&id=1728&private=0



/forum/index.php?t=getfile&id=1729&private=0
  • Attachment: image500.jpg
    (Size: 77.87KB, Downloaded 691 times)
  • Attachment: Image600.jpg
    (Size: 77.99KB, Downloaded 669 times)

[Updated on: Mon, 06 April 2020 18:36]

Report message to a moderator

Re: Problems with SD Card on SC130 board and ROMWBW [message #7445 is a reply to message #7444] Mon, 06 April 2020 19:03 Go to previous messageGo to next message
Wayne W is currently offline  Wayne W
Messages: 385
Registered: October 2015
Location: Fallbrook, California, US...
Senior Member
OK, well sounds like the signals are good. Also sounds like you have ruled out the SD Adapter.

There is one problem with the RomWBW configuration you are running.  It is setup to look for 2 SD Cards.  There is only one SPI interface on the SC130.  It should only look for 1 SD card.  Probing for a second SD Card may cause some problems for the first card in a system with only a single SPI interface. I don't think this is your problem, but can you try the v3.0.1 firmware posted at the RomWBW GitHub Respository

The 2GB SD Card seems like it might be close to working.  In order for you to get to the "SDSC" message, there had to have been some data exchange with the SD Card.

-Wayne
Re: Problems with SD Card on SC130 board and ROMWBW [message #7447 is a reply to message #7445] Mon, 06 April 2020 19:48 Go to previous messageGo to next message
wtim55 is currently offline  wtim55
Messages: 13
Registered: September 2018
Location: Sao Paulo SP, BR
Junior Member
I did an attempt with the latest version of Romwbw.
Configured for only one SD Card
I am attaching the result.


/forum/index.php?t=getfile&id=1730&private=0
  • Attachment: Image700.jpg
    (Size: 74.39KB, Downloaded 662 times)
Re: Problems with SD Card on SC130 board and ROMWBW [message #7449 is a reply to message #7447] Mon, 06 April 2020 21:31 Go to previous messageGo to next message
Wayne W is currently offline  Wayne W
Messages: 385
Registered: October 2015
Location: Fallbrook, California, US...
Senior Member
OK, so that did not make any difference. Sorry.

I will think about this some more. At the moment, I don't have any additional suggestions.

If you are comfortable doing a custom build, you could add the following line to your SCZ180_130.asm config file and build a new ROM. This will cause a lot more diagnostic output during SD Card initialization.

SDTRACE		.SET	3

-Wayne
Re: Problems with SD Card on SC130 board and ROMWBW [message #7452 is a reply to message #7449] Tue, 07 April 2020 13:32 Go to previous messageGo to next message
wtim55 is currently offline  wtim55
Messages: 13
Registered: September 2018
Location: Sao Paulo SP, BR
Junior Member
Hi Wayne,

I include the command line you requested.
This first image refers to a pre-tested 128MB SD Card.


/forum/index.php?t=getfile&id=1732&private=0



This second image refers to a 2GB SD Card, also pre-tested.

Thanks


/forum/index.php?t=getfile&id=1733&private=0
  • Attachment: Image900.jpg
    (Size: 72.42KB, Downloaded 607 times)
  • Attachment: Image800.jpg
    (Size: 86.24KB, Downloaded 555 times)
Re: Problems with SD Card on SC130 board and ROMWBW [message #7453 is a reply to message #7452] Tue, 07 April 2020 16:26 Go to previous messageGo to next message
Wayne W is currently offline  Wayne W
Messages: 385
Registered: October 2015
Location: Fallbrook, California, US...
Senior Member
Thanks Jorge.

This seems to show that there is some data exchange going on (especially with the 2GB card). It is very odd how there are several successful transactions, then suddenly a command timeout. I'm sorry, I have no idea what is happening here.

It seems like the CS line is being dropped, but I don't see why that would happen and it sounds like you already confirmed it is behaving correctly.

On the Google Groups thread, Steve Cousins did some explicit testing on SC130 and SC131 and SD Card access was working fine. He was using v3.0 of RomWBW, but you have tried that as well.

I'm sorry, I don't have any good ideas at this point.

-Wayne
Re: Problems with SD Card on SC130 board and ROMWBW [message #7454 is a reply to message #7453] Tue, 07 April 2020 17:02 Go to previous messageGo to next message
Wayne W is currently offline  Wayne W
Messages: 385
Registered: October 2015
Location: Fallbrook, California, US...
Senior Member
Hi Jorge,

The possibility of older SD Cards being problematic has come up on the Google Groups thread. A 2GB card is probably still pretty old (comparatively). Do you have access to anything newer?

Regardless, I am trying to track down some older microSD cards to do some testing.

-Wayne
Re: Problems with SD Card on SC130 board and ROMWBW [message #7456 is a reply to message #7454] Tue, 07 April 2020 18:35 Go to previous messageGo to next message
wtim55 is currently offline  wtim55
Messages: 13
Registered: September 2018
Location: Sao Paulo SP, BR
Junior Member
Hi Wayne

I was watching the Google Groups thread on N class and K class CPUs and made some changes to the SC130.

Here are the results:

With the Z8S180-K class CPU (Z8S18020VSC) the SD Cards do not work. Neither 128MB nor 2GB.

With the Z8S180-N class CPU (Z8S18033VSC) both SD Cards
work perfectly.

Unfortunately I don't have newer SD Cards for testing.

I tested with 3 Z8S180-K CPUs and none worked.
And I also tested 4 Z8S180-N CPUs and they all worked well.

Thanks Wayne

Jorge
Re: Problems with SD Card on SC130 board and ROMWBW [message #7457 is a reply to message #7456] Tue, 07 April 2020 18:50 Go to previous message
Wayne W is currently offline  Wayne W
Messages: 385
Registered: October 2015
Location: Fallbrook, California, US...
Senior Member
Thank you Jorge. This is extremely helpful.

So, the good news is that I guess you now have a functional system as long as you use a -N processor.

I have some -K processors on their way from China, so I will see if I can figure out the issue with the -K's once I get them (a couple weeks if lucky). It is unclear to me whether the issue is hardware or software at this point.

I am going to cross post your comments to the Google Groups forum -- will be helpful for all.

-Wayne
Previous Topic: Free Parts for Vintage Builds (COSMAC, SC/MP, Z80, etc.)
Next Topic: CPLD: glue only or functional blocks too?


Current Time: Sun Mar 16 02:08:25 PDT 2025

Total time taken to generate the page: 0.00676 seconds