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 to Max

Click here to cancel reply.

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

Recent Comments

  • Joe Desbonnet: Ya, I can recommend the low melting point solder. I used brand 'ChipQuik' and it's amazingly easy to use.
  • Jerome: I need a new BusPirate for the Fablab ;) Many thanks!
  • Max: Seems like an unexpectedly violent way to remove the chip indeed. A hot air station should of course do the job just fine, but in...
  • jose: Part removal described here is pure butchery, the cheapest hot air station will do a fast and clean job removing the QFP, heat air to...
  • Cody: Yes please