Boot swap utility
A development tool that does the one thing a bootloader is designed to prevent: overwrite itself.
On GM's Infrastructure Software team I owned the memory manager and the bootloader for a body control module. One assignment was a development tool to replace the bootloader in the field.
The first rule of bootloaders is that nothing overwrites the bootloader: there are protections specifically to prevent it. In this case, overwriting it for development was exactly what was being asked for. The way in was a "download and execute" capability in the programming interface, which lets a diagnostic tool push a small program into RAM and run it. The swap utility is that program. Once it's running from RAM, it can erase the bootloader's flash blocks, write a new one, and reset into it. It's exactly the kind of path a production bootloader shouldn't expose, and I'm sure it has long since been closed, but at the time it turned a hard assignment into an easy one.
What a bootloader does
In a vehicle, the bootloader is the first code an electronic control unit runs. On power-up it checks the integrity of the application, establishes communication with the diagnostic tool, and decides whether to launch the application or enter programming mode. Its whole purpose is to make reprogramming safe, which is why it guards its own flash blocks so carefully, and why a tool that rewrites them is unusual.
Code
The GitHub repo exists for sharing rather than development; it has screenshots and sample source.