Skip to main content
Visitor II
October 14, 2021
Solved

Source to READ/WRITE txt files from usb

  • October 14, 2021
  • 1 reply
  • 1941 views

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!

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    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

    1 reply

    Visitor II
    November 15, 2021

    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

    Graduate II
    November 15, 2021

    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

    Visitor II
    November 16, 2021

    Yes, that's right thank you.

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