introduce new feature for the updater: UPDATECRC32
authorStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Fri, 14 Mar 2014 10:55:21 +0000 (11:55 +0100)
committerStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Sat, 15 Mar 2014 01:39:26 +0000 (01:39 +0000)
commit360bfa6d963be278944fdf71e58591af6d79e95b
tree2689e37e0884e78788a7356ad3d411130650afd5
parent31e49de4348d9ce27211f08e0a58346ef8f85394
introduce new feature for the updater: UPDATECRC32

In the head of Makefile.inc you now can configure "UPDATECRC32"
to enable the updater to check integrity of the new firmware image.
The CRC32 of polynomial 0xEDB88320 is used. This CRC is the same,
the non-volatile-memory controller of ATxmega series is using.

Enabling this feature will only increase the update by a few
bytes (~180bytes) , but will offer more safety against bogus images.

By default the CRC is NOT used, but it can be enabled to a
fix value or calculated automatically during compile.

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Makefile.inc
updater/Makefile
updater/crccheck.c [new file with mode: 0644]
updater/updater.c