cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f103 + W25q64 as mass storage device not working

Rithick_13
Associate II

Hi,

Im using stm32f103c8t6 along with w25q64 spi flash memory. I'm trying to do with this as a mass storage device but it is not working please help me with this.

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @Rithick_13 and welcome to the Community 🙂,

About the "usb was not recognized." issue could you please try to Increase Heap Size. For that, please take a look to this FAQ: USB device not recognized - STMicroelectronics Community may help you!

Thank you.

Kaouthar

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
gbm
Lead II

What did you do so far and what problem are you facing?

we enabled the usb mass storage device initially we tried to RAM as a mass storage device with stm32f407vgt6 that was working, then internal flash memory with stm32f407vgt6 this also working. but with external spi flash was not working. With same process we tested with stm32f103c8t6 it was showing usb was not recognized.

KDJEM.1
ST Employee

Hello @Rithick_13 and welcome to the Community 🙂,

About the "usb was not recognized." issue could you please try to Increase Heap Size. For that, please take a look to this FAQ: USB device not recognized - STMicroelectronics Community may help you!

Thank you.

Kaouthar

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

For USB-MSC or FatFS you'd want to be using 4KB Sectors.

The write sector functionality would require a 4KB erase, and then multiple 256-byte page writes to the NOR Flash

16 x 256 = 4096

For MSC you'd want to look at the INQUIRY, MODE PAGE, GET CAPACITY, READ and WRITE commands.

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