File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/TOOLCHAIN_ARM_STD Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 43
43
44
44
#define Stack_Size MBED_BOOT_STACK_SIZE
45
45
46
+ #define MBED_RAM_START 0x20000000
47
+ ; 320KB SRAM (0x50000)
48
+ #define MBED_RAM_SIZE 0x50000
49
+ #define MBED_VECTTABLE_RAM_START (MBED_RAM_START)
50
+ ; Total: 118 vectors = 472 bytes (0x1D8) to be reserved in RAM
51
+ #define MBED_VECTTABLE_RAM_SIZE 0x1D8
52
+ #define MBED_CRASH_REPORT_RAM_START (MBED_VECTTABLE_RAM_START + MBED_VECTTABLE_RAM_SIZE)
53
+ #define MBED_CRASH_REPORT_RAM_SIZE 0x100
54
+ #define MBED_RAM0_START (MBED_CRASH_REPORT_RAM_START + MBED_CRASH_REPORT_RAM_SIZE)
55
+ #define MBED_RAM0_SIZE (MBED_RAM_SIZE - MBED_VECTTABLE_RAM_SIZE - MBED_CRASH_REPORT_RAM_SIZE)
56
+
46
57
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
47
58
48
59
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
@@ -51,13 +62,14 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
51
62
.ANY (+RO)
52
63
}
53
64
54
- ; 320KB SRAM (0x50000)
55
- ; Total: 118 vectors = 472 bytes (0x1D8) to be reserved in RAM
56
- RW_IRAM1 (0x20000000+0x1D8) (0x50000-0x1D8-Stack_Size) { ; RW data
65
+ RW_m_crash_data MBED_CRASH_REPORT_RAM_START EMPTY MBED_CRASH_REPORT_RAM_SIZE { ; RW data
66
+ }
67
+
68
+ RW_IRAM1 (MBED_RAM0_START) (MBED_RAM0_SIZE-Stack_Size) { ; RW data
57
69
.ANY (+RW +ZI)
58
70
}
59
71
60
- ARM_LIB_STACK (0x20000000+0x50000 ) EMPTY -Stack_Size { ; stack
72
+ ARM_LIB_STACK (MBED_RAM0_START+MBED_RAM0_SIZE ) EMPTY -Stack_Size { ; stack
61
73
}
62
74
}
63
75
You can’t perform that action at this time.
0 commit comments