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,285 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,230 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,261 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,235 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,231 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
%3CLINGO-SUB%20id%3D%22lingo-sub-2137556%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K344%20-%20Default%20Handler%20when%20trying%20to%20program%20EIM0%20(Error%20Injection%20Module)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137556%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI'm%20currently%20trying%20to%20inject%20faults%20using%20the%20EIM_0%20module%20without%20using%20the%20RTD.%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20trying%20to%20read%20or%20write%20the%20EIM%20registers%2C%20the%20following%20things%20happen%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20(1)%20The%20MCU%20immediately%20jumps%20to%20the%20default%20handler%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20(2)%20It's%20impossible%20to%20read%20the%20content%20of%20the%20EIM_0%20registers%20when%20using%20the%20%22Expression%22%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%20table%20during%20debugging%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EPoint%20(1)%20is%20generally%20caused%20by%20either%20incorrect%20module%20initialization%20or%20by%20not%20configuring%20the%20respective%20MC_ME%20register%20to%20enable%20clock%20to%20the%20module.%3C%2FP%3E%3CP%3EI%20already%20checked%20that%20REQ22%20in%26nbsp%3BPRTN1_COFB0_CLKEN%20is%20enabled%20by%20default%2C%20as%20confirmed%20by%20the%20STAT%20register%2C%20but%20the%20issue%20is%20still%20present.%20Is%20this%20register%20protected%20by%20default%3F%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3EFor%20context%2C%20I%20didn't%20configure%20the%20FCCU%20and%20ERM%20module%20yet.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI'm%20using%20the%20S32%20Design%20Studio%20on%20a%20S32K3X4EVB-T172%20with%20the%20S32%20Debug%20Probe.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2139118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20-%20Default%20Handler%20when%20trying%20to%20program%20EIM0%20(Error%20Injection%20Module)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2139118%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248917%22%20target%3D%22_blank%22%3E%40fede_ls%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EYou%20are%20right.%3C%2FP%3E%0A%3CP%3EIt%20is%20this%20gate%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1753256839952.png%22%20style%3D%22width%3A%20743px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1753256839952.png%22%20style%3D%22width%3A%20743px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349032i7DA275546EDB4B16%2Fimage-dimensions%2F743x297%3Fv%3Dv2%22%20width%3D%22743%22%20height%3D%22297%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1753256839952.png%22%20alt%3D%22danielmartynek_0-1753256839952.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2139074%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20-%20Default%20Handler%20when%20trying%20to%20program%20EIM0%20(Error%20Injection%20Module)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2139074%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Daniel.%3C%2FP%3E%3CP%3EAccording%20to%20the%20Reference%20Manual%2C%20the%26nbsp%3B%3CSPAN%3EPRTN2_COFB2_CLKEN%2FSTAT%26nbsp%3B%3C%2FSPAN%3Eregisters%20are%20%22Applicable%20for%20S32K328%2C%20S32K338%2C%20S32K348%2C%20S32K358%2C%20S32K388%2C%20and%20S43K389%20only.%22%3C%2FP%3E%3CP%3EThis%20is%20confirmed%20by%20the%20S32K344.h%20file%20automatically%20generated%2C%20which%20appears%20to%20end%20the%20MC_ME%20struct%20at%26nbsp%3B%3CSPAN%3EPRTN2_COFB1.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2138108%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20-%20Default%20Handler%20when%20trying%20to%20program%20EIM0%20(Error%20Injection%20Module)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2138108%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248917%22%20target%3D%22_blank%22%3E%40fede_ls%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EAre%20PRTN2_COFB2_STAT%5BBLOCK67-BLOCK70%5D%20%3D%3D%201%3F%3C%2FP%3E%0A%3CP%3EThis%20is%20controlled%20by%26nbsp%3BPRTN2_COFB2_CLKEN%5BREQ67-REQ70%5D.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E