cancel
Showing results for 
Search instead for 
Did you mean: 

USB Mass Storage + SPI Flash W25Qxx

Sasha_
Associate III

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?0693W000007CXroQAG.png0693W000007CXrUQAW.png0693W000007CXm6QAG.png0693W000007CXsNQAW.png0693W000007CXQyQAO.png

2 REPLIES 2
jlecl.1
Associate III

Hello,

Many month later, my question is the identical... do you found an issue ?

tell me more 🙂

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.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..