Does SCST library can perform the testing with some nested interrupts enabled?

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

Does SCST library can perform the testing with some nested interrupts enabled?

跳至解决方案
647 次查看
snaku_lee
Contributor III

Hi,

My application initial code sets all enabled interrupts' priority to lowest level (15), and it will perform the SCST_M4_S32K144 library periodically (every 5 ms), and it goes well before this week.

But this week I enable a new interrupt (FTM capture) to measure a 1KHz PWM signal, and I forgot to change the IRQ priority level to 15, so nested interrupt is working, and my application code hangs in the SCST library, sometimes it hang in different point. The call stack in below pictures.

My question is that why this happen and how to fix it ? Should I set all interrupt in the same priority for SCST library?

scst_hang_1.png

scst_hang_2.png

Thank you,

Snaku

标记 (3)
0 项奖励
1 解答
614 次查看
snaku_lee
Contributor III

I got a message from NXP's support case, it mention S32K144_M4SCST_1.0.6_D2106 fix a bug related to nested interrupt, and I am using S32K144_M4SCST_1.0.4, so it could be the reason why my program hangs in the SCST library.

 

there are no details what version of SCST library you use and therefore I would recommend you to use the latest one S32K144_M4SCST_1.0.6_D2106 with the following fixes:

 

========================================================

What's modified in RTM 1.0.6 release:

========================================================

Bugs:

CSTL-661 Nested interrupts bug

    - Fixed bug with nested interrupts causing unexpected exceptions and

      corrupted interrupt vector table (VTOR register).

 

Martin

Technical Support 

NXP Semiconductor 

在原帖中查看解决方案

0 项奖励
1 回复
615 次查看
snaku_lee
Contributor III

I got a message from NXP's support case, it mention S32K144_M4SCST_1.0.6_D2106 fix a bug related to nested interrupt, and I am using S32K144_M4SCST_1.0.4, so it could be the reason why my program hangs in the SCST library.

 

there are no details what version of SCST library you use and therefore I would recommend you to use the latest one S32K144_M4SCST_1.0.6_D2106 with the following fixes:

 

========================================================

What's modified in RTM 1.0.6 release:

========================================================

Bugs:

CSTL-661 Nested interrupts bug

    - Fixed bug with nested interrupts causing unexpected exceptions and

      corrupted interrupt vector table (VTOR register).

 

Martin

Technical Support 

NXP Semiconductor 

0 项奖励