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

  • Michael: A feature I've wanted forever is a dual RX UART mode, so I can watch both sides of a UART communication between devices (right now...
  • Alex B: To see the current commit hash, "git rev-parse HEAD"
  • Daniel: Very nice! Welcome to this century...
  • chrismec: What is this Bus Pirate v5? Is this the demo board or is there a new bus pirate in the works?
  • John Peck: Really impressive! Thanks for putting so much documentation together!