s12z ROM checksum

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s12z ROM checksum

604件の閲覧回数
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

ラベル(1)
0 件の賞賛
2 返答(返信)

380件の閲覧回数
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 件の賞賛

380件の閲覧回数
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 件の賞賛