Skip to main content
Visitor II
January 4, 2024
Solved

STM32F413CGU6 FW upgrade using USB

  • January 4, 2024
  • 3 replies
  • 1268 views

Hi. I am luis

I have question about STM32F413CGU6 FW upgrade using USB

Q1. how can I setting Stm32CubeIDE usb parameters?? FW upgrade is only use "OTG"??

I can use USB mode only "host" or "device".

luisfynn1_0-1704350751380.png

Q2. Is there another setting for standalone USB setting?? If it exist, please tell me.

 

Q3. I have tried to use standalone FW upgrade code(stm32 github).but I found some files is missing. 

where can I find these files??? 

ref: https://github.com/STMicroelectronics/STM32CubeF4/blob/master/Projects/STM32469I-Discovery/Applications/USB_Host/FWupgrade_Standalone/

below box files is missing upper git url...

luisfynn1_1-1704351045431.png

 

    This topic has been closed for replies.
    Best answer by Pavel A.

    > some files is missing. where can I find these files??? 

    Hi @luisfynn1  These missing files are in the directories above the project. When you install the STM32F4 firmware package in the normal way in the CubeIDE or CubeMX, you will get the whole thing with all the libraries. Then import the project in CubeIDE, refresh and rebuild. It should find all files. 

    But the question is, whether this host mode example is what you're looking for. You may want a device mode example instead as TDK suggests. Anyway, if you cannot manage to build this project successfully, it means that something is wrong with your setup (CubeIDE + F4 firmware package) ... or somebody tinkered with the project (then delete & reinstall the f/w package).

    3 replies

    Technical Moderator
    January 4, 2024

    Hello @luisfynn1 ,

    Regarding the missing file errors, you should check your include paths settings and ensure the directory of the header file is listed in your include paths for the compiler.

    Go to Project -> Properties -> C/C++ Build -> Settings -> Tool Settings -> MCU GCC Compiler -> Include paths

    Super User
    January 4, 2024

    > I have question about STM32F413CGU6 FW upgrade using USB

    There are two common ways this is done. One is by reading a file from a flash drive, in which case you would choose USB host to an MSC device, the other is with the USB DFU bootloader, in which case you would choose USB device and DFU class.

    If you import the example project using CubeMX it will copy over all the necessary files.

     

    Pavel A.Answer
    Super User
    January 4, 2024

    > some files is missing. where can I find these files??? 

    Hi @luisfynn1  These missing files are in the directories above the project. When you install the STM32F4 firmware package in the normal way in the CubeIDE or CubeMX, you will get the whole thing with all the libraries. Then import the project in CubeIDE, refresh and rebuild. It should find all files. 

    But the question is, whether this host mode example is what you're looking for. You may want a device mode example instead as TDK suggests. Anyway, if you cannot manage to build this project successfully, it means that something is wrong with your setup (CubeIDE + F4 firmware package) ... or somebody tinkered with the project (then delete & reinstall the f/w package).