Skip to content
Failed

Changes

Summary

  1. add fw update crcstub (details)
Commit 3335c43adecc039fd11ca5ed4effed74a6db9abd by ewild
add fw update crcstub

Adds a crc stub that lives in front of the dfu bl updater app and checks it.

The whole process is somewhat complicated to ensure we end up not just with
a firmware file that contains the right crc for the right offsets, but the elf
file is updated as well, to ensure the result is debuggable as-is.

The stub is built as part of the firmware code, and ends up in its own section.
Linker script padding and alignment ensures that this works.

Change-Id: I39eae7aaafd5531db6ce48837c9499432caadbed
The file was modifiedgcc/gcc/startup_same54.c
The file was addedcrc_params.c
The file was modifiedusb_flash_main.c
The file was modifiedgcc/gcc/same54p20a_flash.ld
The file was modifiedgcc/Makefile
The file was modifiedgcc/gcc/same54p20a_dfu.ld
The file was addedcrc_code.c