2025-01-21 01:23 AM - edited 2025-01-21 01:56 AM
Hello,
I am trying make a USB device MSC.
It works fine with SD card, but I want both SD card and flash.( I set max_lun to 1.)
I have wrote the SPI_Flash_Write and SPI_Flash_Read that can be called by MAL_Write and MAL_Read.
It seems work fine cause I can format the flash disk on my computer and put files into the disk.
However, everytime I turn off my board and turn on it, it ask me to format the disk again and again.
I have searched many solutions. Someone said that I should use FATFS f_mkfs to format first.
I tried but not worked , is that true or any other problem I missed ?
Regards,
thonsha