1
\$\begingroup\$

I'm using a template USB HID bootloader from microchip\mla\v2013_12_20\apps\usb\device\bootloaders

and have made some basic modifications. I don't have a strategy to be able to update the bootloader, however. I can update firmware, but not the tool that I use to update the firmware if that makes any sense. Am I just screwed if I ever make a mistake on the bootloader after releasing a product?

\$\endgroup\$
2
\$\begingroup\$

It is possible to remotely update a bootloader, but you have to be careful, because there are certain points in the process at which a power failure or other error could "brick" the system.

The general strategy is to use the existing bootloader to replace the normal application code for the product with a special "bootloader update" application. This application contains the new bootloader code, along with enough firmware to write that code to the bootloader area of the device and to verify it. Once the new bootloader is verified, the special application allows it to run on the next system startup, at which time, you can use the new bootloader to write the normal application code to the device.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.