Jump to content

SD card STM32f4 error


GuitarNut67

Recommended Posts

I may have messed up my STM32F4 board.  I accidentally plugged the 74HCT541 in backwards while trying to power it up for the first time.  No lights came on.  

I replaced both chips on the  core module and got the boot loader and LCD working.  I installed Midibox NG 1.032 but my SD card fails. :(

 

From MIOS Studio 2.4.6 (here are the details)

[319531.507] sdcard
[319531.499] SD Card Informations
[319531.500] ====================
[319531.500] ERROR: Reading CID failed with status -256!
[319531.500] ERROR: Reading CSD failed with status -256!
[319531.500] 
[319531.500] Reading Root Directory
[319531.500] ======================
[319531.500] SD Card: not connected
[319531.500] Failed to open root directory - error status: 12

[319531.500] done.

 

 

I tried two 8 gig sd cards (one Ultra) format FAT 32.

==========================

 

I checked continuity between the solder pads of the sd card before assembly nothing seemed to be causing a short circuit.

 

Is there a way to trouble shoot SDCard or Connector and the STM32F4 board ?

 

I couldn't locate error status codes while searching the forum.

 

Thanks, 

 

A confused GuitarNut

Link to comment
Share on other sites

I've never seen this before!

It seems that communication with the SD Card is working, but it doesn't behave like a common SD Card.

E.g. the CID contains some manufacturer informations, and the CSD some implementation parameters - they can be retrieved.

 

Would it be possible to try out a different SD Card from another manufacturer?

Can also be a very cheap one.

<= 4 GB cards should be preferred, 

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Thank you, for the quick response.

Yes, I will try a 4GB card to see if that makes it happy.

 

I did notice that the same errors occur when there is no SD card in the slot.

 

I removed the STM32F4 board from the socket and made a continuity test for all pins on the SD card and where they arrive at J16.

I notice some crossed lines in my test, I'm including a drawing showing my results.

 

In my continuity test, pin 9 & 6 of the SD card bridge both RC1 & RC2, while pin 3 joins them at RC1 of J16.

Is this a proper connection?

 

Thanks 

Link to comment
Share on other sites

Interesting, I didn't know this failure more yet.

 

Yes, if course - the two RC pins should be separated, there shouldn't be a short between the two pins.

 

You can doublecheck this by removing the STM32F4DISCOVERY board.

If there is still a short, check the appr. solder joints

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Ok,  I tried a 2 gig SD card with no improvement. :no:

 

Triple checked the solder connections on the board and SD card socket

these seem fine and, I was incorrect in my earlier post (I confused the orientation of J16

making me think I had a short between RC1 & RC2 it was actually Vs & Vs). 

 

Do you think I may have damaged the STM32F4 board by powering it up with an incorrectly oriented 74HCT541 chip?

 

I'm considering purchasing another STM32F4 for comparison.

 

Thanks 

Link to comment
Share on other sites

  • 4 weeks later...

OK, Finally completed a second Breakout board, this time it worked!  :smile:

 

Must have messed it up while building it. 

 

Please disregard the graphic earlier in the thread.  

I incorrectly labeled the connector.

I wouldn't want to confuse anyone.

 

If TK could delete this thread that would be OK with me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...