SCHECK Shutdown Tests - error container

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

SCHECK Shutdown Tests - error container

Jump to solution
593 Views
Irshad2225
Contributor III

 

Hi, 

While executing the SCHECK SHUTDOWN test, after all configured tests are performed, I can see the sCheck_ErrorContainer got updated with errors, even though it has performed all the tests with a break in the for loop.

Irshad2225_1-1754663333378.png

In a readable format, the errors are 

  • SCHECK_ERR_SWT0
  • SCHECK_ERR_AHB_CM7_0
  • SCHECK_ERR_DTCM_ECC_M7_0

Observation: After performing AHB_CM7_0 tests, the error container doesn't get updated with SCHECK_ERR_AHB_CM7_0. However, after some tests, it gets updated in the error container.


But when the 
sCheck_GetFaultData API is called, the accumulated and expected signatures are the same.

Irshad2225_0-1754663168491.png


Q1. Does the same expected and accumulated signatures mean, all tests got passed, or we cannot relate test results to signature values, only with the error container?

Q2. If any Scheck test fails in between, will it break the loop and exit the function, or will it continue the tests?

Q3. After each failed test, the error container should be updated at the same time ?

Labels (1)
Tags (4)
0 Kudos
Reply
1 Solution
574 Views
Joey_z
NXP Employee
NXP Employee

hi,Irshad2225

Thank you for your information.

Refer to the S32G_SAF_SCHECK_UM.pdf, you can find more information about the Scheck.

Q1. Does the same expected and accumulated signatures mean, all tests got passed, or we cannot relate test results to signature values, only with the error container?

>>This signature shall be equal to the u32 GlobalExpectedSignature, when all configured tests were successfully executed and all test results were successfully collected. You should refer the error container to check the specific fault.

Joey_z_0-1754879719386.png

Q2. If any Scheck test fails in between, will it break the loop and exit the function, or will it continue the tests?

>> View the function of sCheck_ExecuteShutdownTests, it uses the sCheck_ExecuteSimpleTestBatch() for the testing batch. And the sCheck_ExecuteSimpleTestBatch only bleak on the SCHECK_INTERNAL_ERROR == u32Temp.

Joey_z_1-1754883838641.pngJoey_z_2-1754883849195.png

 

Q3. After each failed test, the error container should be updated at the same time ?

>> Refer to the 

 u32Temp = sCheck_CallTestFunc( pErrorContainer,
                                       testMode,
                                       &sCheck_arrTests[pTestBatch->arrTests[i]]
                                     ); function.
Execute all the tests within the batch, will use this function.
 
Hope it can help you.
 

BR

Joey

 

View solution in original post

0 Kudos
Reply
1 Reply
575 Views
Joey_z
NXP Employee
NXP Employee

hi,Irshad2225

Thank you for your information.

Refer to the S32G_SAF_SCHECK_UM.pdf, you can find more information about the Scheck.

Q1. Does the same expected and accumulated signatures mean, all tests got passed, or we cannot relate test results to signature values, only with the error container?

>>This signature shall be equal to the u32 GlobalExpectedSignature, when all configured tests were successfully executed and all test results were successfully collected. You should refer the error container to check the specific fault.

Joey_z_0-1754879719386.png

Q2. If any Scheck test fails in between, will it break the loop and exit the function, or will it continue the tests?

>> View the function of sCheck_ExecuteShutdownTests, it uses the sCheck_ExecuteSimpleTestBatch() for the testing batch. And the sCheck_ExecuteSimpleTestBatch only bleak on the SCHECK_INTERNAL_ERROR == u32Temp.

Joey_z_1-1754883838641.pngJoey_z_2-1754883849195.png

 

Q3. After each failed test, the error container should be updated at the same time ?

>> Refer to the 

 u32Temp = sCheck_CallTestFunc( pErrorContainer,
                                       testMode,
                                       &sCheck_arrTests[pTestBatch->arrTests[i]]
                                     ); function.
Execute all the tests within the batch, will use this function.
 
Hope it can help you.
 

BR

