Skip to main content
Visitor II
January 25, 2021
Question

USB Mass Storage + SPI Flash W25Qxx

  • January 25, 2021
  • 1 reply
  • 2150 views

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

    This topic has been closed for replies.

    1 reply

    Explorer
    April 10, 2023

    Hello,

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

    tell me more :)

    Graduate II
    April 10, 2023

    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.