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

EFS on SPI NOR FLASH and STM32F2xx uC

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?

Parents
  • 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.

Reply
  • 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.

Children
No data