2024-02-17 01:49 AM
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.
Solved! Go to Solution.
2024-02-20 04:46 AM
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.
2024-02-17 02:06 AM
What did you do so far and what problem are you facing?
2024-02-17 02:13 AM
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.
2024-02-20 04:46 AM
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.
2024-02-20 06:28 AM
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.