SCST NVIC registers corrupted

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SCST NVIC registers corrupted

Jump to solution
1,536 Views
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

Tags (2)
0 Kudos
1 Solution
1,514 Views
martinkaspar-r3
NXP Employee
NXP Employee

Hello,

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

View solution in original post

0 Kudos
6 Replies
1,515 Views
martinkaspar-r3
NXP Employee
NXP Employee

Hello,

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

0 Kudos
1,482 Views
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 Kudos
1,446 Views
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 Kudos
1,442 Views
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 Kudos
1,511 Views
jeremie_chirat
Contributor II

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

0 Kudos
1,518 Views
jeremie_chirat
Contributor II

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

0 Kudos