This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

microsd does not init

Hi, I followed the process of finit using stm32f4 discovery board (connected to microsd) and Kiel rtx, and received an error on finit but was able to format the microsd using the ARM in the next line. Anybody had such experience?

The only thing I did was change the pin assignment of cd (chip detect) from gpioh15 to gpioe15 because the chip did not have gpioh15.

Thx

Parents
  • Anyway, I decided the best way is to directly solder an SDCARD onto the board with the required pull up resistor values (47k).

    The problem is I noticed there are 9 pins on the sdcard not 10 (as per your supplied schematic).

    Internet references indicate the Dat3 & CD is the same pin?

    Thx

Reply
  • Anyway, I decided the best way is to directly solder an SDCARD onto the board with the required pull up resistor values (47k).

    The problem is I noticed there are 9 pins on the sdcard not 10 (as per your supplied schematic).

    Internet references indicate the Dat3 & CD is the same pin?

    Thx

Children
  • CD in this context is a mechanical switch in the socket which is physically actuated by the insertion of a card, per the 10 pins on the socket, one side is grounded, the other pulled to VCC.

    You should be able to test this switch function by observing a suitably programmed/configured GPIO pin.

  • I have rewired the microsd card 100% to your suggested circuit and the same problem occurs i.e. finit fails but the formatting to fat32 works like a charm. Cannot write to the card either.

    I am using a 4GB SDHC card, do I need special configuration to use that?

    Stack is set to 0x400; heap size is 0x800
    My crystal is 8MHz, Keil RTX is set to 60MHz,file system is 168 MHz (same as system clock)

    Thx