4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-21 02:27:10 +08:00

Merge pull request #3283 from a1012112796/writing/correct_ram_config

[BSP/stm32f427-robomaster-a] Correct RAM configuration information
This commit is contained in:
Bernard Xiong 2019-12-21 07:35:35 +08:00 committed by GitHub
commit df933cf8c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 10 deletions

View File

@ -22,7 +22,7 @@ RoboMaster开发板套件是一款面向机器人DIY的开源主控套件。开
该开发板常用 **板载资源** 如下: 该开发板常用 **板载资源** 如下:
- MCUSTM32f427IIH6主频 180MHz2048KB FLASH 128KB RAM - MCUSTM32f427IIH6主频 180MHz2048KB FLASH 256KB RAM(含64KB CCM RAM未使用)
- 常用外设 - 常用外设
- LED2个D10红色PE11D9绿色PE14 - LED2个D10红色PE11D9绿色PE14
- 按键1个KEYPB2 - 按键1个KEYPB2

View File

@ -25,7 +25,7 @@ extern "C" {
#define STM32_FLASH_SIZE (2048 * 1024) #define STM32_FLASH_SIZE (2048 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE)) #define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_SRAM1_SIZE (128) #define STM32_SRAM1_SIZE (192)
#define STM32_SRAM1_START (0x20000000) #define STM32_SRAM1_START (0x20000000)
#define STM32_SRAM1_END (STM32_SRAM1_START + STM32_SRAM1_SIZE * 1024) #define STM32_SRAM1_END (STM32_SRAM1_START + STM32_SRAM1_SIZE * 1024)

View File

@ -6,8 +6,10 @@ define symbol __ICFEDIT_intvec_start__ = 0x08000000;
/*-Memory Regions-*/ /*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_start__ = 0x08000000;
define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; define symbol __ICFEDIT_region_RAM1_start__ = 0x20000000;
define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF; define symbol __ICFEDIT_region_RAM1_end__ = 0x2002FFFF;
define symbol __ICFEDIT_region_RAM2_start__ = 0x10000000;
define symbol __ICFEDIT_region_RAM2_end__ = 0x1000FFFF;
/*-Sizes-*/ /*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x0400; define symbol __ICFEDIT_size_cstack__ = 0x0400;

View File

@ -6,7 +6,8 @@
MEMORY MEMORY
{ {
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 2048k /* 2048KB flash */ ROM (rx) : ORIGIN = 0x08000000, LENGTH = 2048k /* 2048KB flash */
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128KB sram */ RAM1 (rw) : ORIGIN = 0x20000000, LENGTH = 192k /* 192K sram */
RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */
} }
ENTRY(Reset_Handler) ENTRY(Reset_Handler)
_system_stack_size = 0x200; _system_stack_size = 0x200;
@ -88,7 +89,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
/* This is used by the startup in order to initialize the .data secion */ /* This is used by the startup in order to initialize the .data secion */
_edata = . ; _edata = . ;
} > RAM } > RAM1
.stack : .stack :
{ {
@ -97,7 +98,7 @@ SECTIONS
. = . + _system_stack_size; . = . + _system_stack_size;
. = ALIGN(4); . = ALIGN(4);
_estack = .; _estack = .;
} > RAM } > RAM1
__bss_start = .; __bss_start = .;
.bss : .bss :
@ -115,7 +116,7 @@ SECTIONS
_ebss = . ; _ebss = . ;
*(.bss.init) *(.bss.init)
} > RAM } > RAM1
__bss_end = .; __bss_end = .;
_end = .; _end = .;

View File

@ -8,8 +8,10 @@ LR_IROM1 0x08000000 0x00200000 { ; load region size_region
*(InRoot$$Sections) *(InRoot$$Sections)
.ANY (+RO) .ANY (+RO)
} }
RW_IRAM1 0x20000000 0x00020000 { ; RW data RW_IRAM1 0x20000000 0x00030000 { ; RW data
.ANY (+RW +ZI)
}
RW_IRAM2 0x10000000 0x00010000 { ; RW data
.ANY (+RW +ZI) .ANY (+RW +ZI)
} }
} }