This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM: initial stack pointer

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 ?