KBOOT: Pre-calculate CRC of application

cancel
Showing results for 
Search instead for 
Did you mean: 

KBOOT: Pre-calculate CRC of application

280 Views
Contributor IV


Hi,

I currently crawling through the docs of KBOOT (Kinetis Bootloader|NXP ).

For the first step, I don't want to use cryptography for the firmware download BUT I would like to have the firmware verified with a CRC.

My question basically is: What tool precalculates the CRC of my application binary and inserts this value into the BCA ?

Edit:

Seems KinetisFlashTool is what I need:

Calculating application image CRC for KBOOT V2

0 Kudos
4 Replies

2 Views
Senior Contributor III

The IAR linker can be set to provide a CRC as part of the output-file generation (into whatever form).

0 Kudos

2 Views
NXP Employee
NXP Employee

Hello,

Yes, Kinetis Flash Tool is what you are looking for, only remeber that as being said here: Calculating application image CRC for KBOOT V2  you image needs to be a binary file.

Regards,

Isaac

0 Kudos

2 Views
Contributor IV

could you please provide a cross platform tool to do this?

it would also be possible to do it using the srecord tool with the right  sequence of commands. could you please provide any solution for osx/linux?

0 Kudos

2 Views
NXP Employee
NXP Employee

Hello Peter,

Unfortunately, I do not know about another tool that can help you to calculate your image's CRC value.

But as already said, you can try to use Kinetis Flash Tool which calculates this value automatically when a .bin file is provided.

I hope this helps!

Regards,
Isaac

0 Kudos