mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
3f600d869e
QN908X CPUs require the image to have a valid checksum. The checksum is a simple addition of the first 7 uint32_t values stored in the 8th position of the image header. This position is a reseved entry of the Cortex-M Vector Table and its value depends on other fields that are computed at link time. Performing this checksum at link time seems hard to do, so instead this patch uses a python script to patch the checksum from the ELF file. This redefines the value of FLASHFILE to the new .elf file with the checksum fixed. With this patch, OpenOCD can program and verify QN908X images since now they have a valid checksum value. |
||
---|---|---|
.. | ||
nxp_checksum.py | ||
openocd.cfg |