Skip to main content
Visitor II
October 13, 2009
Question

Tracing Undefined_Handler origen.

  • October 13, 2009
  • 2 replies
  • 687 views
Posted on October 13, 2009 at 18:25

Tracing Undefined_Handler origen.

    This topic has been closed for replies.

    2 replies

    May 17, 2011
    Posted on May 17, 2011 at 09:58

    Hi. Is it possible to locate in the source code what sentence causes a jump to the Undefined_Handler ? I'm using IAR's workbench.

    Thank you.

    Mark

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:58

    Hi Mark, create a handler for the Undefined, eg. B Undefined_Handler to stop there. Then place a breakpoint there and when the code stops, read the LR, it should point to PC+4 or PC+8. Then look for this address in the disassembly window of IAR.

    Pls read the ARM Architecture Reference Manual or ARM966 Technical Reference Manual on www.arm.com, section about exceptions.