This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/CC3220: how to get the address of __stack_start and __stack_end

Part Number: CC3220

Tool/software: TI C/C++ Compiler

Hi,

In linker script, we've defined the stack section:

.stack (NOLOAD) : ALIGN(0x8) {
_stack = .;
__stack = .;
KEEP(*(.stack))
. += STACKSIZE;
_stack_end = .;
__stack_end = .;
} > REGION_STACK AT> REGION_STACK

While checking __stack and __stack_end in the code, both of them are 0. How can we get the exact address of stack start and end?

Thanks,

Yonghua