[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [4828] updated for stm32 high density support - stil
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [4828] updated for stm32 high density support - still a hickup on static initialisation |
Date: |
Wed, 21 Apr 2010 08:31:06 +0000 |
Revision: 4828
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4828
Author: poine
Date: 2010-04-21 08:31:05 +0000 (Wed, 21 Apr 2010)
Log Message:
-----------
updated for stm32 high density support - still a hickup on static initialisation
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/stm32/stm32f10x_flash_hd.ld
Modified: paparazzi3/trunk/sw/airborne/stm32/stm32f10x_flash_hd.ld
===================================================================
--- paparazzi3/trunk/sw/airborne/stm32/stm32f10x_flash_hd.ld 2010-04-21
08:02:18 UTC (rev 4827)
+++ paparazzi3/trunk/sw/airborne/stm32/stm32f10x_flash_hd.ld 2010-04-21
08:31:05 UTC (rev 4828)
@@ -21,8 +21,19 @@
* Boston, MA 02111-1307, USA.
*/
+/* Memory Spaces Definitions */
+MEMORY
+{
+ RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
+ FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
+ FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0
+}
+
+/* User mode stack top */
+_estack = 0x20010000;
+
/* Stack size and address definitions */
-__Stack_Size = 1024 ;
+__Stack_Size = 0x1000 ;
PROVIDE ( _Stack_Size = __Stack_Size ) ;
@@ -31,18 +42,11 @@
PROVIDE ( _Stack_Init = __Stack_Init ) ;
/* Enforce a linker error if there is not enough space left in ram for the
stack */
-_Minimum_Stack_Size = 0x100 ;
+_Minimum_Stack_Size = 0x800 ;
-/* Memory Spaces Definitions */
-MEMORY
-{
- RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
- FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
-}
+/* Check valid alignment for VTOR */
+ASSERT(ORIGIN(FLASH) == ALIGN(ORIGIN(FLASH), 0x80), "Start of memory region
flash not aligned for startup vector table");
-/* User mode stack top */
-_estack = 0x20000800;
-
/* Sections Definitions */
SECTIONS
@@ -82,6 +86,8 @@
_sidata = _etext;
} >FLASH
+
+
/* This is the initialized data section
The program executes knowing that the data is in the RAM
but the loader puts the initial values in the FLASH (inidata).
@@ -133,16 +139,26 @@
_eusrstack = . ;
} >RAM
+ .b1text :
+ {
+ *(.b1text) /* remaining code */
+ *(.b1rodata) /* read-only data (constants) */
+ *(.b1rodata*)
+ } >FLASHB1
+ __exidx_start = .;
+ .ARM.exidx : { *(.ARM.exidx* .gnu.linkonce.armexidx.*) }
+ __exidx_end = .;
+
/* after that it's only debugging information. */
/* remove the debugging information from the standard libraries */
- /*DISCARD :
+ /DISCARD/ :
{
libc.a ( * )
libm.a ( * )
libgcc.a ( * )
- }*/
+ }
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [4828] updated for stm32 high density support - still a hickup on static initialisation,
antoine drouin <=