修改RAM信息相关内容

This commit is contained in:
jhb
2019-04-09 21:30:37 +08:00
parent e86386c948
commit 4217aa99d5
5 changed files with 914 additions and 183 deletions
+4 -4
View File
@@ -91,7 +91,7 @@ msh >
3. 输入`pkgs --update`命令更新软件包。
4. 输入`scons --target=mdk4/mdk5/iar` 命令重新生成工程。
4. 输入`scons --target=mdk5/iar` 命令重新生成工程。
本章节更多详细的介绍请参考 [STM32 系列 BSP 外设驱动使用教程](../docs/STM32系列BSP外设驱动使用教程.md)。
@@ -102,9 +102,9 @@ msh >
- RAM 分为三部分
```
RAM1 (rw) : ORIGIN = 0x20000000, LENGTH = 192k /* 192K sram */
RAM2 (rw) : ORIGIN = 0x20040000, LENGTH = 384k /* 384K sram */
RAM3 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */
RAM1 (rw) : ORIGIN = 0x20000000, LENGTH = 192k /* 192K sram 用于程序定义全局变量 静态变量存放*/
RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram 用于程序定义全局变量 静态变量存放 */
RAM3 (rw) : ORIGIN = 0x20040000, LENGTH = 384k /* 384K sram 用于heap*/
```
+5 -5
View File
@@ -25,12 +25,12 @@ extern "C" {
#define STM32_FLASH_SIZE (2048 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
#define STM32_SRAM1_SIZE (384)
#define STM32_SRAM1_START (0x20040000)
#define STM32_SRAM1_END (STM32_SRAM1_START + STM32_SRAM1_SIZE * 1024)
#define STM32_SRAM3_SIZE (384)
#define STM32_SRAM3_START (0x20040000)
#define STM32_SRAM3_END (STM32_SRAM3_START + STM32_SRAM3_SIZE * 1024)
#define HEAP_BEGIN STM32_SRAM1_START
#define HEAP_END STM32_SRAM1_END
#define HEAP_BEGIN STM32_SRAM3_START
#define HEAP_END STM32_SRAM3_END
void SystemClock_Config(void);
@@ -2,14 +2,18 @@
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x08000000 0x00200000 { ; load region size_region
ER_IROM1 0x08000000 0x00200000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM2 0x20000000 0x00030000 { ; RW data
.ANY (+RW +ZI)
}
LR_IROM1 0x08000000 0x00200000 { ; load region size_region
ER_IROM1 0x08000000 0x00200000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20000000 0x00040000 { ; RW data
.ANY (+RW +ZI)
}
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff