How to store a text file in STM32F4 using USB Mass Storage Class and FATFS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-02 9:36 PM
I'm not able to create txt file, what issue , can you provide source code? please help me.
- Labels:
-
FatFS
-
STM32F4 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-03 12:48 AM
Hello @ADevg.1 and welcome to the Community :),
I recommend you to get started with the example provided here STM32CubeF4/Projects/STM32469I-Discovery/Applications/USB_Host/MSC_Standalone.
This example can help you to use the USB host application based on the Mass Storage Class (MSC) on the STM32F4xx devices and to write a small text file (less to 1 KB) on the USB flash disk.
Also, I advise you to take a look at this wiki.
I hope this help 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-07 3:34 AM
Using Flash memory to create text file , is it possible ? without use any external USB or SD card. .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-07 3:51 AM
Yes, it's just a collection of bytes.
The larger 128KB Flash blocks are a bit awkward to manage.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-08 11:57 PM
I'm allocate 128KB Flash block size, but file not created and unable to complete the format. https://github.com/ankitdevganiya13/STM32_USB_MSC_FATFS/tree/master
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-09 12:02 AM
Sir, I'm allocate 128KB Flash block size, but file not created and unable to format.
https://github.com/ankitdevganiya13/STM32_USB_MSC_FATFS/tree/master
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-31 4:36 AM
Any reply ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-31 5:47 AM
Hello @ADevg.1 ,
Could you please check these posts:
- How to store a file in pendrive as pdf in STM32 using Mass Storage Class and FATFS?
- problem mapping NAND flash to PC through USB_MSC (st.com)
I hope this helps!
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-04-04 3:15 AM
Hi @ADevg.1
IIRC, you are configuring the STM32 as an USB storage device and want to write data using the windows machine on the internal flash of the STM32?
is this correct?
