SCST Tests interrupted in the first atomic test

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

SCST Tests interrupted in the first atomic test

123 Views
aymane_chaib_nxp95
Contributor I

Hello,

I am working in a program for automtive use, the code is bellow:

static void mst_SCST_RunGroup(const mst_stScstGrpDesc_Type *pstScstGrp)

{
    uint32 u32ScstCumSig = KU32_ZERO;

    u32ScstCumSig = m4_scst_execute_core_tests((uint32) pstScstGrp->Start, (uint32) pstScstGrp->End);

   
    if (m4_scst_accumulated_signature == M4_SCST_TEST_WAS_INTERRUPTED)
    {
          RCM_ResetEcuWithCause();
    }
 
}
 
the definition of test group is bellow:
const mst_stScstGrpDesc_Type mst_castScstGrpDesc[MST_KU8_TESTGROUP_COUNT]=
{
    {   /* Test Group 0 */
        .Start     =          0u,
        .End       =         10u,
        .Signature = 0x55AA52DEu
    },
    {   /* Test Group 1 */
        .Start     =         11u,
        .End       =         18u,
        .Signature = 0xE2498B6Cu
    },
    {   /* Test Group 2 */
        .Start     =         19u,
        .End       =         21u,
        .Signature = 0x660B341Bu
    },
    {   /* Test Group 3 */
        .Start     =         22u,
        .End       =         23u,
        .Signature = 0xC2323B30u
    },
    {   /* Test Group 4 */
        .Start     =         24u,
        .End       =         25u,
        .Signature = 0x9E2102BAu
    },
    {   /* Test Group 5 */
        .Start     =         26u,
        .End       =         31u,
        .Signature = 0x928DDE60u
    },
    {   /* Test Group 6 */
        .Start     =         32u,
        .End       =         33u,
        .Signature = 0x55AAE69Eu
    },
    {   /* Test Group 7 */
        .Start     =         34u,
        .End       =         38u,
        .Signature = 0x15E0123Du
    },
    {   /* Test Group 8 */
        .Start     =         39u,
        .End       =         43u,
        .Signature = 0x980FEBBBu
    }
};
 
The problem is that the test is interrupted in the first test of the table.
Any Idea about how to resolve or diagnostic this problem?
Thank you in advance!
Tags (1)
0 Kudos
Reply
3 Replies

99 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @aymane_chaib_nxp95,

Can you specify the MCU part and the version of SCST?

 

Thank you,

Daniel

0 Kudos
Reply

63 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @aymane_chaib_nxp95,

As we have discussed, to avoid problem with SCST tests interruption, the following must be ensured.
1) Execution time for each testgroup must be lower than SysTick timer period.
2) SCST execution shall be synchronized with App SysTick .

 

BR, Daniel

0 Kudos
Reply

58 Views
aymane_chaib_nxp95
Contributor I

Hello @danielmartynek ,

 

the solution I adopted was to execute again the test which was interrupted, 5 times maximum, that seems to be a good solution because the interrupted test succeeds after 1 or 2 tries.