cancel
Showing results for 
Search instead for 
Did you mean: 

Program stuck when exiting from stop mode

shai2
Associate II
Posted on June 05, 2008 at 11:45

Program stuck when exiting from stop mode

2 REPLIES 2
shai2
Associate II
Posted on May 27, 2008 at 07:29

I worked with STR751, IAR compiler and have problem with some device to exit from stop mode (LP_PARAM15) .

I found that the device wake up from interrupt (EXTIT_ITLine15 (wake up) or EXTIT_ITLine4 (external interrupt line 4)), But it didn’t return to the program from the interrupt and it go to PrefetchAbortHandler in some devices or to SWIHandler in others.

It seems like the lr or the pc registers are damaged.

Do you have any suggestion what wrong?

How I handle with Prefetch Abort, SWI Interrupt, (is there an example).

Thanks in advance.

kaouther
Associate II
Posted on June 05, 2008 at 11:45

you can add a code in the PrefetchAbort handler to recover as generate a system reset or other code for debugging. You can refer to STR75x Low Power Application note

http://www.st.com/mcu/familiesdocs-86.html

which provides example of Stop mode configuration in case of miss configuration 😉