EmbDev.net

Forum: ARM programming with GCC/GNU tools GCC:Link functions to run from RAM


Author: Stelios Markatis (styl)
Posted on:

Rate this post
0 useful
not useful
Happy New Year.

I am using the open source tools Eclipse + FreeRTOS + Codesoursery + 
OpenOCD for STR912 CPU and I want to develop a bootloader for this CPU. 
I spent some time reading the manuals of the compiler but I did not 
manage to find answers to the following questions:

1. How can I link a function to an address of the flash that I want. The 
function will run at the loaded address. What are the attributes 
attached to the function and how should I modify the linker script to 
achieve this?

2. I want the code of a function to be stored in flash but to be linked 
to run in a RAM location where it will be moved automatically or not. 
What are the attributes attached to the function and how should I modify 
the linker script to achieve my purpose?

3. How can I redirect the interrupt vector of STR912 in a RAM location.

Can any one help me with these questions?

Stelios

Author: Dima Suslov (dimasusl)
Posted on:

Rate this post
0 useful
not useful
Did you solve your problem?

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.