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.If they aren't enabled then why you only have 2KB stacks is as much a mystery to me as it is to you.
here https://github.com/raspberrypi/pico-sdk ... lt.ld#L224
Statistics: Posted by fanoush — Tue Dec 03, 2024 4:01 pm