How to avoid jumping to HardFault_Handler in EIM

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

How to avoid jumping to HardFault_Handler in EIM

460 Views
Sylvia_jiang
Contributor III

Hi Community,

     I am trying to debug FCCU EIM  as below:

Sylvia_jiang_0-1678266741030.png

debug condition:

1) software is S32DS 3.5,

2) debugger is Multilink,

3) EVB is Q172,

4) SPD configurations keep defaults except that NMI Notification API is UserAlarmHandler (define as above),

5) FCCU 0 Interrupt and FCCU 1 Interrupt is enabled, FCCU_0_ISR is FCCU_ALARM_ISR, FCCU_1_ISR is FCCU_TIMEOUT_ISR,

My Question is:

1) eMcem_Init() return is E_NOT_OK because register NCF_S0(address:4038_4080h) is always 1 which indicates NCF0 faults occured, and this fault cannot be clear by writing 1, what shall I do for  successful eMcem_Init? or eMcem_Init doesn't support multilink debugging?

2)eMcem_Eim_SetupInjectionChannel() step into highligh code as below ,

1.png

 and then jump to HardFault_Handler. What shall I do for successful performing this function ?

3) Is there any S32K3XX example about EIM/ERM including configurations and some codes?

Tags (3)
0 Kudos
0 Replies