Bootloader CRC check
My M0 bootloader works. I can upload my file and execute it. The next step is a CRC check of the uploaded .bin file.
The easy part is the bootloader checking the uploaded file. Next,
- How to automatic generate a CRC in the BIN file?
- It is possible to generate a crc with an external tool but i need the crc value on a fixed place in the bin file so the external tool can overwrite that value. I tried to make a section in the linker script to reservate a part of flash for the crc variable but no idea how to do that.