Forum: µC & Digital Electronics Executing code from offset addess in SRAM

Author: Vani Aithal (blquest)
Posted on:

Rate this post
0 useful
not useful
Dear All,

We are using AT91SAM9263.We are trying to run our application in SRAM 
from an offset address in RAM.

1. At the base address of the SRAM, bootloader is executing.
2. Bootloader copies the application to the RAM area to an address say 
(Base Address + n)th location.
3. Then bootloader jumps to (Base Address + n)th location and executes 
the application.

In this process. 3rd step is not working.Has any one did such 
implementation on AT91SAM9263?
on any other controller such implementation has been done.

If so please please share the information.

Thanks a lot.

Author: Reinhard Kern (Guest)
Posted on:

Rate this post
0 useful
not useful

the application must be compiled at the resulting address, or in other 
words, there can be no offset - if you try to run it at address xxxx, 
then you must compile/assemble/link it with org xxxx.

regards Reinhard


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.