S32k144 , Stacking during Systick Handler

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

S32k144 , Stacking during Systick Handler

2,004 次查看
antonio_rodrigu
Contributor II

Shall S32k144 processor push information onto the current sack during Systick handler?

Other EV boards such as STM32 and TIva boards automatically save R0-R3,R12,LR,PC,PSR... as in the following figure.

pastedImage_1.png

In case S32k144 is not designed to do stacking automatically, how can I add assembler POP and PUSH code in a C source file by using S32DS? How can I save LR and PC values (is Lr equal to R14 and PC = R15)?

I'm asking this because I cannot see during debugging that the Registers are being stored in RAM automatically when the debugger hits a Break Point in Systick.

pastedImage_4.png

Thanks a lot.

标记 (3)
3 回复数

1,905 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello antonio.rodriguez@kpit.com,

I'm not sure why you get the question marks there.

But you should compare the core registers before it enters the SysTickHandler with the memory (stack) content in the handler:

This is what I see:

pastedImage_3.png

BR, Daniel 

0 项奖励
回复

1,905 次查看
antonio_rodrigu
Contributor II

Daniel,

Im using PEmicro "multilynk universal" debugger I just got it today. Is there any driver configuration I need to do to be able to work with it ?

0 项奖励
回复

1,905 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

PE Micro drivers are part of S32DS Installation. Your PE Micro Multilink should work out of the box. You can also re-install driver- driver is located in c:\NXP\S32DS_ARM_v2.2\Drivers\ (with default install path). 

Jiri