CRC Calculation In Linker

cancel
Showing results for 
Search instead for 
Did you mean: 

CRC Calculation In Linker

1,617 Views
tunayan
Contributor II

Dear Community members,

 

I have to find a way to calculate CRC of specific memory area in linker stage.

So I have developed a CAN bootloader and i want to compare the both CRCs before programming and run-time.

 

I am using MPC5644A Dev kit. And My IDE is CW 10.6

 

I tried to follow below  comments but, it is not proper with my mcu exactly.

CRC of Data section in Load Memory location

 

Thanks all.

Labels (1)
2 Replies

661 Views
BlackNight
NXP Employee
NXP Employee

I'm using the SRecord tool for CRC calculation, see CRC Checksum Generation with ‘SRecord’ Tools for GNU and Eclipse | MCU on Eclipse

I hope this  helps,

Erich

661 Views
TICS_Fiona
NXP Employee
NXP Employee

Hello Tuna

The Qorivva linker does not support this feature as DSC does.

But you can use the ‘crcgen.exe’ included in CodeWarrior v10.6.5 to generate a CRC in building.

For details, please see the section 5.1.7 in FAQ Guild:

C:\Freescale\CW MCU v10.6.4\MCU\Help\PDF\MCU_Power-Architecture_Compiler.pdf

But this solution can only get CRC in building. In run-time, user needs to add his own code to get CRC in application project.

Best Regards

Fiona Kuang

Technical Information & Commercial Support

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------