File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H743xI/device Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 24
24
;*
25
25
;******************************************************************************
26
26
27
- __initial_sp EQU 0x20020000 ; Top of RAM
27
+ IMPORT |Image $$ ARM_LIB_STACK $$ ZI $$ Limit|
28
28
29
29
PRESERVE8
30
30
THUMB
@@ -36,7 +36,7 @@ __initial_sp EQU 0x20020000 ; Top of RAM
36
36
EXPORT __Vectors_End
37
37
EXPORT __Vectors_Size
38
38
39
- __Vectors DCD __initial_sp ; Top of Stack
39
+ __Vectors DCD |Image $$ ARM_LIB_STACK $$ ZI $$ Limit| ; Top of Stack
40
40
DCD Reset_Handler ; Reset Handler
41
41
DCD NMI_Handler ; NMI Handler
42
42
DCD HardFault_Handler ; Hard Fault Handler
Original file line number Diff line number Diff line change 44
44
45
45
#define MBED_RAM_START 0x24000000
46
46
#define MBED_RAM_SIZE 0x80000
47
- #define MBED_VECTTABLE_RAM_START (MBED_RAM_START)
47
+ #define MBED_VECTTABLE_RAM_START 0x20000000
48
48
#define MBED_VECTTABLE_RAM_SIZE 0x298
49
49
#define MBED_CRASH_REPORT_RAM_START (MBED_VECTTABLE_RAM_START + MBED_VECTTABLE_RAM_SIZE)
50
50
#define MBED_CRASH_REPORT_RAM_SIZE 0x100
51
- #define MBED_RAM0_START (MBED_CRASH_REPORT_RAM_START + MBED_CRASH_REPORT_RAM_SIZE )
52
- #define MBED_RAM0_SIZE (MBED_RAM_SIZE - MBED_VECTTABLE_RAM_SIZE - MBED_CRASH_REPORT_RAM_SIZE )
51
+ #define MBED_RAM0_START (MBED_RAM_START )
52
+ #define MBED_RAM0_SIZE (MBED_RAM_SIZE)
53
53
54
54
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
55
55
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ M_CRASH_DATA_RAM_SIZE = 0x100;
19
19
MEMORY
20
20
{
21
21
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
22
- DTCMRAM (rwx) : ORIGIN = 0x20000000 , LENGTH = 128K
23
- RAM (xrw) : ORIGIN = 0x24000298 , LENGTH = 512K - 0x298 /* end = 0x24080000 */
22
+ DTCMRAM (rwx) : ORIGIN = 0x20000298 , LENGTH = 128K-0x298
23
+ RAM (xrw) : ORIGIN = 0x24000000 , LENGTH = 512K
24
24
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K
25
25
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64K
26
26
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
@@ -108,7 +108,7 @@ SECTIONS
108
108
. += M_CRASH_DATA_RAM_SIZE;
109
109
. = ALIGN (8);
110
110
__CRASH_DATA_RAM_END__ = .; /* Define a global symbol at data end */
111
- } > RAM
111
+ } > DTCMRAM
112
112
113
113
.data : AT (__etext)
114
114
{
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
10
10
// 512KB RAM (0x80000)
11
11
// Vector table dynamic copy: 166 vectors = 664 bytes (0x298) reserved
12
12
// Crash data area: 256 bytes (0x100) reserved
13
- define symbol __NVIC_start__ = 0x24000000 ;
14
- define symbol __NVIC_end__ = 0x24000297 ;
15
- define symbol __region_CRASH_DATA_RAM_start__ = 0x24000298 ; // Aligned on 8 bytes
16
- define symbol __region_CRASH_DATA_RAM_end__ = 0x24000397 ;
17
- define symbol __region_RAM_start__ = 0x24000398 ; // Aligned on 8 bytes
13
+ define symbol __NVIC_start__ = 0x20000000 ;
14
+ define symbol __NVIC_end__ = 0x20000297 ;
15
+ define symbol __region_CRASH_DATA_RAM_start__ = 0x20000298 ; // Aligned on 8 bytes
16
+ define symbol __region_CRASH_DATA_RAM_end__ = 0x20000397 ;
17
+ define symbol __region_RAM_start__ = 0x24000000 ; // Aligned on 8 bytes
18
18
define symbol __region_RAM_end__ = 0x24000000 + 0x80000 - 1;
19
19
20
20
// Memory regions
You can’t perform that action at this time.
0 commit comments