checksum in code for CORTEX-M3

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

checksum in code for CORTEX-M3

2,692件の閲覧回数
TEMCEFF
Contributor IV

Does the user code contains checksum in internal flash without intervention of user?

I read the below statement in LPC-1769 user manual:

When there is no valid user code (determined by the checksum word) in the user flash or
the ISP enable pin (P2.10) is pulled low on startup, the ISP mode will be entered and the
boot code will setup the PLL with the IRC.

Best Regards,

Avinash.

ラベル(8)
0 件の賞賛
返信
3 返答(返信)

2,584件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,Avinsh,

After the chip enters ISP mode, it will check the checksum in the image. But based on image protocol, the checksum value is computed  with only first seven 32 bits words rather than all the data in binary file. So MCUXpresso tools computes it in the *.ld file automatically and insert the checksum in vector table.

If you want to compute the checksum of all data in a binary file, pls refer to the link as Mr Con Verse points out.

Hope it can help you

BR

XiangJun Rong

pastedImage_1.png

0 件の賞賛
返信

2,585件の閲覧回数
TEMCEFF
Contributor IV

Thank you very much for your reply.

0 件の賞賛
返信

2,585件の閲覧回数
converse
Senior Contributor V
0 件の賞賛
返信