srec_cat crc kboot problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

srec_cat crc kboot problem

1,162 Views
roymessinger
Contributor V

I'm trying to use srec_cat tool to calculate the crc for my bin file, in order to use it with the blhost.

I've found this link, by BlackNight‌ which explains all very nicely.

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.

I've tried:

srec_info myAppCode.srec and received:

Format: Motorola S-Record
Header: "myAppCode.srec"
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.

Any ideas?

Tags (3)
0 Kudos
2 Replies

854 Views
BlackNight
NXP Employee
NXP Employee

Hi Roy,

address ranges in srec_cat are not including the 'end' address of the range. So I feel you might want to use 0x20F08 instead?

Same for the fill command.

I hope this helps,

Erich

0 Kudos

854 Views
roymessinger
Contributor V

Hi Erich, 

Thanks. I tried that already. Didn't help.

Roy

0 Kudos