浏览代码

[BSP] correct stm32l412-st-nucleo capacity info

luhuadong 5 年之前
父节点
当前提交
c0ed7f6e89

+ 2 - 2
bsp/stm32/stm32l412-st-nucleo/board/Kconfig

@@ -8,7 +8,7 @@ config SOC_STM32L412RB
     default y
 
 menu "Onboard Peripheral Drivers"
-	config BSP_USING_STLINK_TO_USART
+    config BSP_USING_STLINK_TO_USART
         bool "Enable STLINK TO USART (uart2)"
         select BSP_USING_UART
         select BSP_USING_UART2
@@ -22,7 +22,7 @@ menu "On-chip Peripheral Drivers"
         select RT_USING_PIN
         default y
 
-	menuconfig BSP_USING_UART
+    menuconfig BSP_USING_UART
         bool "Enable UART"
         default y
         select RT_USING_SERIAL

+ 6 - 6
bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds

@@ -5,9 +5,9 @@
 /* Program Entry, set to mark it as "used" and avoid gc */
 MEMORY
 {
-    ROM  (rx) : ORIGIN = 0x08000000, LENGTH = 256k /* 256KB flash */
-    RAM1 (rw) : ORIGIN = 0x20000000, LENGTH =  48k /* 48K sram */
-    RAM2 (rw) : ORIGIN = 0x10000000, LENGTH =  16k /* 16K sram */
+    ROM  (rx) : ORIGIN = 0x08000000, LENGTH = 128k /* 128KB flash */
+    RAM1 (rw) : ORIGIN = 0x20000000, LENGTH =  32k /* 32K sram */
+    RAM2 (rw) : ORIGIN = 0x10000000, LENGTH =   8k /* 8K sram */
 }
 ENTRY(Reset_Handler)
 _system_stack_size = 0x200;
@@ -90,7 +90,7 @@ SECTIONS
         . = ALIGN(4);
         /* This is used by the startup in order to initialize the .data secion */
         _edata = . ;
-    } >RAM2
+    } >RAM1
 
     .stack : 
     {
@@ -99,7 +99,7 @@ SECTIONS
         . = . + _system_stack_size;
         . = ALIGN(4);
         _estack = .;
-    } >RAM2
+    } >RAM1
 
     __bss_start = .;
     .bss :
@@ -117,7 +117,7 @@ SECTIONS
         _ebss = . ;
         
         *(.bss.init)
-    } > RAM2
+    } > RAM1
     __bss_end = .;
 
     _end = .;