2021-01-25 06:05 AM
Hello,
I have a board with STM32F407VET microcontroller, W25Q16 and microSD connector.
Writing and reading information from W25Q16 without USB works (using library https://github.com/nimaltd/w25qxx).
SD card via USB works (I found an example somewhere, I definitely couldn't do it myself).
Can you advise what I am doing wrong in this project? There is nowhere else to go wrong, except "STORAGE_Read_FS" and "STORAGE_Write_FS", but what is wrong I can't understand.
Maybe someone has an example of USB Mass Storage with a different SPI Flash?
2023-04-10 12:08 PM
Hello,
Many month later, my question is the identical... do you found an issue ?
tell me more :)
2023-04-10 12:42 PM
2+ years..
Well even with CubeMX you're likely to need to actually add code to do the reading and writing of the NOR Flash memory. With the writing you'll also need to handle erasing the existing block so you can write the new one.
Would recommend first that you build and test a read/write block program, and validate that.
Would recommend using 4KB blocks(sectors) as this is the minimum erase size.