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 4343
4444#define Stack_Size MBED_BOOT_STACK_SIZE
4545
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+
4657LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
4758
4859 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
5162 .ANY (+RO)
5263 }
5364
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
5769 .ANY (+RW +ZI)
5870 }
5971
60- ARM_LIB_STACK (0x20000000+0x50000 ) EMPTY -Stack_Size { ; stack
72+ ARM_LIB_STACK (MBED_RAM0_START+MBED_RAM0_SIZE ) EMPTY -Stack_Size { ; stack
6173 }
6274}
6375
You can’t perform that action at this time.
0 commit comments