cancel
Showing results for 
Search instead for 
Did you mean: 

How to save the usb data into Flash of stm32f4discovery at run time?

mostnillstudent
Associate
Posted on May 24, 2016 at 05:58

Hello All!

How to save the usb data into Flash of stm32f4discovery at run time?

Please, could anyone help me?

I need to store some  USB text data to Flash after the program start.

I want allocate for this data to any  Sector in Flash area of stm32f407/5.

Which mode of USB is better for this type of communication?

I have tried with USBFatFs example of stm32f4discovery but result is unsuccessful!!

2 REPLIES 2
Walid FTITI_O
Senior II
Posted on May 24, 2016 at 12:38

Hi saleem.faisal.001,

I recommend you to try using the CDC example at this path Applications\USB_Device\CDC_Standalone

-Hannibal-

Posted on May 24, 2016 at 14:57

Writing to flash can cause real-time execution issues which USB might not be able to handle. Consider if this is an issue here, and if running from RAM would resolve.

The blocking size of the STM32 isn't particularly compatible with the size sectors used by FatFs. Consider writing data to an external device, or MicroSD card, etc

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