We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Greetings,
I've recently encountered some problems with setting up initial stack pointer correctly.
Im working on STM32F746IG with 320 kB of embedden RAM memory.
According to memory map, it has 64 kB DTCM from 0x2000 0000 to 0x2000 FFFF and 240 kB SRAM1 form 0x2001 0000 respectively.
In startup.s file im defining Stack_Size to 0x400
Stack_Size EQU 0x0000400
and Heap_Size to 0 (only for debugging purposes)
Heap_Size EQU 0x00000000
In this setup, shouldn't the stack pointer be set to 0x2001 0400 ? (SRAM1 + Stack_Size, no variables created, just empty main() file).
Why its always pointing to 0x2001 0460 ?
Where this 0x60 came from ?
Have you found an answer to this? It's got me stumped too on a STM32F4
Look at the linker map file, especially with detailed output enabled.