Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to restore Program counter from Abort Handler

Status
Not open for further replies.

shiva

Junior Member level 3
Joined
Oct 18, 2005
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,537
Hi,

I am using ARM7TDMI in my application.In my application, I am accessing illegal memory address (Ox7FFF FFF0) that causes to Data Abort. while entering in to the DataAbort Exception, the Link Register (LR) gets updated based on the Program Counter. i.e LR = 0x7FFF FFF8. and then it enters into the DataAbort Handler. I Have Serviced the DataAbort Exception and try to return. But the Link Register which is used for returning has already modified to 0x7FFF FFF8. so my application gets hang in the DataAbort Exception. what I can do in this situation. Hoping the reply from you.

Thanks and Regards
 

Hi

You can check the following book

"lpc-ARM-book_srn.pdf" from hitex

on page 16 you can find

"for prog Abort the return instruction is

SUBS R15,R14,#4

for data Abort the return instruction is

SUBS R15,R14,#8[/b]"

Salam
Hossam Alzomor
www.i-g.org

Added after 1 minutes:

Hi

You can check the following book

"lpc-ARM-book_srn.pdf" from hitex

on page 16 you can find

"
for prog Abort the return instruction is
SUBS R15,R14,#4

for data Abort the return instruction is
SUBS R15,R14,#8
"

Salam
Hossam Alzomor
www.i-g.org
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top