Updating Bootloader Configuration Data with CRC values

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

Updating Bootloader Configuration Data with CRC values

1,122 Views
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.

Tags (2)
0 Kudos
Reply
4 Replies

1,023 Views
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 Kudos
Reply

1,023 Views
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 Kudos
Reply

1,023 Views
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 Kudos
Reply

1,023 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

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

Regards,

Jing

0 Kudos
Reply