Low Power Mode entering after Boot.

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

Low Power Mode entering after Boot.

Jump to solution
1,468 Views
MichaelDavid
Contributor III

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. 

0 Kudos
1 Solution
928 Views
konrada_anton
Contributor III

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?

View solution in original post

0 Kudos
6 Replies
928 Views
MichaelDavid
Contributor III

The problem maybe caused by an unhandled interrupt. How can I see which interrupt caused the problem?

0 Kudos
928 Views
konrada_anton
Contributor III

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

0 Kudos
928 Views
MichaelDavid
Contributor III

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

0 Kudos
928 Views
MichaelDavid
Contributor III

My Mistake the TWR-K60 works fine with or without the TWR-SER. 

0 Kudos
929 Views
konrada_anton
Contributor III

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?

0 Kudos
928 Views
MichaelDavid
Contributor III

Thank You!!! the problem was inverse diode in the RTC interface.

0 Kudos