s12z ROM checksum

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

s12z ROM checksum

595 Views
charudattaingal
Contributor IV

Hello all,

 

want to calculate  check-sum of the entire ROM using a simple 2-byte summation of the entire ROM memory block while ignoring rollovers.

wrote piece of code to access Rom address value byte by byte using some pointer arithmetic,

its not working for me requesting assistance to calculate check-sum of ROM specific address range.

 

Thanks & Regards,

Charudatta

Labels (1)
0 Kudos
2 Replies

371 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI,

can you please specify what problem do you have?

can you refer this thread to solve your problem?

Re: Issue while calculating the CRC for logical address block in Flash


Have a great day,
Jennie Zhang

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

0 Kudos

371 Views
charudattaingal
Contributor IV

Hi Jennie,

I want to calculate checksum of Rom for S12ZVL128

when I am passing stating and ending address of ROM I am getting reset while accessing address I.e

APPLICATION_START    (uint32_t)0x00FE0000

APPLICATION_END      (uint32_t)0x00FFDFFF

Is this any address / protected memory access issue ?

But when I used the application start/end address (text segment ) present in map file it is working fine i.e

ROM_TEXT_SEG_START    (uint32_t)0X00FE0328

ROM_TEXT_SEG_END      (uint32_t)0x00FE9324

Want to know while calculating checksum for entire  Rom which address we should consider ?

compiler calculate checksum for code if yes where that checksum is stored ?

Thanks & Regards,

Charudatta

0 Kudos