Tracing Undefined_Handler origen.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-10-13 9:25 AM
Posted on October 13, 2009 at 18:25
Tracing Undefined_Handler origen.
Labels:
- Labels:
-
Legacy Products
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 12:58 AM
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. MarkOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 12:58 AM
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.