Skip to content

Commit

Permalink
Add two postbuild commands so that a combination hexfile with bootloa…
Browse files Browse the repository at this point in the history
…der and application will be generated.
  • Loading branch information
chamodw committed Mar 1, 2021
1 parent ef4be7d commit 788f45b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sensor_D11/Sensor_D11.cproj
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@
</ArmGcc>
</ToolchainSettings>
<PostBuildEvent>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
</PostBuildEvent>
<PreBuildEvent>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/" &gt; ../fw_version.h </PreBuildEvent>
</PropertyGroup>
Expand Down

0 comments on commit 788f45b

Please sign in to comment.