The eMcem_Fccu_ClearFault function within eMcem_Fccu_Init failed to clear errors.

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

The eMcem_Fccu_ClearFault function within eMcem_Fccu_Init failed to clear errors.

Jump to solution
411 Views
Allen_863
Contributor III

I found that eMcem_Fccu_ClearFault is always returning E_NOT_OK. I tried increasing FCCU_MAX_FAULT_CLEAR_COUNT_U8, but it still doesn't clear.

Q9.png

I have configured FCCU_ERR0 and FCCU_ERR1.

Q8.png

I have configured the Handlers for FCCU_0_IRQn and FCCU_1_IRQn as FCCU_ALARM_ISR and FCCU_TIMEOUT_ISR, respectively.

Q7.png

Then I tried setting FAULT GROUPS to DISABLE, but it still returned E_NOT_OK. What else could be the reason?

Q6.png

Tags (3)
0 Kudos
Reply
1 Solution
394 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Allen_863,

This issue might be caused by active NCF faults. There is a known hardware issue with the NCF[0] lockstep error, which can be triggered when attaching a debugger.
Workaround: Avoid resetting the S32K device via the debugger. Instead, allow the application to start without the debugger (for example, insert a while(true) loop in the code), and then attach the debugger without causing a reset. This approach prevents raising the NCF[0] fault.
You can also check the NCF status registers to see if any faults are present when you observe the failure during eMcem_Init().

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
1 Reply
395 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Allen_863,

This issue might be caused by active NCF faults. There is a known hardware issue with the NCF[0] lockstep error, which can be triggered when attaching a debugger.
Workaround: Avoid resetting the S32K device via the debugger. Instead, allow the application to start without the debugger (for example, insert a while(true) loop in the code), and then attach the debugger without causing a reset. This approach prevents raising the NCF[0] fault.
You can also check the NCF status registers to see if any faults are present when you observe the failure during eMcem_Init().

 

Regards,

Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2252083%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThe%20eMcem_Fccu_ClearFault%20function%20within%20eMcem_Fccu_Init%20failed%20to%20clear%20errors.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252083%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20found%20that%20eMcem_Fccu_ClearFault%20is%20always%20returning%20E_NOT_OK.%20I%20tried%20increasing%20FCCU_MAX_FAULT_CLEAR_COUNT_U8%2C%20but%20it%20still%20doesn't%20clear.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Q9.png%22%20style%3D%22width%3A%20904px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Q9.png%22%20style%3D%22width%3A%20904px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367952i928020CD71B1E078%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Q9.png%22%20alt%3D%22Q9.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20have%20configured%20FCCU_ERR0%20and%20FCCU_ERR1.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Q8.png%22%20style%3D%22width%3A%20910px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Q8.png%22%20style%3D%22width%3A%20910px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367953iB36C706891943E5B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Q8.png%22%20alt%3D%22Q8.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20have%20configured%20the%20Handlers%20for%20FCCU_0_IRQn%20and%20FCCU_1_IRQn%20as%20FCCU_ALARM_ISR%20and%20FCCU_TIMEOUT_ISR%2C%20respectively.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Q7.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Q7.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367955i9B00166616D688F2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Q7.png%22%20alt%3D%22Q7.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThen%20I%20tried%20setting%20FAULT%20GROUPS%20to%20DISABLE%2C%20but%20it%20still%20returned%20E_NOT_OK.%20What%20else%20could%20be%20the%20reason%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Q6.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Q6.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367956i1623AF24F9D45C11%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Q6.png%22%20alt%3D%22Q6.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2252260%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20The%20eMcem_Fccu_ClearFault%20function%20within%20eMcem_Fccu_Init%20failed%20to%20clear%20errors.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2252260%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%2F179292%22%20target%3D%22_blank%22%3E%40Allen_863%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThis%20issue%20might%20be%20caused%20by%20active%20NCF%20faults.%20There%20is%20a%20known%20hardware%20issue%20with%20the%20NCF%5B0%5D%20lockstep%20error%2C%20which%20can%20be%20triggered%20when%20attaching%20a%20debugger.%3CBR%20%2F%3EWorkaround%3A%20Avoid%20resetting%20the%20S32K%20device%20via%20the%20debugger.%20Instead%2C%20allow%20the%20application%20to%20start%20without%20the%20debugger%20(for%20example%2C%20insert%20a%20while(true)%20loop%20in%20the%20code)%2C%20and%20then%20attach%20the%20debugger%20without%20causing%20a%20reset.%20This%20approach%20prevents%20raising%20the%20NCF%5B0%5D%20fault.%3CBR%20%2F%3EYou%20can%20also%20check%20the%20NCF%20status%20registers%20to%20see%20if%20any%20faults%20are%20present%20when%20you%20observe%20the%20failure%20during%20eMcem_Init().%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