S32K312 does not trigger. the interrupt when debugging

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

S32K312 does not trigger. the interrupt when debugging

跳至解决方案
1,563 次查看
jhuang1
Contributor II

Hi,

    I'm developing s32k312 these days, and a problem has confused me. The s32ds ide cannot trigger the interrupt(pit) when debugging, which I tried both jlink and pemicro, and their driver have both be updated to the latest. The interrupt cannot be triggered only in debugging, it works fine when burned into flash and boot and run automatically after POR.

    I thought this problem due to my project, so I created a PIT example project from the sdk, but it behaved the same as my project, PIT interrupt cannot be triggered when debugging.

Anybody has met the same problem as mine? Please share the experience with me. Thanks!

 

0 项奖励
回复
1 解答
1,500 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@jhuang1

here you can see it works fine on myside.

Senlent_0-1691377648905.png

the test hardware is S32K312EVB-Q172

the test software is RTD 2.0.2

the debugger is J-link and OpenSDA, both works fine on myside.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,551 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@jhuang1

I tested the interrupt function of PIT on S32K344 (this should be the same as S32K312), it works as expected on my side.
two investigation directions
1. Is it possible to change a debugger and test again

https://community.nxp.com/t5/MPC5xxx/stuck-in-OSIF-TimeDelay/m-p/1354830 
2. the setting of compilation optimization level

https://community.nxp.com/t5/S32-Design-Studio/Breakpoint-in-PitNotification-didn-t-stop/td-p/165316... 

0 项奖励
回复
1,537 次查看
jhuang1
Contributor II

Hi Senlent,

    I have tested the program on s32k344,and it worked ok. The s32k312 is on my new board. I tested the second action, setting the optimization level to the other levels, but it still work unnormaly. Occasionally the interrupt can hit the break point, no interrupt triggering mostly.

0 项奖励
回复
1,501 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@jhuang1

here you can see it works fine on myside.

Senlent_0-1691377648905.png

the test hardware is S32K312EVB-Q172

the test software is RTD 2.0.2

the debugger is J-link and OpenSDA, both works fine on myside.

0 项奖励
回复
1,490 次查看
jhuang1
Contributor II

Hi Senlent,

    The RTD I tested in last program is 2.0.0, and I changed it to 3.0.0 now, the pit interrupt can be triggered finally. I would test RTD 2.0.2 these days, it seems RTD 3.0.0 has changed a lot relative to 2.0.0.

Thanks for your advise!

0 项奖励
回复
1,521 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@jhuang1

Thanks for your feedback, I will reproduce the issue on my side.

I'll get back to you next Monday, I'm out of the office right now.

0 项奖励
回复