SCST NVIC registers corrupted

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

SCST NVIC registers corrupted

跳至解决方案
2,147 次查看
jeremie_chirat
Contributor II

Hello,

We are evaluating SCST component (S32K144_M4SCST_1.0.6_D2106) on our target which is equipped with S32K148.

We are using an RTOS (SafeRTOS) and thus configured SCST accordingly for Systick usage:

#define M4_SCST_SYSTICK_IS_RUNNING 1U

But when using the scst tests at runtime, after a random amount of time (could be a few seconds to 2 minutes), we get an error M4_SCST_TEST_WAS_INTERRUPTED from the return value of m4_scst_execute_core_tests.

The test involved in the error changes according to runs ( checking m4_scst_last_executed_test_number we found test 9, 11, 14 ...).

The issue is that once this happens, the system becomes unstable. After some long research into possible incorrect configuration or misuse of the library and/or issues in our system itself (interrupt and task priority etc...), we went back and checked for additional documents from NXP and found the SW32K144_M4SCST_1.0.6_D2106_LOKD.

It list this item:

CSTL-960 : [M4_SCST] PRIMASK and NVIC registers corrupted when SysTick is running.

We checked and indeed, as in your Know defect, after the interruption happens, all the NVIC registers for interrupts are reset to 0:

Before Interruption:

Before InterruptionBefore Interruption

After Interruption:

NVIC_After_Interruption.png

In the "Resolution" field for 2022-Jun-14 there is:

"Fixed problem with corrupted PRIMAK and NVIC registers when M4_SCST_TEST_WAS_INTERRUPTED is returned.
Updated:
- m4_scst_exception_test_systick.s
- m4_scst_exception_lib.s"

Can you provide the fix to us ? Is there a planned official release of this fix?

Best regards,

Jérémie Chirat

标记 (2)
0 项奖励
回复
1 解答
2,125 次查看
martinkaspar-r3
NXP Employee
NXP Employee

Hello,

The new 1.0.7 release is scheduled to be available by end of June 2022.

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,126 次查看
martinkaspar-r3
NXP Employee
NXP Employee

Hello,

The new 1.0.7 release is scheduled to be available by end of June 2022.

0 项奖励
回复
2,093 次查看
jeremie_chirat
Contributor II

@martinkaspar-r3, my colleague tried to evaluate the SCST to see if the new version 1.07 is available, but the only files he sees are 2 excel files of LOKD, one for 1.06 and one for 1.07, but there are no exe files for 1.06 or 1.07 (neither on "current" or "previous").

It seems like 1.06 was removed but 1.07 was not added. Will it be available shortly?

The bug is pretty impacting as it causes random crashes to our application so we need to evaluate the fix ASAP (we are currently in the buying process for the license).

Thank you.

0 项奖励
回复
2,057 次查看
martinkaspar-r3
NXP Employee
NXP Employee

I believe that this your request is now resolved and that you have access to 1.0.7 release

0 项奖励
回复
2,053 次查看
jeremie_chirat
Contributor II

Hi @martinkaspar-r3 ,

 

Yes we have been given access to 1.0.7. It seems to solve the issue, even if a scst test is interrupted, the system stays stable so I think the interrupts are recovered correctly.

0 项奖励
回复
2,122 次查看
jeremie_chirat
Contributor II

Thank you for the information, so we will wait for the release and check if it solves our issue.

0 项奖励
回复
2,129 次查看
jeremie_chirat
Contributor II

@danielmartynek can you help or forward to the relevant team?

0 项奖励
回复