How to use the Kinetis Flash Tool to calculate the CRC of a user application program?

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

How to use the Kinetis Flash Tool to calculate the CRC of a user application program?

1,154 Views
franzbauer
Contributor I

Hi,

Reading the Flash Tool user guide, I understood that it is possible to get a CRC calculation of user application program for the CRC check option in the BCA. I tried this on the FRDM-K64 with the led_demo_freedom_a000.bin program.

Every time I try to “Generate C Code” in the BCA Config Section I get the Warning: CRC is disabled automatically, because CRC configuration won’t work without final binary image. Although I have inserted the led demo file in the Image File: combo box.

Is it possible to generate the CRC check?

How to proceed?

Labels (1)
Tags (2)
1 Reply

784 Views
ramboyang
NXP Employee
NXP Employee

Hi Franz,

Please do not genrate C code for the CRC checksum, because it will change after the code update.

It is recommended to generate the application binary  that the BCA region is filled with 0xFFs.

Then

  1. Click the BCA Utilities tab
  2. Click browse to select the application binary
  3. Click Config button
  4. Enable CRC Check checkbox
  5. Click OK
  6. Click save

After above operation the CRC checksum is gnerated and saved to the application binary

Hope above info is helpful.