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
You haven't said what filesystem you're using.
while( finit(NULL) != 0 ) { /* Wait until the Card is ready */ if( !(count--) ) { error_finit=1; break; } }
Doesn't finit() return a value to indicate the nature of the error?
Or, is there some kind of global error variable, or a function to get the "last error"?
If you have the source for the filesystem, have you stepped into finit() to see exactly where it's failing, and how?