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
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.
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
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...
Anyway such functionality could be added via Postbuild steps using 3rd party utilities such as https://srecord.sourceforge.net/
Hope it helps.
Stan
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:
For which, at this moment we might need to assume that this feature is not available. We do apologize.
Please, let us know.