DAVE TIP of the day: How can the stack size be defined?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
The stack size is defined in the linker script file.

The linker script file is created upon new project creation and has the extension *.ld.

Within the linker script file, there is a symbol “stack_size” that is set to 2048 Bytes by default. This value can be changed by the user.
0 Likes
2 Replies
User16409
Level 1
Level 1
what is a limits for the stack_size symbol?
0 Likes
ipek
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked
I think size for stack size is device's RAM size but it doesn't seem wise to reserve whole ram for stack, am I wrong?
0 Likes