SCST Tests interrupted in the first atomic test

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SCST Tests interrupted in the first atomic test

186件の閲覧回数
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!
タグ(1)
0 件の賞賛
返信
3 返答(返信)

162件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @aymane_chaib_nxp95,

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

 

Thank you,

Daniel

0 件の賞賛
返信

126件の閲覧回数
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 件の賞賛
返信

121件の閲覧回数
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.