Categories

App note: Bootloading 101

Posted on Sunday, December 23rd, 2012 in app notes by DP

Texas Instruments describes bootloaders and what they are all about. A bootloader is a piece of code that allows new firmware to be loaded into a microcontroller without a dedicated programmer. All of our projects use a bootloader so you can upgrade over a USB or serial connection. For PIC micros we usually use two open source (GPL) bootloaders: ds30 Loader or the Diolan USB HID bootloader.

The bootloader itself is a tiny piece of code that runs first when the micro starts. Usually it does nothing and passes control to the main application. If certain conditions are met, such as a button press or shorting two pins with a jumper, the bootloader takes over and receives new firmware to program into the chip.

Ever wondered what a bootloader is or how they work? In this video we’ll answer those questions as well as discuss some of the advanced functionality found in more professional bootloaders. While the video is C2000 specific, much of the technical content will apply to other architectures as well.

This entry was posted on Sunday, December 23rd, 2012 at 1:00 pm and is filed under app notes. 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 “App note: Bootloading 101”

  1. Lloyd says:

    The only reason I had never looked into the ds30 bootloader was because I was under the impression from it’s name it was ONLY available for the dsPIC family. Turns out it supports almost all the families.

Leave a Reply

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

Recent Comments

  • Pekka Akselin: This is ridiculous!? :-) We are back at 256(!) byte EPROMs that needed multiple, a handful, of voltages to run! :-(
  • KH: Let's try a back-of-envelope calc balancing energies. From MCP1700 datasheet, there are graphs for a 200mA load step. Estimate the energy shortfall as 12uJ. Say...
  • Daniel: It's been a week and my comment is still awaiting moderation. Apparently the CIA doesn't want their involvement known?
  • KH: Agree, so okay, I guess he must have learned from somewhere. 100nF and 1000uF is so far apart, that was jarring; it's more magic incantation...
  • Max: I have a suspicion the hefty electrolytic cap might be some sort of cargo cult carry-over from other RF-based projects - for instance, I've seen...