Skip to content

Commit ac30a70

Browse files
committed
STM32H7 : use RAM instead of DTCMRAM (ARM toolchain)
1 parent d241eef commit ac30a70

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H743xI/device/TOOLCHAIN_ARM_STD/startup_stm32h743xx.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
;*
2525
;******************************************************************************
2626

27-
__initial_sp EQU 0x20020000 ; Top of RAM
27+
IMPORT |Image$$ARM_LIB_STACK$$ZI$$Limit|
2828

2929
PRESERVE8
3030
THUMB
@@ -36,7 +36,7 @@ __initial_sp EQU 0x20020000 ; Top of RAM
3636
EXPORT __Vectors_End
3737
EXPORT __Vectors_Size
3838

39-
__Vectors DCD __initial_sp ; Top of Stack
39+
__Vectors DCD |Image$$ARM_LIB_STACK$$ZI$$Limit| ; Top of Stack
4040
DCD Reset_Handler ; Reset Handler
4141
DCD NMI_Handler ; NMI Handler
4242
DCD HardFault_Handler ; Hard Fault Handler

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H743xI/device/TOOLCHAIN_ARM_STD/stm32h743xI.sct

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444

4545
#define MBED_RAM_START 0x24000000
4646
#define MBED_RAM_SIZE 0x80000
47-
#define MBED_VECTTABLE_RAM_START (MBED_RAM_START)
47+
#define MBED_VECTTABLE_RAM_START 0x20000000
4848
#define MBED_VECTTABLE_RAM_SIZE 0x298
4949
#define MBED_CRASH_REPORT_RAM_START (MBED_VECTTABLE_RAM_START + MBED_VECTTABLE_RAM_SIZE)
5050
#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)
5353

5454
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
5555

0 commit comments

Comments
 (0)