How to trace PE_ISR() for MK60 MCU

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

How to trace PE_ISR() for MK60 MCU

681 Views
rabbitz
Contributor I

I have an CodeWarrior peoject with PE generated code, it some time trigger PE_ISR() and hang, I would like to trace the reason and fix it.

Is there suggestion how to trace it?

Regards

Sam

Labels (1)
0 Kudos
3 Replies

551 Views
BlackNight
NXP Employee
NXP Employee

Hi Sam,

You can enable 'own handler for every interrupt', so you know which interrupt is firing.

See Oh my! An Interrupt… | MCU on Eclipse

I hope this helps,

Erich

0 Kudos

551 Views
rabbitz
Contributor I

Hi Erich,

It is Hard_Fault,

How many conditions can cause this fault?

Regards

Sam

0 Kudos

551 Views
BlackNight
NXP Employee
NXP Employee

Hi Sam,

most likely it is a misaligned access, an access to a NULL pointer or accessing a peripheral which is not clocked/powered.

Here are a few articles how to debug the reason for the hard fault:

Debugging Hard Faults on ARM Cortex-M

Debugging ARM Cortex-M Hard Faults with GDB Custom Command

A Processor Expert Component to Help with Hard Faults

For the last one with that Processor Expert component (this is what I use with my Processor Expert projects), you can find it on SourceForge:

https://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/

how to install: McuOnEclipse Releases on SourceForge

I hope this helps,

Erich

0 Kudos