If you only have a couple of functions to place in RAM, you can use the section 
attribute:

void my_function( void ) __attribute__ ((section (".2ram.my_function")));

Christophe

-----Original Message-----
From: ecos-discuss-ow...@ecos.sourceware.org 
[mailto:ecos-discuss-ow...@ecos.sourceware.org] On Behalf Of Martin Rösch
Sent: 27. januar 2011 18:24
To: discuss, eCos
Subject: [ECOS] Different section placement for kernel and application

Hi,

I'm trying to figure out how to run the eCos kernel from ROM and run the 
application (the main() function) from RAM on the STM32 Eval Board.
Is it possible to place the text, data and rodata sections from the target 
library to a different memory address (i.e. flash)
than the sections of the application in the image?

Thank you for your help,

Martin


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to