XMEGA || Range Padding to Binary file.

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Guys, 


Currently I'm using the following Post-build event command like ""C:\Program Files (x86)\Atmel\Studio\7.0\shellutils\srec_cat" .\Atmel_bootloader.hex -intel -crc32-l-e -maximum-addr .\Atmel_bootloader.hex -intel -o ksd_lc_mcu.bin -binary"

To generate the binary file with CRC checksum at the end. 


I want the binary file generated to be with an even number of variable for the CRC check driver in Atmel to work. 

I'm thinking of adding the -range-padding 16 to the Post-build event command, so its size is always even.


I'm not sure how it should be done. Could someone suggest to me how to do this? 


Thanks and best regards,