Skip to main content
MMerc.1
Associate III
June 7, 2021
Question

Firmware upgrade using USB key on STM32L4

  • June 7, 2021
  • 8 replies
  • 3260 views

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.

8 replies

Tesla DeLorean
Guru
June 7, 2021

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 VenmoUp vote any posts that you find helpful, it shows what's working..
MMerc.1
MMerc.1Author
Associate III
June 7, 2021

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
June 7, 2021

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 VenmoUp vote any posts that you find helpful, it shows what's working..
MMerc.1
MMerc.1Author
Associate III
June 17, 2021

Any ideas ?

MMerc.1
MMerc.1Author
Associate III
June 28, 2021

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
June 28, 2021

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
June 28, 2021

Thank you for your answer.

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

waclawek.jan
Super User
June 28, 2021

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
June 29, 2021

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
June 29, 2021

> 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