ROM Checksum On Flash Memory

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

ROM Checksum On Flash Memory

1,079 Views
gopal1
Contributor I

In order to check the Validity of Application I have to perform Checksum on ROM,

IAR Provides a feature to Generate CRC on ROM and Write it at specified Memory Location.

which i can access and Compare with Calculated CRC and conclude Application is Valid or not.

I want to do the same thing with S32 Design Studio. but I cant find option to generate CRC on ROM.

Please let me know If it is possible.

I have attached Option to generate Chec ksum in IAR, Im looking for Similar option in S32 DS

gopal1_0-1690805260171.png

 

0 Kudos
Reply
3 Replies

1,010 Views
Mehul_Patel_NXP
NXP Employee
NXP Employee

Hi, @gopal1 , @Daniel-Aguirre , 



 It it compiler tool chain thing.

 

IAR linker embeds the checksum in the code. So, as shown as below screenshot you can use IAR toolchain and you can select CRC algorithm for your requirement.  

 

Mehul_Patel_NXP_0-1690976979840.png

 

 

But, GCC toolchain doesn't provide the option for Checksum -  CRC generation so not option in the settings. But, yes, you can use external filter might be able to generate a checksum on the ELF file and write it into the binary.

 

(Although I havan't tried this particular tool. May be you use this external tool.. post building https://srecord.sourceforge.net/)

 

Please let us know, if you were able to work out. 

 

Thank you. Kind regards. 

 

- Mehul Patel

0 Kudos
Reply

1,014 Views
stanish
NXP Employee
NXP Employee

Hello,

Which MCU are you targeting?

if S32K1xx (S32DS for ARM) checksum options are available in the Linker settings if IAR plugin is correctly installed (https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Install-IAR-Eclipse-plug-in-into...

stanish_0-1690976116293.png

Anyway such functionality could be added via Postbuild steps using 3rd party utilities such as https://srecord.sourceforge.net/

 

Hope it helps.

Stan

0 Kudos
Reply

1,041 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We are looking into the available features inside S32DS and we are not finding anything that contains either "checksum", "CRC" or "ROM" words in them, as shown below:

DanielAguirre_0-1690915633402.png

DanielAguirre_1-1690915648040.png

DanielAguirre_2-1690915743981.png

For which, at this moment we might need to assume that this feature is not available. We do apologize.

Please, let us know.

0 Kudos
Reply