EmbDev.net

Forum: ARM programming with GCC/GNU tools Load program in flash with offset


Author: Bram Dobbelaar (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi Forum,

I am using  Ride GCC and the target is a STR730FV1, with 128K flash in 6
sectors. I want to use the first sector to store a table and start the
program from the next sector. Can i change the the start address in the
linker setting

Regards, Bram

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
Bram Dobbelaar wrote:
> Hi Forum,
>
> I am using  Ride GCC and the target is a STR730FV1, with 128K flash in 6
> sectors. I want to use the first sector to store a table and start the
> program from the next sector. Can i change the the start address in the
> linker setting

You can change the start of a memory-section in the linker-script. I
don't know how the RIDE IDE handles this (maybe a linker-script is
generated in the background). But it might not work to just "move" the
memory-origin since at least the reset-vector should be at address 0 in
flash. So it might be easier to use the last sectors in flash for your
table. Or you could add an extra memory section for the vectors which is
placed at page 0 and add a section for the table to be placed at pages
1-x and place the code at page x+1.

Reply

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.