Skip to main content
MMerc.1
Associate III
Jun 7, 2021 12:23 PM UTC
Question

Firmware upgrade using USB key on STM32L4

Hi,

Currently, I know how to upgrade firmware using USB key on STM32F746BGT.

I want to upgrade on STM32L433CCT6 but I can't find example...

Could you help me ?

Best regards

This topic has been closed for replies.

11 replies

Tesla DeLorean
Guru
Jun 7, 2021 12:33 PM UTC

Find an MSC HOST for your architecture

STM32Cube_FW_L4_V1.15.1\Projects\STM32L476G-EVAL\Applications\USB_Host\MSC_Standalone

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
MMerc.1
MMerc.1Author
Associate III
Jun 7, 2021 1:23 PM UTC

Hi,

Thanks for your reply.

I have attached the possible configurations.

As you can see, I cannot use Host MSC.

Do you know why ?

Best regards

Tesla DeLorean
Guru
Jun 7, 2021 1:39 PM UTC

Does the STM32 you have chose support a USB Host/OTG, or only a USB Device?

https://www.st.com/en/microcontrollers-microprocessors/stm32l433cc.html

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
MMerc.1
MMerc.1Author
Associate III
Jun 17, 2021 8:19 AM UTC

Any ideas ?

MMerc.1
MMerc.1Author
Associate III
Jun 28, 2021 11:05 AM UTC

Hi,

I come to you to see if you have an idea about my problem with the USB device.

Best regards

waclawek.jan
Super User
Jun 28, 2021 12:25 PM UTC

The USB module in 'L433 is not capable of being USB host, so you simply can not use it as a MSC host and load firmware from an USB key.

JW

MMerc.1
MMerc.1Author
Associate III
Jun 28, 2021 1:41 PM UTC

Thank you for your answer.

So the only way is via STM32 ST-LINK Utility or STM32CubeProgrammer ?

waclawek.jan
Super User
Jun 28, 2021 2:54 PM UTC

Through PA11/PA12 pins, using the default USB-DFU bootloader? Yes that's the most convenient way.

You can also write your own bootloader and write a counterpart to standard PC, or to a custom hardware acting as USB host; or using custom hardware and making use of the fact that PA11/PA12 are also CAN_TX/RX... All this requires significantly more effort.

JW

MMerc.1
MMerc.1Author
Associate III
Jun 29, 2021 7:39 AM UTC

Hi,

For DFU mode, can I use a USB stick or do I necessarily need a computer ?

If I use a custom hardware acting as USB host, which mode will the L433 use ?

waclawek.jan
Super User
Jun 29, 2021 7:50 AM UTC

> For DFU mode, can I use a USB stick or do I necessarily need a computer ?

USB stick is a Device. You need to have a Host, i.e. a computer.

> If I use a custom hardware acting as USB host, which mode will the L433 use ?

Presumably you would write your own bootloader, then you could use whatever protocol you want, even nonstandard one too.

JW