Firmware Update via USB-Stick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 2:12 AM
Hello Everyone,
I hope you are well.
I'm working with an STM32F401 microcontroller (Nucleo-F401RE) and my goal would be to update the firmware via a standard USB stick.
Is this possible with the above controller? If so, can you give me any examples?
Thank you very much.
- Labels:
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 2:25 AM - edited ‎2023-11-08 2:28 AM
Yes this is possible, as STM32F401RE has USB host function with on-chip full speed PHY. But you have to wire up an USB connector and provide power for the USB device (stick). Alternatively you can use the USB device function and update firmware over some USB device protocol such as MSC or CDC ("serial port"). Wiring up a device connector may be easier because you don't need to provide extra power.
(Note, the Nucleo F401RE's web page states that it has USB C device connector - but this is misinformation. Already reported several times).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 3:20 AM
As an example, you may have a look at https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32F429I-Discovery/Applications/USB_Host/FWupgrade_Standalone .
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 6:35 AM
Many thanks for the quick response. Is there also a way to implement this with st32CubeMX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 6:37 AM
Thank you
The program works. However, I am looking for a solution via STM32 Cube MX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 7:08 AM - edited ‎2023-11-08 8:13 AM
@Eros2023 The .ioc file for this board has not been published by ST. You can produce it using CubeMX , define the USB pins and generate initialization code by CubeMX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 8:08 AM
I don't think that's how coding jobs work, not everything can be conjured together by a boiler plate code generator.
The example is a mix of USB MSC Host and FatFs or whatever Microsoft stuff they prefer now.
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-11-15 11:43 PM
Hello Tesla DeLorean,
you're right, but if things have to go faster, you need a tool like this.
Coming back to the topic, can someone provide an example that would at least help me understand how it's done?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-16 3:29 PM - edited ‎2023-11-17 9:55 AM
Here is an example for STM32F4. You can import it from CubeIDE: Import... example project
and same example for F429I-discovery board (posted by Jan above).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-16 9:41 PM
If You'll search USB Boot loader examples youll get so many examples on google... recently i tried those examples with F746 Controller ... after flashing new firmware boot loader is jumping to that memory loaction and getting stucked after exicuting new code one time.
