Skip to content

Commit 15ceaad

Browse files
committed
[BSP/stm32f427-robomaster-a] Correct RAM configuration information
1 parent 64945ba commit 15ceaad

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

bsp/stm32/stm32f427-robomaster-a/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RoboMaster开发板套件是一款面向机器人DIY的开源主控套件。开
2222

2323
该开发板常用 **板载资源** 如下:
2424

25-
- MCU:STM32f427IIH6,主频 180MHz,2048KB FLASH ,128KB RAM
25+
- MCU:STM32f427IIH6,主频 180MHz,2048KB FLASH ,256KB RAM(含64KB CCM RAM未使用)
2626
- 常用外设
2727
- LED:2个,D10(红色,PE11),D9(绿色,PE14)
2828
- 按键:1个,KEY(PB2)

bsp/stm32/stm32f427-robomaster-a/board/board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern "C" {
2525
#define STM32_FLASH_SIZE (2048 * 1024)
2626
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
2727

28-
#define STM32_SRAM1_SIZE (128)
28+
#define STM32_SRAM1_SIZE (192)
2929
#define STM32_SRAM1_START (0x20000000)
3030
#define STM32_SRAM1_END (STM32_SRAM1_START + STM32_SRAM1_SIZE * 1024)
3131

bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.icf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ define symbol __ICFEDIT_intvec_start__ = 0x08000000;
66
/*-Memory Regions-*/
77
define symbol __ICFEDIT_region_ROM_start__ = 0x08000000;
88
define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF;
9-
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;
10-
define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF;
9+
define symbol __ICFEDIT_region_RAM1_start__ = 0x20000000;
10+
define symbol __ICFEDIT_region_RAM1_end__ = 0x2002FFFF;
11+
define symbol __ICFEDIT_region_RAM2_start__ = 0x10000000;
12+
define symbol __ICFEDIT_region_RAM2_end__ = 0x1000FFFF;
1113

1214
/*-Sizes-*/
1315
define symbol __ICFEDIT_size_cstack__ = 0x0400;

bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
MEMORY
77
{
88
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 2048k /* 2048KB flash */
9-
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128KB sram */
9+
RAM1 (rw) : ORIGIN = 0x20000000, LENGTH = 192k /* 192K sram */
10+
RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */
1011
}
1112
ENTRY(Reset_Handler)
1213
_system_stack_size = 0x200;
@@ -88,7 +89,7 @@ SECTIONS
8889
. = ALIGN(4);
8990
/* This is used by the startup in order to initialize the .data secion */
9091
_edata = . ;
91-
} > RAM
92+
} > RAM1
9293

9394
.stack :
9495
{
@@ -97,7 +98,7 @@ SECTIONS
9798
. = . + _system_stack_size;
9899
. = ALIGN(4);
99100
_estack = .;
100-
} > RAM
101+
} > RAM1
101102

102103
__bss_start = .;
103104
.bss :
@@ -115,7 +116,7 @@ SECTIONS
115116
_ebss = . ;
116117

117118
*(.bss.init)
118-
} > RAM
119+
} > RAM1
119120
__bss_end = .;
120121

121122
_end = .;

bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.sct

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ LR_IROM1 0x08000000 0x00200000 { ; load region size_region
88
*(InRoot$$Sections)
99
.ANY (+RO)
1010
}
11-
RW_IRAM1 0x20000000 0x00020000 { ; RW data
11+
RW_IRAM1 0x20000000 0x00030000 { ; RW data
12+
.ANY (+RW +ZI)
13+
}
14+
RW_IRAM2 0x10000000 0x00010000 { ; RW data
1215
.ANY (+RW +ZI)
1316
}
1417
}
15-

0 commit comments

Comments
 (0)