Joey

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2149282%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESCHECK%20Shutdown%20Tests%20-%20error%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149282%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EWhile%20executing%20the%20SCHECK%20SHUTDOWN%20test%2C%20after%20all%20configured%20tests%20are%20performed%2C%20I%20can%20see%20the%26nbsp%3B%3CSPAN%3EsCheck_ErrorContainer%20got%20updated%20with%20errors%2C%20even%20though%20it%20has%20performed%20all%20the%20tests%20with%20a%20break%20in%20the%20for%20loop.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Irshad2225_1-1754663333378.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Irshad2225_1-1754663333378.png%22%20style%3D%22width%3A%20348px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351600iC661026D63535D2E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Irshad2225_1-1754663333378.png%22%20alt%3D%22Irshad2225_1-1754663333378.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIn%20a%20readable%20format%2C%20the%20errors%20are%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3ESCHECK_ERR_SWT0%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ESCHECK_ERR_AHB_CM7_0%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ESCHECK_ERR_DTCM_ECC_M7_0%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%3EObservation%3A%20After%20performing%20AHB_CM7_0%20tests%2C%20the%20error%20container%20doesn't%20get%20updated%20with%26nbsp%3BSCHECK_ERR_AHB_CM7_0.%20However%2C%20after%20some%20tests%2C%20it%20gets%20updated%20in%20the%20error%20container.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CBR%20%2F%3EBut%20when%20the%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%3CSPAN%3EsCheck_GetFaultData%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%3EAPI%20is%20called%2C%20the%20accumulated%20and%20expected%20signatures%20are%20the%20same.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Irshad2225_0-1754663168491.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Irshad2225_0-1754663168491.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351599i8BD8CBA75F965A65%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Irshad2225_0-1754663168491.png%22%20alt%3D%22Irshad2225_0-1754663168491.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EQ1.%20Does%20the%20same%20expected%20and%20accumulated%20signatures%20mean%2C%20all%20tests%20got%20passed%2C%20or%20we%20cannot%20relate%20test%20results%20to%20signature%20values%2C%20only%20with%20the%20error%20container%3F%3C%2FP%3E%3CP%3EQ2.%20If%20any%20Scheck%20test%20fails%20in%20between%2C%20will%20it%20break%20the%20loop%20and%20exit%20the%20function%2C%20or%20will%20it%20continue%20the%20tests%3F%3C%2FP%3E%3CP%3EQ3.%20After%20each%20failed%20test%2C%20the%20error%20container%20should%20be%20updated%20at%20the%20same%20time%26nbsp%3B%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2149282%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGoldVIP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SCHECK%20Shutdown%20Tests%20-%20error%20container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CFONT%3Ehi%2C%3CSPAN%3EIrshad2225%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20information.%3C%2FP%3E%0A%3CP%3ERefer%20to%20the%26nbsp%3BS32G_SAF_SCHECK_UM.pdf%2C%20you%20can%20find%20more%20information%20about%20the%20Scheck.%3C%2FP%3E%0A%3CP%3EQ1.%20Does%20the%20same%20expected%20and%20accumulated%20signatures%20mean%2C%20all%20tests%20got%20passed%2C%20or%20we%20cannot%20relate%20test%20results%20to%20signature%20values%2C%20only%20with%20the%20error%20container%3F%3C%2FP%3E%0A%3CP%3E%26gt%3B%26gt%3B%3CFONT%3EThis%20signature%20shall%20be%20equal%20to%20the%20u32%20GlobalExpectedSignature%2C%20when%20all%20configured%20tests%20were%20successfully%20executed%20and%20all%20test%20results%20were%20successfully%20collected.%20You%20should%20refer%20the%20error%20container%20to%20check%20the%20specific%20fault.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Joey_z_0-1754879719386.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Joey_z_0-1754879719386.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351672iE7D099C60BBD8E47%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Joey_z_0-1754879719386.png%22%20alt%3D%22Joey_z_0-1754879719386.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EQ2.%20If%20any%20Scheck%20test%20fails%20in%20between%2C%20will%20it%20break%20the%20loop%20and%20exit%20the%20function%2C%20or%20will%20it%20continue%20the%20tests%3F%3C%2FP%3E%0A%3CP%3E%26gt%3B%26gt%3B%20View%20the%20function%20of%26nbsp%3BsCheck_ExecuteShutdownTests%2C%20it%20uses%20the%26nbsp%3BsCheck_ExecuteSimpleTestBatch()%20for%20the%26nbsp%3Btesting%20batch.%20And%20the%26nbsp%3B%3CSPAN%3E%3CSPAN%3EsCheck_ExecuteSimpleTestBatch%20only%20bleak%20on%20the%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3ESCHECK_INTERNAL_ERROR%3C%2FSPAN%3E%20%3CSPAN%3E%3D%3D%3C%2FSPAN%3E%20%3CSPAN%3Eu32Temp.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Joey_z_1-1754883838641.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Joey_z_1-1754883838641.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351699i39FC72A073B72A4B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Joey_z_1-1754883838641.png%22%20alt%3D%22Joey_z_1-1754883838641.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Joey_z_2-1754883849195.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Joey_z_2-1754883849195.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351700i5848528D3BFAC1C4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Joey_z_2-1754883849195.png%22%20alt%3D%22Joey_z_2-1754883849195.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EQ3.%20After%20each%20failed%20test%2C%20the%20error%20container%20should%20be%20updated%20at%20the%20same%20time%26nbsp%3B%3F%3C%2FP%3E%0A%3CP%3E%26gt%3B%26gt%3B%20Refer%20to%20the%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eu32Temp%3C%2FSPAN%3E%20%3CSPAN%3E%3D%3C%2FSPAN%3E%20%3CSPAN%3EsCheck_CallTestFunc%3C%2FSPAN%3E%3CSPAN%3E(%20%3C%2FSPAN%3E%3CSTRONG%3EpErrorContainer%3C%2FSTRONG%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EtestMode%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%26amp%3B%3C%2FSPAN%3E%3CSPAN%3EsCheck_arrTests%3C%2FSPAN%3E%3CSPAN%3E%5B%3C%2FSPAN%3E%3CSPAN%3EpTestBatch%3C%2FSPAN%3E%3CSPAN%3E-%26gt%3B%3C%2FSPAN%3E%3CSPAN%3EarrTests%3C%2FSPAN%3E%3CSPAN%3E%5B%3C%2FSPAN%3E%3CSPAN%3Ei%3C%2FSPAN%3E%3CSPAN%3E%5D%5D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B)%3B%20function.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EExecute%20all%20the%20tests%20within%20the%20batch%2C%20will%20use%20this%20function.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EHope%20it%20can%20help%20you.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E