Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4151

SDK • Re: Why is the default stack size 2 KiB?

$
0
0
If they aren't enabled then why you only have 2KB stacks is as much a mystery to me as it is to you.
As I mentioned you can put some of your global variables into those scratch_x/y linker sections via attributes so if they would size the stack to fill whole 4k you couldn't do that. So if you are sure your stack won't grow below 2k to hit your data, the space is free and linker would fill it from the bottom with your variables.

here https://github.com/raspberrypi/pico-sdk ... lt.ld#L224

Statistics: Posted by fanoush — Tue Dec 03, 2024 4:01 pm



Viewing all articles
Browse latest Browse all 4151

Trending Articles