STM32F407 FATFS mount error (no file system) after exiting stop mode.
I'm using FATFS with DMA to read/write a SD card. Everything works fine until I introduced low power mode to my code.
Currently, I just run the init function generated with cubemx and mount again after waking up. After the first wakeup, everything still works, mount, open, write, close all return success, but after the second wakeup, mount returns FR_NO_FILESYSTEM. As far as I can tell, the filesystem collapsed as soon as write operation after the first wakeup before entering stop mode the second time, despite it returns success.
It's the first time I ever come across low power mode so it may be just some basic problem but I really have no idea. What do I need to do with FATFS/SDIO before entering and after exiting stop mode to make it work properly?
