Skip to main content
Visitor II
April 8, 2020
Solved

STM32 USB Firmware update via High speed or Full speed?

  • April 8, 2020
  • 2 replies
  • 2720 views

Hello,

Has anyone tried updating STM32 firmware over HS USB?

I can't remember where I read it, but I remember the default STM32 DFU mode is only compatible with the FS USB.

My device is a "USB Device" and it only needs HS USB to do the job, FS is not really required.

So I'm looking for ways to implement DFU mode with the HS USB connection.

I searched everywhere for the FS or HS connection DFU mode, but I'm only seeing how to use DFU mode not what USB type to use.

    This topic has been closed for replies.
    Best answer by TDK

    > My device is a "USB Device" and it only needs HS USB to do the job, FS is not really required.

    FS (12Mbps) is a lower speed than HS (480 Mbps).

    The ST USB DFU bootloader only supports full speed.

    You can look at AN2606 to see what bootloader options are supported. Note that all the USB options listed are full speed.

    2 replies

    TDKAnswer
    Super User
    April 8, 2020

    > My device is a "USB Device" and it only needs HS USB to do the job, FS is not really required.

    FS (12Mbps) is a lower speed than HS (480 Mbps).

    The ST USB DFU bootloader only supports full speed.

    You can look at AN2606 to see what bootloader options are supported. Note that all the USB options listed are full speed.

    BHan.1Author
    Visitor II
    April 8, 2020

    Thanks for the AN2606 Reference. I knew I read it somewhere.

    Super User
    April 8, 2020

    > So I'm looking for ways to implement DFU mode with the HS USB connection.

    Make your own updater with DFU interface. Look for examples for DFU device class in ST HAL bundle for your MCU.

    -- pa

    BHan.1Author
    Visitor II
    April 8, 2020

    Sad to say but I'm not too experienced writing my own ​updater. But it sure will be great simplifying a lot of things.