Updating Bootloader Configuration Data with CRC values

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

Updating Bootloader Configuration Data with CRC values

1,886 次查看
darshan_shah1
Contributor II

Hi,

I have FRDM-K64 and would like to implement CRC check of FW in boot-loader.

I have go through the bootloader code and found that bootloader already has feature of this and we just need to update BCA configuration written in application.

I have updated linker file to have BCA area in flash yet I am not able to find a way to update crcStartAddress,crcByteCount,crcExpectedValue in BCA area automated or with any post script in MCUXpresso.

Please help me.

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

1,787 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Darshan,

You can use KinetisFlashTool to generate and insert these parameters.

pastedImage_3.pngpastedImage_4.png

You can get it from https://www.nxp.com/webapp/Download?colCode=NXP_KINETIS_BOOTLOADER_2_0_0&appType=license 

Regards,

Jing

0 项奖励
回复

1,787 次查看
darshan_shah1
Contributor II

Thank you for your response.

I have found this utility and try to use it. Yet issue is that I have added my own some parameter in BCA configuration which is overwritten by this tool with 0xFF data and CRC is counted.

Is there any provision to not to do this?

0 项奖励
回复

1,787 次查看
ErichStyger
Specialist I

FYI: I'm using srec_cat to add the CRC with a script: Tutorial: CRC32 Checksum with the KBOOT Bootloader | MCU on Eclipse 

I hope this helps,

Erich

0 项奖励
回复

1,787 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi,

But you can modify the BCA HEX area in the first screenshot directly.

Regards,

Jing

0 项奖励
回复