diff --git a/scripts/buildbinary.py b/scripts/buildbinary.py index bb2f49c..6660349 100644 --- a/scripts/buildbinary.py +++ b/scripts/buildbinary.py @@ -4,7 +4,7 @@ # Copyright (C) 2022 Kevin O'Connor # # This file may be distributed under the terms of the GNU GPLv3 license. -import sys, argparse +import sys, argparse, struct ERR_MSG = """ The CanBoot binary is too large for the configured APPLICATION_START. @@ -13,10 +13,18 @@ Rerun "make menuconfig" and either increase the APPLICATION_START or disable features to reduce the final binary size. """ +def update_lpc176x_checksum(data): + data28 = data[:28] + words = struct.unpack('