2024-01-03 10:53 PM
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".
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???
below box files is missing upper git url...
Solved! Go to Solution.
2024-01-04 07:09 AM - edited 2024-01-04 07:13 AM
> 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).
2024-01-04 06:39 AM
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
2024-01-04 06:43 AM
> 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.
2024-01-04 07:09 AM - edited 2024-01-04 07:13 AM
> 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).