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
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)