How to avoid jumping to HardFault_Handler in EIM

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

How to avoid jumping to HardFault_Handler in EIM

557件の閲覧回数
Sylvia_jiang
Contributor IV

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?

タグ(3)
0 件の賞賛
0 返答(返信)