cancel
Showing results for 
Search instead for 
Did you mean: 

Source to READ/WRITE txt files from usb

OBorr.1
Associate II

Hello community!

In the project I'm working on, after the UART communication, I need to configure the USB to be able to read a txt file, creat or write another txt file and to update the frimware.

I'm asking you if there is any source that shows how to do this kind of things. If not, I would like to start reading the txt file in the usb.

I'm using HAL library, FATFS and USB_HOST only with MSC

Thanks for your help!

1 ACCEPTED SOLUTION

Accepted Solutions

OP wants a HOST

STM32Cube_FW_F4_V1.25.0\Projects\STM32F4-Discovery\Applications\FatFs\FatFs_USBDisk

STM32Cube_FW_F4_V1.25.0\Projects\STM324x9I_EVAL\Applications\USB_Host\FWupgrade_Standalone

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

View solution in original post

3 REPLIES 3

Hello @OBorr.1​ ,

We provide some examples in our Firmware package. You can refer to one of them.

For example, in the F7 CubeFW you can refer to this application:

  • Path: Projects\STM32756G_EVAL\Applications\USB_Device\MSC_Standalone.

BeST Regards,

Walid

OP wants a HOST

STM32Cube_FW_F4_V1.25.0\Projects\STM32F4-Discovery\Applications\FatFs\FatFs_USBDisk

STM32Cube_FW_F4_V1.25.0\Projects\STM324x9I_EVAL\Applications\USB_Host\FWupgrade_Standalone

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

Yes, that's right thank you.

@OBorr.1​  you can refer to the examples proposed by @Community member​.