.\hex2bin.exe -k 3 -m 128 -T 0x2FFFF .\production.hex In this case I have the file size to be multiple of 128. The end of the file is like this:  I would like to add the crc before the trailing 0xFF.