im-tomu / toboot

Bootloader for the EFM32HG Tomu Board
https://tomu.im/
GNU General Public License v3.0
72 stars 28 forks source link

Come up with a way to update the bootloader #17

Closed xobs closed 6 years ago

xobs commented 6 years ago

The bootloader writes new programs to offset 0x2000, meaning it's not possible to update itself.

An updater should be created that can be used to update the updater.

xobs commented 6 years ago

Programs are now written to offset 0x4000, unless a special value is defined. By setting this special value to 0, toboot can now update itself.