S32K344 - Default Handler when trying to program EIM0 (Error Injection Module)

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

S32K344 - Default Handler when trying to program EIM0 (Error Injection Module)

Jump to solution
1,281 Views
fede_ls
Contributor II

Hi,

I'm currently trying to inject faults using the EIM_0 module without using the RTD. 

When trying to read or write the EIM registers, the following things happen:

      (1) The MCU immediately jumps to the default handler

      (2) It's impossible to read the content of the EIM_0 registers when using the "Expression"                  table during debugging

 

Point (1) is generally caused by either incorrect module initialization or by not configuring the respective MC_ME register to enable clock to the module.

I already checked that REQ22 in PRTN1_COFB0_CLKEN is enabled by default, as confirmed by the STAT register, but the issue is still present. Is this register protected by default? 

 

 

For context, I didn't configure the FCCU and ERM module yet.

 

I'm using the S32 Design Studio on a S32K3X4EVB-T172 with the S32 Debug Probe.

 

0 Kudos
Reply
1 Solution
1,226 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @fede_ls,

You are right.

It is this gate:

danielmartynek_0-1753256839952.png

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
3 Replies
1,257 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @fede_ls,

Are PRTN2_COFB2_STAT[BLOCK67-BLOCK70] == 1?

This is controlled by PRTN2_COFB2_CLKEN[REQ67-REQ70].

 

Regards,

Daniel

0 Kudos
Reply
1,231 Views
fede_ls
Contributor II

Hi Daniel.

According to the Reference Manual, the PRTN2_COFB2_CLKEN/STAT registers are "Applicable for S32K328, S32K338, S32K348, S32K358, S32K388, and S43K389 only."

This is confirmed by the S32K344.h file automatically generated, which appears to end the MC_ME struct at PRTN2_COFB1.

0 Kudos
Reply
1,227 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @fede_ls,

You are right.

It is this gate:

danielmartynek_0-1753256839952.png

 

Regards,

Daniel

0 Kudos
Reply