How S32DS generates a checksum to populate a hex file or S19 file

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

How S32DS generates a checksum to populate a hex file or S19 file

119 Views
ChenPeng3
Contributor II

hello:

       I've been working on a S32K144 feature recently to generate a checksum for my own hex or S19 files and store it in flash to verify file integrity

     I'd also like to know how the internal checksum is calculated using how to use the S32DS configuration, or which tool to use to do this at GCC compile time。

Tags (2)
0 Kudos
2 Replies

73 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

if you need checksum for - let's say Intel hex - generated by objcopy tool - you need to use an external tool like srec_cat - https://srecord.sourceforge.net/  

 

Nice tutorial you can find here - https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/

0 Kudos

77 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

This is called flash array integrity check. As I know S32K1 does not support it by HW. It is available on ASIL-D device as some MPC5 and S32K3.

 

0 Kudos