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

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

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

452 Views
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 Kudos
Reply
1 Reply

436 Views
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 Kudos
Reply