how does the SP PC pointer gets the stack top and reset handle value at startup_S32K144.S asm file?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how does the SP PC pointer gets the stack top and reset handle value at startup_S32K144.S asm file?

453 次查看
jackey267
Contributor II

 hi team: 

for S32k148 :

1.1 when we have 3 independent firmware(s) at all 3X  512KB  Pflash  ,how to pick one another Pflash  firmware to run instead of run at 0x0000000? 

1.2  how does the SP PC pointer gets the stack top and reset handle value at startup_S32K148.S asm file? 

0 项奖励
回复
1 回复

437 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @jackey267,

It always starts with the stack pointer and the reset vector at 0x0000 - 0x0004 because VTOR reads 0x0000_0000 by default.

You can refer to AN12218: S32K1xx Bootloader - it shows how to jump to a different firmware.

https://www.nxp.com/docs/en/application-note/AN12218.pdf

https://www.nxp.com/docs/en/application-note-software/AN12218SW.zip


BR, Daniel

0 项奖励
回复