AnsweredAssumed Answered

Why is S32K going to SRAM on reset?

Question asked by Tim Smith on Mar 27, 2017
Latest reply on Apr 3, 2017 by Lukas Zadrapa

Note: This is on a FRDM-PK144 evaluation board.

 

When I reset the micro, it appears to start execution at 1C00_01CCh.  This happens if I reset it in S32 Design Studio, or a different debugging program.  If I start a new debugging session, it starts at the correct place (PC is loaded based on the value at address 4h, with SP loaded from 0h), however if I issue a reset after that it jumps to the RAM location mentioned above (with a different stack pointer).

 

If I just use USB to only power the board (and don't attempt to debug), I don't see any signs of life (and the reset LED eventually comes on and stays on), so I would believe it's trying to run from RAM at this point as well.

 

Does anyone have any insight?  When I can actually get my code running, it runs fine.  Furthermore, it appears that 1C00_01CCh is loaded into PC right at reset, so I don't see how even if there was an issue with my code it could cause this.

 

Thanks

Outcomes