Bootloader recommendation?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I know there are tons of good options but I'm rather new to bootloaders, and I'm afraid I'm suffering from a bit of choice paralysis.  Would anyone like to recommend a good bootloader as a starting point?  It's intended to let users update their software safely using a PC and serial interface.

 

  • ATMEGA328PB
  • UART interface to host PC
  • Compact
  • Rewrite flash and eeprom locations
  • Modest "reasonable" security against cloning; strong encryption not needed (unless memory footprint is small)
  • Error checking/verification/other good practice features I am surely not aware of
  • ATMEL Studio 7 if it matters
  • Free as in speech and beer

 

Many thanks!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Optiboot

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Optiboot is swell, is well supported on a broad range of chips, but a version that supports EEPROM is currently twice as big as normal (1k vs 512 bytes, because that's the way bootloader sections are quantized), and it doesn't do anything WRT "security against cloning."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

+1 for Optiboot. Small, fast, effective. However, there's no EEPROM support in the "small" version...and no security whatsoever....in fact, you can ask Optiboot to dump the entire FLASH and it will...so no security.

 

I suppose you could disable the "read" function of Optiboot, and compile your own version...but then AVRDude won't be able to validate uploads.