I'm trying to use srec_cat tool to calculate the crc for my bin file, in order to use it with the blhost.
Nevertheless, when trying to implement the srec_cat, I can't seem to get the same crc as calculated by KinetisFlashTool (which is correct in KinetisFlashTool, as kboot does recognize it).
My application starts from 0xa000.
srec_info myAppCode.srec and received:
Format: Motorola S-Record
Execution Start Address: 0000A7AD
Data: 00A000 - 00A3DF
00A400 - 020F07
So, I'm sending command to get the crc value:
srec_cat myAppCode.bin -binary -fill 0xff 0xa000 0x020F07 -crop 0xa000 0x020F07-Bit_Reverse -CRC32LE 0xffca0 -Bit_Reverse -XOR 0xff -crop 0xffca0 0xffca4-Output - -hex_dump
but getting different values than KinetisFlashTool.
I've tried changing the crop values but nothing helps.