EmbDev.net

Forum: ARM programming with GCC/GNU tools AT91SAM7X PABT/DABT Handler


von Andy K. (andykunz)


Rate this post
useful
not useful
I am in the process of writing a handler for PABT and DABT handling.
Most of the work is already in C (I'll post it here when done).  I am
seeing data aborts and would like to know where things are going wrong.
Processor aborts occur sometimes too, though much less frequently.

I haven't found a reference for a couple items, and was hoping somebody
here might know the answers or at least where to find them.

I need to know
a) What are in each of the various ARM registers when DABT/PABT is
invoked?
b) How can I copy these registers into specific RAM addresses?

Thanks in advance.

Andy

von Jonathan D. (dumarjo)


Rate this post
useful
not useful
> I need to know
> a) What are in each of the various ARM registers when DABT/PABT is
> invoked?

the most important one is the link register. It tell you from where is
your probrlem. (adress in flash) for the rest i don't know very much.

> b) How can I copy these registers into specific RAM addresses?

if you know the base adress of the register, i think you can juste have
a pointer on it and copy it ? but if you don't want t o use stack (to
move SP), you can put the pointer "register" to not use ram. But i'm not
sure of anything here, i just speculate.

Jonathan

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.