This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: STM32 - Allow initialisation of SRAM area from ROM.
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Chris Holgate <chris at zynaptic dot com>
- Cc: ecos-patches at sourceware dot org
- Date: 09 Feb 2009 15:59:00 +0000
- Subject: Re: STM32 - Allow initialisation of SRAM area from ROM.
- References: <498D80F5.3030606@zynaptic.com>
Chris Holgate <chris@zynaptic.com> writes:
> This patch adds support for SRAM initialisation from ROM in STM32 ROM
> based builds. It allows declarations such as the following to correctly
> allocate and initialise variables in the SRAM area.
>
> static cyg_uint16 dma_tx_null __attribute__((section (".sram"))) = 0xFFFF;
>
> Please could someone who is a linker script expert check my changes to
> src/cortexm.ld, since linker scripts are not my forte!
Thanks, now checked in.
--
Nick Garnett eCos Kernel Architect
eCosCentric Limited http://www.eCosCentric.com The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No: 4422071
Besuchen Sie uns vom 3.-5.03.09 auf der Embedded World 2009, Stand 11-300
Visit us at Embedded World 2009, NÃrnberg, Germany, 3-5 Mar, Stand 11-300