We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am using a STM32F207IG microcontroller, a SPI NOR Flash (M25P16) with Keil::MDK-Middleware EFS v6.2.0.
Init and Mounting works. Even "fcheck", "finfo()" and "ffree()" works.
I can write a file successfully, with the Standard I/O Routines "fopen", "fputs", "fflush" and "fclose".
The problem arise when I try to reopen the file for read what I wrote, fopen return NULL and ffind return fsError.
What can be? What can I do or check?
You can turn on the Event Recorder in uVision to get more hints about this issue: www.keil.com/.../index.html http://www.keil.com/support/man/docs/uv4/uv4_db_dbg_evr.htm
Now I'm using also the Event Recorder. When I call "fcheck" the function return "fsOK", but in the Event Recorder there is write in Red "DriveCheckSuccess". Why the return of the function and the event is different?
After I call "fformat", the function return "fsMediaError" and in the Event Recorder there is in Red "FlashEraseChipFailed".
But when I call "ffree" and "finfo" both return "fsOK", and from the Event Recorder I can see the call to "FileAllocRead" to the right sector of the memory.
I check the CS/NSS signal with the oscilloscope and the signal work right with the Select and Deselect operations.