ARM Technical Support Knowledge Articles

HOW TO ANALYZE A DATA ABORT EXCEPTION

Applies to: ARM Development Tools

Answer


Information in this article applies to:


QUESTION

My ARM application does not work. When I run it in the simulator or with my JTAG debugger (ULINK), I see that the program counter (R15) jumps to the label DAbt_Handler?A. What does that mean? How can I find the location where my application crashes?

ANSWER

This is the default Data Abort exception handler. Your application is trying to read or write an illegal memory location. You can calculate the illegal memory location using by subtracting 8 from the value in R14 (link register). Subtracting 8 adjusts for the instruction queue giving you the address of the instruction that caused this exception. For example:

MORE INFORMATION

SEE ALSO

Article last edited on: 2011-12-13 14:12:51

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential