Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > Embedded > AT91SAM7: C-sta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 12412 of 13381
Post > Topic >>

AT91SAM7: C-startup

by "Roman Mashak" <mrv@[EMAIL PROTECTED] > Jun 24, 2008 at 08:19 AM

Hello,

I'm trying to understand the mechanism of remapping on AT91SAM7 chips and 
it's concerned the ARM assembly language. Basically what I wish to
perceive 
is the way C-startup is implemented. As far as I understand, it strongly 
depends on a board involved and purpose of the firmware.

But there are some common parts of startup code as well, for example the 
vector table: some examples I explored use "B .." instructions, while
others 
do various variations of "LDR pc ...".  To my understanding, the first one

is doing PC-relative jump, and "LDR pc, ..." populate PC with an absolute 
address.

So when is is preferable to use the first method (via 'B' instructions)
and 
whe the second one with absolute addresses? Are there any rules or common 
practises for that?

Thanks.

Best regards, Roman Mashak
 




 1 Posts in Topic:
AT91SAM7: C-startup
"Roman Mashak"   2008-06-24 08:19:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 9:47:32 CST 2008.