I have a problem with my custom board. I wrote a simple application using MQX and it works fine on the TWR-k60, using the PEmicru Multilink Universal. Using the same setup on my custom board, make the debugger enter directly to Low Power Mode waiting an ISR. I saw something about the NV_FOPT register than can avoid entering Low Power mode, but I can't see how to configure it. please help.
Solved! Go to Solution.
ICSR lowest byte = 3 means hard fault,
HFSR bit 30 is set, means FORCED, "bus fault / memory management fault / usage fault".
BFAR contains the address of the RTC_CR. Have you put a one in the RTC's SIM_SCGCx bit?
The problem maybe caused by an unhandled interrupt. How can I see which interrupt caused the problem?
Check SCB_ICSR (in CodeWarrior debugger under "System Control Registers"). The lowest 8b contain the active exception number. (3 is hard fault; then SCB_HFSR gives further information.)
HTH,
KA
Here is all the list of my system control registers (value, address) can you understand what is the unhandled interrupt?
by the way I see a problem in the TWR-K60 board with a simple MQX "hello world" project when I take out the TWR-SER board. maybe its the same problem as in my custom board.? Thanks for the help.
SCB_ACTLR: 0x0, 0xe000e008
SCB_CPUID: 0x410fc240, 0xe000ed00
SCB_ICSR: 0x803, 0xe000ed04
SCB_VTOR: 0x0, 0xe000ed08
SCB_AIRCR: 0xfa050000, 0xe000ed0c
SCB_SCR: 0x0, 0xe000ed10
SCB_CCR: 0x200, 0xe000ed14
SCB_SHPR1: 0x0, 0xe000ed18
SCB_SHPR2: 0x10000000, 0xe000ed1c
SCB_SHPR3: 0x40000000, 0xe000ed20
SCB_SHCSR: 0x0, 0xe000ed24
SCB_CFSR: 0x8200, 0xe000ed28
SCB_HFSR: 0x40000000, 0xe000ed2c
SCB_DFSR: 0x8, 0xe000ed30
SCB_MMFAR: 0x4003d010, 0xe000ed34
SCB_BFAR: 0x4003d010, 0xe000ed38
SCB_AFSR: 0x0, 0xe000ed3c
SYST_CSR: 0x7, 0xe000e010
SYST_RVR: 0x17700, 0xe000e014
SYST_CVR: 0x174ba, 0xe000e018
SYST_CALIB: 0x0, 0xe000e01c
My Mistake the TWR-K60 works fine with or without the TWR-SER.
ICSR lowest byte = 3 means hard fault,
HFSR bit 30 is set, means FORCED, "bus fault / memory management fault / usage fault".
BFAR contains the address of the RTC_CR. Have you put a one in the RTC's SIM_SCGCx bit?
Thank You!!! the problem was inverse diode in the RTC interface.