S32k144 SCST(Test Index 11, m4_scst_exception_test_handler_thread)

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

S32k144 SCST(Test Index 11, m4_scst_exception_test_handler_thread)

1,076 Views
sungjun
Contributor II

Hi. NXP Team.

I am struggling with Index 11(m4_scst_exception_test_handler_thread) of the SCST Test.

The m4_scst_exception_test_handler_thread will throw a hardFault_Handler as shown in Figure 1 when tested with the trace32 debugger attached.

<Figure 1>

sungjun_1-1687949493475.png

 


But if I remove the debugger it works fine.
(The expected Test Reference Signature is output.)

sungjun_0-1687949461904.png

 

So I removed the debugger and did m4_scst_execute_core_tests(0,43).
But the test result is failure.

(If core_test is performed one by one without a debugger, normal signatures are output.)

In my opinion, the single test works fine.
But when I run the tests consecutively, Index 11 of the m4_scst_execute_core_tests seems to fail.

Please refer to Figure 2.

<Firgure 2>

sungjun_2-1687949880664.pngsungjun_3-1687949899562.png

 

I don't know how to test.
I would like to ask for your help.

0 Kudos
Reply
5 Replies

1,010 Views
martinkaspar-r3
NXP Employee
NXP Employee

Hello,

first, please, what product version do you use? Most probably, it is 1.0.4 version which is relatively old. The newest version is 1.0.10, would it possible to migrate to it?

The described behavior might be because the FORCED flag is tied down by the debugger. Unfortunately, this feature complicates debugging of M4 SCST Library. The only possibility for debugging is to set the breakpoint just after the HFSR register is read.

0 Kudos
Reply

978 Views
sungjun
Contributor II

Thanks for your reply.
Currently using the old version, and ordering the new version.
The debugger issue you described has now been resolved.

But I have another problem.
Core test fails as global variable is added.
Can you give me some advice on this?

0 Kudos
Reply

967 Views
martinkaspar-r3
NXP Employee
NXP Employee

Hello,

Could you, please, be more specific what global variable do you mean?

  1. Is this variable SCST related or not?
  2. Is this variable used by the same core on which SCST is executed?

 

Note, that SCST provides 4 global variables, please see SCST User Manual for more details:

  • m4_scst_accumulated_signature
  • m4_scst_last_executed_test_number
  • m4_scst_test_was_interrupted
  • m4_scst_fault_inject_test_index
0 Kudos
Reply

960 Views
sungjun
Contributor II

Thank you for your reply.

The answers to your questions are summarized below.

 

Could you, please, be more specific what global variable do you mean?

  1. Is this variable SCST related or not?
    ->
    No. The declared global variable is not related to the variables below.

    m4_scst_accumulated_signature
    m4_scst_last_executed_test_number
    m4_scst_test_was_interrupted
    m4_scst_fault_inject_test_index

    I confirmed that all SCST passes, and I declared a global variable while running the user code application, but SCST fails from this point on.

  2. Is this variable used by the same core on which SCST is executed?
    -> No.

A : Could this be related to the manual's customSection guide?

0 Kudos
Reply

935 Views
martinkaspar-r3
NXP Employee
NXP Employee

Thank you for the additional information.
Please, provide us more information about how SCST fails:

  1. Does it return a wrong signature?
    - Please provide us signature, which is returned + value of the m4_scst_last_executed_test_number + value of the m4_scst_test_was_interrupted variables.
  2. Or it triggers some unexpected exception?
    - Which exception is triggered?
    - What is the value of system registers R0-R15, configuration registers, data on stack…
  3. Watchdog timeout?
    - Please provide us at which address is SCST stuck.

Could this be related to the manual's customSection guide?
- Maybe yes. User application shall not place its global variables into SCST custom sections. Please check your .map file for possible conflicts.

0 Kudos
Reply