Categories

Building a USB bootloader for an STM32

Posted on Friday, July 6th, 2018 in ARM, programmers by DP

BootloaderEntryandExit

Kevin Cuzner writes:

As my final installment for the posts about my LED Wristwatch project I wanted to write about the self-programming bootloader I made for an STM32L052 and describe how it works. So far it has shown itself to be fairly robust and I haven’t had to get out my STLink to reprogram the watch for quite some time.
The main object of this bootloader is to facilitate reprogramming of the device without requiring a external programmer.

More details on Projects & Libraries’ homepage.

This entry was posted on Friday, July 6th, 2018 at 10:35 pm and is filed under ARM, programmers. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “Building a USB bootloader for an STM32”

  1. Max says:

    I find the choice to default to the bootloader on any reset except power on a highly questionable one. As long as there is some reliable way to invoke the bootloader you generally want the code to keep trying to do whatever it was supposed to – in most cases the uncertainty of it potentially failing again is far outweighed by the guaranteed alternative of a functionally bricked device sitting idly in its bootloader until it gets power cycled.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Crawford: Biscuits!
  • hli: Sunday++
  • Jack: Hello! Any board relating to LC filter circuits?
  • Fabien: PCB is life, life is PCB.
  • Kurt: We sleep safely at night because rough men stand ready to visit violence on those who would harm us. (Rough women, too.)