srec_cat crc kboot problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

srec_cat crc kboot problem

2,204 次查看
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?

标记 (3)
0 项奖励
回复
2 回复数

1,896 次查看
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 项奖励
回复

1,896 次查看
roymessinger
Contributor V

Hi Erich, 

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

Roy

0 项奖励
回复