Skip to content

Commit ad45681

Browse files
authored
Merge pull request #941 from board707/F407VE_board - move stack from CCRAM to SRAM
Fix "Generic STM32F407V series" variant: move stack from CCMRAM to SRAM
2 parents 245b97a + 5f5f75c commit ad45681

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

STM32F4/variants/generic_f407v/ld/common.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ EXTERN(start_c)
3838
/* main entry point */
3939
EXTERN(main)
4040

41-
/* Initial stack pointer value. Relocated to CCMRAM */
41+
/* Initial stack pointer value. */
4242
EXTERN(__msp_init)
43-
PROVIDE(__msp_init = ORIGIN(ccmram) + LENGTH(ccmram));
43+
PROVIDE(__msp_init = ORIGIN(ram) + LENGTH(ram));
4444

4545
/* Reset vector and chip reset entry point */
4646
EXTERN(__start__)
@@ -150,7 +150,7 @@ SECTIONS
150150
* I'm shoving these here naively; there's probably a cleaner way
151151
* to go about this. [mbolivar]
152152
*/
153-
_lm_heap_start = DEFINED(_lm_heap_start) ? _lm_heap_start : __ccmdata_end__;
153+
_lm_heap_start = DEFINED(_lm_heap_start) ? _lm_heap_start : __bss_end__;
154154
_lm_heap_end = DEFINED(_lm_heap_end) ? _lm_heap_end : __msp_init;
155155
} > REGION_RODATA
156156

0 commit comments

Comments
 (0)