From 788f45b12354b3efc0e623b7bb68587570612482 Mon Sep 17 00:00:00 2001 From: Chamod Weerasinghe Date: Mon, 1 Mar 2021 20:20:00 +1300 Subject: [PATCH] Add two postbuild commands so that a combination hexfile with bootloader and application will be generated. --- Sensor_D11/Sensor_D11.cproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sensor_D11/Sensor_D11.cproj b/Sensor_D11/Sensor_D11.cproj index b571278..08fb773 100644 --- a/Sensor_D11/Sensor_D11.cproj +++ b/Sensor_D11/Sensor_D11.cproj @@ -177,6 +177,10 @@ ubuntu.exe run /mnt/c/Users/csam754/Documents/Projects/Kiwrious/Firmware/Bootloader/DFU/dx1elf2dfu $(OutputFileName).elf "../../DFU-Files/D11_$([System.DateTime]::Now.toString("dd-MM-yyyy")).dfu" + +ubuntu.exe run /mnt/c/Users/csam754/Documents/Projects/Kiwrious/Firmware/Bootloader/elfcrc/elfcrc $(OutputFileName).elf "./D11_CRC.bin" + +ubuntu.exe run srec_cat "../../Bootloader_D11_11-11-2020.hex" -intel "./D11_CRC.bin" -binary -offset 0x800 -out "./D11_Combined_$([System.DateTime]::Now.toString("dd-MM-yyyy")).hex" -intel ubuntu.exe run git describe --abbrev=0 | tr -d 'v' | sed -e "s/\([0-9]*\).\([0-9]*\)/#define FW_MAJOR \1\n#define FW_MINOR \2/" > ../fw_version.h