Forum: ARM programming with GCC/GNU tools bootloader: flash offset

Author: Roman Mashak (romez777)
Posted on:

Rate this post
0 useful
not useful

I'm working on a bootloader for at91sam7s256 and trying to understand
how to calculate the offset in the flash, where the image, loaded by
bootlolader, should reside. Does it need to be aligned by page size?

For example, the bootloader image size is 5664bytes, flash base address
is 0x00100000 and I put the image of the bootloader at the beginning of
flash, followed by the application, transferred by bootloader. In this
case, does it mean, that application's address is defined as:

0x00100000 + 0x1620 (5664 decimal)




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.