cancel
Showing results for 
Search instead for 
Did you mean: 

f_open(&fil, "w_test.txt", FA_CREATE_ALWAYS | FA_WRITE)

OLYMPIA
Associate

Could you show me that "f_open(&fil, "w_test.txt", FA_CREATE_ALWAYS | FA_WRITE)" get "NOT READY FR_OK" ?

When I used "NUCLEO F722", I get "NOT READY FR_OK". But when I used "NUCLEO L476", I get FR_OK.

I checked wiring so many times.

3 REPLIES 3
SofLit
ST Employee

Hello,

STM32F7 and STM32F4 are not the same product.

Answering to your question according to what provided is not obvious.

Meanwhile, I suggest you to refer to this video how to setup FatFs with SDCard on F7 product.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Andrew Neil
Evangelist III

@OLYMPIA wrote:

I get "NOT READY FR_OK".


Do you mean FR_NOT_READY ?

http://elm-chan.org/fsw/ff/doc/rc.html#:~:text=FR_NOT_READY,device%20has%20broken.

 


@OLYMPIA wrote:

When I used "NUCLEO F722", I get "NOT READY FR_OK". But when I used "NUCLEO L476", I get FR_OK.


So step through both, and see where they differ.

Have you used a logic analyser to see what's going on in the hardware?

You can't debug the block IO furnished via the DISKIO layer at the top-level.

There's more involved than wiring.. but you've presented none of that.

Not Ready is usually from the GPIO pin associated with the socket card detection switch, but can also come from the card itself.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..