Hi,NXP community:
I want to add SCST kernel self-test code for kernel detection when using S32K146, now using IDE S32DS, when using API to call the test function found that m4_scst_exception_hard_fault1 in the test occurred an exception leading to program stuck. May I ask how to configure and use this SCST self-test library in the project? Is there something wrong with my configuration? debug check in m4_scst_exception_hard_fault1 runtime will always trigger jump to m4_scst_ISR_dispatcher, please help me find the reason, configuration is as follows:
Solved! Go to Solution.
Hello,
This description looks like an issue with connected debugger which most probably stops SCST tests execution.
In case of the debugger is connected then exceptions triggered by SCST Library for testing purposes can be captured directly by the debugger, tests execution then stop in the m4_scst_ISR_dispatcher function.
To avoid this behavior, please configure your debugger not to capture exceptions!
E.g. for Lauterbach debugger this can be done by running the following commands:
TrOnchip.Set.HARDERR OFF
TrOnchip.Set.BUSERR OFF
TrOnchip.Set.CHKERR OFF
TrOnchip.Set.MMERR OFF
TrOnchip.Set.STATERR OFF
Hope this helps…
Hello,
This description looks like an issue with connected debugger which most probably stops SCST tests execution.
In case of the debugger is connected then exceptions triggered by SCST Library for testing purposes can be captured directly by the debugger, tests execution then stop in the m4_scst_ISR_dispatcher function.
To avoid this behavior, please configure your debugger not to capture exceptions!
E.g. for Lauterbach debugger this can be done by running the following commands:
TrOnchip.Set.HARDERR OFF
TrOnchip.Set.BUSERR OFF
TrOnchip.Set.CHKERR OFF
TrOnchip.Set.MMERR OFF
TrOnchip.Set.STATERR OFF
Hope this helps…