simtrace2/firmware/apps
Eric Wild cb655f9774 firmware: add crc stub to all dfu apps to ensure reliable loading
DFU flashing of apps sometimes aborts, and although rare this leads to
broken devices if no boot button or serial/jtag access exists, because
the bootloader will keep trying to start a half-flashed app that then
crashes at some point.

The easiest fix that works with existing bootloaders is to prepend a
small 512 byte stub that calculcates the crc and compares it with the
crc calculated at build time, and then either starts the actual app, or
sets the dfu flag and resets. This ensures we either have a working,
running app, or end up in the bootloader, ready to flash again.

For obvious reasons this only applies to dfu apps, and not to flash
targets like the actual bootloader itself.

Change-Id: Id6df0486c8b779889d21800dc2441b3aa9af8a5f
2021-12-15 14:04:20 +00:00
..
blupdate firmware: add crc stub to all dfu apps to ensure reliable loading 2021-12-15 14:04:20 +00:00
cardem treewide: remove FSF address 2021-12-14 11:47:21 +01:00
ccid Structure build system to build for multiple boards/apps/environments 2017-02-27 22:18:45 +01:00
dfu treewide: remove FSF address 2021-12-14 11:47:21 +01:00
freq_ctr Patch actual board name into the USB iProduct string descriptor 2019-12-06 19:19:23 +01:00
gpio_test Patch actual board name into the USB iProduct string descriptor 2019-12-06 19:19:23 +01:00
trace treewide: remove FSF address 2021-12-14 11:47:21 +01:00
triple_play treewide: remove FSF address 2021-12-14 11:47:21 +01:00