This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Different section placement for kernel and application
- From: "Christophe Coutand" <ccoutand at stmi dot com>
- To: Martin RÃsch <martin dot roesch at neratec dot com>, "discuss, eCos" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 27 Jan 2011 09:55:34 -0800
- Subject: RE: [ECOS] Different section placement for kernel and application
- References: <2815371.163.1296147619546.JavaMail.neratec@martin-lucid32> <917898.171.1296149053545.JavaMail.neratec@martin-lucid32>
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-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@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