cancel
Showing results for 
Search instead for 
Did you mean: 

USB DFU Mode in STM32G0

TSu.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Uwe Bonnes
Principal III

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.

View solution in original post

1 REPLY 1
Uwe Bonnes
Principal III

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.