Skip to main content
Visitor II
November 12, 2024
Solved

USB DFU Mode in STM32G0

  • November 12, 2024
  • 1 reply
  • 994 views

Hi all,

 

per AN3156 it states G0 series have USB DFU mode built-in the factory bootloader, so does it mean I won't have to configure the USB Device DFU Class in the CubeMX in order to make it work? Could I configure it into other classes (like CDC Virtual COM), and only need to flip the BOOT0 pin when it comes to firmware update?

 

Thanks

    This topic has been closed for replies.
    Best answer by Uwe Bonnes

    Yes. But that "flip BOOTO" needs to survive a reset. That needs some external infrastructure. Otherwise set some magic in SRAM, test early in your bootup for that flag and jump to bootloader.

    1 reply

    Graduate II
    November 12, 2024

    Yes. But that "flip BOOTO" needs to survive a reset. That needs some external infrastructure. Otherwise set some magic in SRAM, test early in your bootup for that flag and jump to bootloader.