These days, I am doing some test on the internal flash with fatfs on stm32f401rc. And now, I know there is many sample with the SD card, and also in the cubemx, I find the example with SD card and USB device, but now, I think I should use user define function to use internal flash with fatfs.
And about f401rc, the internal flash like below:
so now, I want to use the last sector(128K) to store data, the test code is below:
Anyone have some suggestion or does there any example?