Skip to main content
Visitor II
June 5, 2008
Question

Program stuck when exiting from stop mode

  • June 5, 2008
  • 2 replies
  • 881 views
Posted on June 05, 2008 at 11:45

Program stuck when exiting from stop mode

    This topic has been closed for replies.

    2 replies

    shai2Author
    Visitor II
    May 27, 2008
    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.

    Visitor II
    June 5, 2008
    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 ;)