Stack size problem solved for cortex-m3 CPU family. (STACK_SIZE variable in cortex...
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 4 May 2011 12:59:54 +0000 (12:59 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 4 May 2011 12:59:54 +0000 (12:59 +0000)
Signed-off-by: Andrea Scalise <andreascalo@gmail.com>
Signed-off-by: Matteo Silvestri <matteosilv@gmail.com>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4875 38d2e660-2303-0410-9eaa-f027e97ec537

14 files changed:
bertos/cpu/cortex-m3/scripts/cortex-m3_ram.ld
bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld
bertos/cpu/cortex-m3/scripts/lm3s1968_ram.ld
bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld
bertos/cpu/cortex-m3/scripts/lm3s8962_ram.ld
bertos/cpu/cortex-m3/scripts/lm3s8962_rom.ld
bertos/cpu/cortex-m3/scripts/sam3n4_ram.ld
bertos/cpu/cortex-m3/scripts/sam3n4_rom.ld
bertos/cpu/cortex-m3/scripts/sam3x8_rom.ld
bertos/cpu/cortex-m3/scripts/stm32f100rb_rom.ld
bertos/cpu/cortex-m3/scripts/stm32f101c4_ram.ld
bertos/cpu/cortex-m3/scripts/stm32f101c4_rom.ld
bertos/cpu/cortex-m3/scripts/stm32f103rb_rom.ld
bertos/cpu/cortex-m3/scripts/stm32f103re_rom.ld

index df75798849a5d267b55a3305e57533b5cb837cec..f045c1ef6227323786d78856a970c90d27035415 100644 (file)
 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
 OUTPUT_ARCH(arm)
 
 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
 OUTPUT_ARCH(arm)
 
-/*
- * Define stack size here
- */
-STACK_SIZE = 0x1000;
 
 /*
  * Allocate section memory
 
 /*
  * Allocate section memory
@@ -92,6 +88,7 @@ SECTIONS
        /*
         * Allocated stack at the end of bss section.
         * Data heap is allocate at end of stack.
        /*
         * Allocated stack at the end of bss section.
         * Data heap is allocate at end of stack.
+        * STACK_SIZE variable is defined in the CPU specific linker script file.
         */
        PROVIDE (__msp_start = .);
        . = ALIGN(8);
         */
        PROVIDE (__msp_start = .);
        . = ALIGN(8);
index bed63240712b9b336ed6ba9dbc1cb338c70fb1c6..94a181363000e522a58d6d4c3326c9e8cc747724 100644 (file)
 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
 OUTPUT_ARCH(arm)
 
 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
 OUTPUT_ARCH(arm)
 
-/*
- * Define stack size here
- */
-STACK_SIZE = 0x1000;
 
 /*
  * Allocate section memory
 
 /*
  * Allocate section memory
@@ -94,6 +90,7 @@ SECTIONS
        /*
         * Allocated stack at the end of bss section.
         * Data heap is allocate at end of stack.
        /*
         * Allocated stack at the end of bss section.
         * Data heap is allocate at end of stack.
+        * STACK_SIZE variable is defined in the CPU specific linker script file.
         */
        PROVIDE (__msp_start = .);
        . = ALIGN(8);
         */
        PROVIDE (__msp_start = .);
        . = ALIGN(8);
index 1afe56430a52b5df7cef02ff36b113295df49e2b..2585d53a69400a95d4166edb45acd300171f79a8 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_ram.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*
  * Define memory configuration for LM3S1968 board
  */
 /*
  * Define memory configuration for LM3S1968 board
  */
index 8a8cefe25f31c3cb38cd044688b339e6ae5e379c..eff380edcf9b20adc1ba9fbfec2ee54db00af506 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_rom.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*
  * Define memory configuration for LM3S1968 board
  */
 /*
  * Define memory configuration for LM3S1968 board
  */
index d404988248686317ec16613f6e3558cb286e3058..61e673d0ffc252a10f59ba38165c59bf40c609ec 100644 (file)
  * \author Andrea Righi <arighi@develer.com>
  */
 
  * \author Andrea Righi <arighi@develer.com>
  */
 
+
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_ram.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*
  * Define memory configuration for LM3S8962 board
  */
 /*
  * Define memory configuration for LM3S8962 board
  */
index 93ef1b1ade8f24250acb7daebdbac09b398ee86b..b79f5c01f43a4cc256484c4399bbff829b533bb0 100644 (file)
  * \author Andrea Righi <arighi@develer.com>
  */
 
  * \author Andrea Righi <arighi@develer.com>
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_rom.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*/
  * Define memory configuration for LM3S8962 board
  */
 /*/
  * Define memory configuration for LM3S8962 board
  */
index ad3bf375e698922c959e0613fb85ebbaa47af0bc..9dee00df93be45ef4307cbfd4e6546d398a1c5dd 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_ram.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*
  * Memory configuration for SAM3N4.
  */
 /*
  * Memory configuration for SAM3N4.
  */
index 170ff03b3826a191666205e838eb665b64dd2954..5d6efa496ddabe8e72af7975434243ea4689696e 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_rom.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*
  * Memory configuration for SAM3N4.
  */
 /*
  * Memory configuration for SAM3N4.
  */
index 176761376a43eb714ce5cd353ac9fb2677d35d93..bdf929e802f3c95acfef8f768f7d51284ea55972 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_rom.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*
  * Memory configuration for SAM3X8.
  */
 /*
  * Memory configuration for SAM3X8.
  */
index 06a894a6667246adf015e1de09e0db30841fd2b1..aebe32985e5978d27ad04f76b02ab10d5d45af45 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_rom.ld file
+ */
+STACK_SIZE = 0x400;
 
 /*
  * Define memory configuration for STM32F100RB
 
 /*
  * Define memory configuration for STM32F100RB
index 0637501c2e39e85ab131d87d8924255c7e531fac..f78c529dbea458b1fd64ba973c08caa58477128f 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_ram.ld file
+ */
+STACK_SIZE = 0x200;
+
 /*
  * Define memory configuration for STM32F101C4
  */
 /*
  * Define memory configuration for STM32F101C4
  */
index f2ea131c93b986a99ff52ec25eb9b171f2e38361..19dc64230fbe1e5e4506afb31fd55a52eb557267 100644 (file)
  *
  */
 
  *
  */
 
+
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_rom.ld file
+ */
+STACK_SIZE = 0x200;
+
 /*
  * Define memory configuration for STM32F101C4
  */
 /*
  * Define memory configuration for STM32F101C4
  */
index 438bb615080a95dd954536d79d004f88ca0c507a..4d0884b983463623540df83334210ac05108b884 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_rom.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*
  * Define memory configuration for STM32F103R8
  */
 /*
  * Define memory configuration for STM32F103R8
  */
index 24b5307ba14ad7e81f7d95901885bd3bc69e9c43..c7c4def88b6b8eac745752ed3c4bce25f233201d 100644 (file)
  *
  */
 
  *
  */
 
+/*
+ * Define stack size here
+ * Variable used in the cortex-m3_rom.ld file
+ */
+STACK_SIZE = 0x1000;
+
 /*
  * Define memory configuration for STM32F103RE
  */
 /*
  * Define memory configuration for STM32F103RE
  */