Hello Laser, If you created a file, written to it and closed it, then you should try using fx_media_flush to make sure that all buffers are flushed and data is actually written to the SD card (I'm not sure how crucial this is for sdmmc, but it's quite important for USB, for example). As for static storage type - if your FX_FILE structure is declared outside of function scope, then it will be allocated somewhat statically anyway (however the symbol emitted will be accessible from other files). The main problem would be when FX_FILE is created inside the function as it would no longer be valid once that function returns. Also, make sure you're not calling fx_media_close before opening the file again as this unmounts the media and you won't be able to access it until it's mounted again. Regards
↧