# SD card STM32f4 error

**URL:** <https://forum.midibox.org/t/sd-card-stm32f4-error/18754>\
**Category:** MIDIbox NG\
**Tags:** ng, stem32f4, sd-card-error\
**Created:** [December 16, 2014, 7:42am UTC](https://forum.midibox.org/t/sd-card-stm32f4-error/18754 "2014-12-16T07:42:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuitarNut67](https://forum.midibox.org/user_avatar/forum.midibox.org/guitarnut67/32/516_2.png) [@GuitarNut67](https://forum.midibox.org/u/GuitarNut67)\
**Post date:** [December 16, 2014, 7:42am UTC](https://forum.midibox.org/t/sd-card-stm32f4-error/18754/1 "2014-12-16T07:42:43Z")

</div>

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

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

&nbsp;

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]&nbsp;

[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.

&nbsp;

&nbsp;

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

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

&nbsp;

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

&nbsp;

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

&nbsp;

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

&nbsp;

Thanks,&nbsp;

&nbsp;

A confused GuitarNut

---

<div class="post-metadata">

**Author:** ![T.K](https://forum.midibox.org/user_avatar/forum.midibox.org/t.k/32/7_2.png) [@T.K](https://forum.midibox.org/u/T.K)\
**Post date:** [December 16, 2014, 3:48pm UTC](https://forum.midibox.org/t/sd-card-stm32f4-error/18754/2 "2014-12-16T15:48:24Z")

</div>

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.

&nbsp;

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,&nbsp;

&nbsp;

Best Regards, Thorsten.

---

<div class="post-metadata">

**Author:** ![GuitarNut67](https://forum.midibox.org/user_avatar/forum.midibox.org/guitarnut67/32/516_2.png) [@GuitarNut67](https://forum.midibox.org/u/GuitarNut67)\
**Post date:** [December 16, 2014, 7:26pm UTC](https://forum.midibox.org/t/sd-card-stm32f4-error/18754/3 "2014-12-16T19:26:05Z")

</div>

Thank you, for the quick response.

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

&nbsp;

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

&nbsp;

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.

\<\_\_\_base\_url\_\_\_\>/gallery/image/2694-sd-card-trouble/?do=embed

&nbsp;

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?

&nbsp;

Thanks&nbsp;

---

<div class="post-metadata">

**Author:** ![T.K](https://forum.midibox.org/user_avatar/forum.midibox.org/t.k/32/7_2.png) [@T.K](https://forum.midibox.org/u/T.K)\
**Post date:** [December 16, 2014, 10:27pm UTC](https://forum.midibox.org/t/sd-card-stm32f4-error/18754/4 "2014-12-16T22:27:57Z")

</div>

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

&nbsp;

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

&nbsp;

You can doublecheck this by removing the STM32F4DISCOVERY board.

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

&nbsp;

Best Regards, Thorsten.

---

<div class="post-metadata">

**Author:** ![GuitarNut67](https://forum.midibox.org/user_avatar/forum.midibox.org/guitarnut67/32/516_2.png) [@GuitarNut67](https://forum.midibox.org/u/GuitarNut67)\
**Post date:** [December 18, 2014, 8:03am UTC](https://forum.midibox.org/t/sd-card-stm32f4-error/18754/5 "2014-12-18T08:03:29Z")

</div>

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

&nbsp;

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

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

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

&nbsp;

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

&nbsp;

I’m considering purchasing another STM32F4 for comparison.

&nbsp;

Thanks&nbsp;

---

<div class="post-metadata">

**Author:** ![GuitarNut67](https://forum.midibox.org/user_avatar/forum.midibox.org/guitarnut67/32/516_2.png) [@GuitarNut67](https://forum.midibox.org/u/GuitarNut67)\
**Post date:** [December 23, 2014, 4:12am UTC](https://forum.midibox.org/t/sd-card-stm32f4-error/18754/6 "2014-12-23T04:12:30Z")

</div>

Ok, Good news

&nbsp;

I ordered more STM32F4 boards and they all react the same with my Core breakout board.

I didn’t fry the processor board. 🙂

&nbsp;

Bad news, Still have a non-functioning SD interface.

&nbsp;

I guess I need to remove the current SD Connector and start over.

---

<div class="post-metadata">

**Author:** ![GuitarNut67](https://forum.midibox.org/user_avatar/forum.midibox.org/guitarnut67/32/516_2.png) [@GuitarNut67](https://forum.midibox.org/u/GuitarNut67)\
**Post date:** [January 19, 2015, 3:48am UTC](https://forum.midibox.org/t/sd-card-stm32f4-error/18754/7 "2015-01-19T03:48:14Z")

</div>

OK, Finally completed a second Breakout board, this time it worked!&nbsp; 😄

&nbsp;

Must have messed it up while building it.&nbsp;

&nbsp;

Please disregard the graphic earlier in the thread. &nbsp;

I incorrectly labeled the connector.

I wouldn’t want to confuse anyone.

&nbsp;

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