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

fmount fails when fs_config moved to ext. RAM

Dear Keil Support Team

I'm facing a problem with the File System Driver and SD Cards.
For memory optimizations I moved the FS_CONFIG.o (+ZI) section to the external RAM.
However, if I'm doing so a cannot write to the SD Card and sometimes even fmount() fails with an fsMediaError. NAND acces works fine.
If I move the FS_CONFIG.o (+ZI) back to the internal RAM everything works.

What is neccessary to do if I want to move this section?

Thak you in advance for your help.

Regards
Benjamin

Parents
  • First off - Keil's support team is accessed by the links at the top or bottom of every web page. This is an end-user forum, so even if Keil staff regularly picks up threads here you can't depend on it.

    About your problem - have you initialized the memory controller before the startup code tries to zero-initialize all ZI-class variables? The driver code will probably be very unhappy if all global variables hasn't been given their expected initial values.

Reply
  • First off - Keil's support team is accessed by the links at the top or bottom of every web page. This is an end-user forum, so even if Keil staff regularly picks up threads here you can't depend on it.

    About your problem - have you initialized the memory controller before the startup code tries to zero-initialize all ZI-class variables? The driver code will probably be very unhappy if all global variables hasn't been given their expected initial values.

Children