瀏覽代碼

fix(air links): 对应厂家手册将RAM容量改为96kb

Signed-off-by: 蒙蒙plus <chengmeng_2@outlook.com>
蒙蒙plus 1 年之前
父節點
當前提交
dfc8994ea2

+ 1 - 1
bsp/airm2m/air32f103/board/linker_scripts/link.icf

@@ -7,7 +7,7 @@ define symbol __ICFEDIT_intvec_start__ = 0x08000000;
 define symbol __ICFEDIT_region_ROM_start__ = 0x08000000;
 define symbol __ICFEDIT_region_ROM_end__   = 0x0801FFFF;
 define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
-define symbol __ICFEDIT_region_RAM_end__   = 0x20004FFF;
+define symbol __ICFEDIT_region_RAM_end__   = 0x20017FFF;
 /*-Sizes-*/
 define symbol __ICFEDIT_size_cstack__ = 0x0400;
 define symbol __ICFEDIT_size_heap__   = 0x000;

+ 2 - 2
bsp/airm2m/air32f103/board/linker_scripts/link.lds

@@ -1,12 +1,12 @@
 /*
- * linker script for STM32F10x with GNU ld
+ * linker script for air32F10x with GNU ld
  */
 
 /* Program Entry, set to mark it as "used" and avoid gc */
 MEMORY
 {
     ROM (rx) : ORIGIN = 0x08000000, LENGTH = 128k /* 128KB flash */
-    RAM (rw) : ORIGIN = 0x20000000, LENGTH =  20k /* 20K sram */
+    RAM (rw) : ORIGIN = 0x20000000, LENGTH =  96k /* 96K sram */
 }
 ENTRY(Reset_Handler)
 _system_stack_size = 0x400;

+ 1 - 1
bsp/airm2m/air32f103/board/linker_scripts/link.sct

@@ -8,7 +8,7 @@ LR_IROM1 0x08000000 0x00020000  {    ; load region size_region
    *(InRoot$$Sections)
    .ANY (+RO)
   }
-  RW_IRAM1 0x20000000 0x00008000  {  ; RW data
+  RW_IRAM1 0x20000000 0x00018000  {  ; RW data
    .ANY (+RW +ZI)
   }
 }