Question about SCST Lib test

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

Question about SCST Lib test

135 Views
Loky
Contributor II

Hi team:

I think all SCST tests can be interrupted, right?

But I don't understand this sentence.

Loky_1-1765523041131.png

If I put SCST test1 in Task1(Low priority), Test1 is preempted by Task2(High priority) while Test1 is running. I think stack pointer and stack content will be modified. So, I don't understand this sentence meaning. Can you explain it?

Tags (1)
0 Kudos
Reply
2 Replies

111 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Not all SCST atomic tests are safely preemptible.
Some test groups replace the interrupt vector table or temporarily block interrupts, and they expect to run to completion without being interrupted by normal application ISRs or excessive task-preemption jitter.
If an “alien” interrupt or a context change occurs during those tests, the SCST library detects it and flags “TEST_WAS_INTERRUPTED”, and your app must handle that (e.g., reschedule or reset, depending on your safety strategy).
 
Best regards,
Peter
0 Kudos
Reply

59 Views
Loky
Contributor II

Hi Peter:

Can you tell me which SCST atomic tests can be interrupted and which will block?

Loky_0-1765695144565.png

Loky_1-1765695152134.png

Best regards,

Loky

Tags (1)
0 Kudos
Reply