6.1. Checksum Tool¶
This section of the documentation shows the software build process and the integration of the checksum into that process in foxBMS. To setup and enabling/disabling the checksum verification on the microcontroller, see Checksum.
6.1.2. Procedure¶
Checksum is an after-build process.
python tools\waf-1.8.12 configure
python tools\waf-1.8.12 build_primary
python tools\waf-1.8.12 build_secondary
6.1.3. Principle¶
The step
python tools\waf-1.8.12 configure
configures waf as needed to build.
The step
python tools\waf-1.8.12 build
builds the files
foxbms.elf
foxbms.hex
foxbms_flash.bin
foxbms_flashheader.bin
The
chksum
featured task is perfmored at next as defined in the main wscript. The steps are of this task are:- Reading the
foxbms.hex
file and calculates the checksum. The checksum is written back into thefoxbms.hex
file by the checksum script. - Calling the GDB debugger and replaces the initial
ver_sw_validation.Checksum_u32
infoxbms.elf
with the correct checksum. - Calling the
objcopy
to regenerate thefoxbms_flashheader.bin
offoxbms.elf
.