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 have an eMMC connected to an STM32H7 via the SDMMC1 interface and am using the File System component provided by Keil.
The eMMC registers as M0:. In the debugger, the File System window shows everything looks good.
finit() and fmount() both return fsOK.
However, after these, when I use fopen("Test.txt", "w") the result is always NULL.
I do not have access to the source code and there are no events generated when this call fails.
How can I debug this?
I would do the same as in the debug target of our example projects:
The middleware manual shows you more details on how to do that. See: https://www.keil.com/pack/doc/mw/FileSystem/html/fs_create_app.html#fs_debugging
I already have tried using the debug events for the File System component (Variant: LFN Debug). All of the File System debug events enabled. As I mentioned earlier, fopen() does not generate any events when it fails (returns NULL).
Any other ideas?