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

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

$
0
0
From SDK doc:
4.5.16.4.9. __scratch_x
4.5.16.4.10. __scratch_y
Scratch X/Y is commonly used for critical data and functions accessed only by one core (when only one core is accessing
the RAM bank, there is no opportunity for stalls)
You can put some (time critical) variables there:

Code:

uint32_t __scratch_x("my_group_name") foo_x = 23;uint32_t __scratch_y("my_group_name") foo_y = 23;
In RP2350 there are 2 blocks of 256 kB stripped memory and 2x4 KB (scratch)
RP2350-bus-fabric.gif

Statistics: Posted by gmx — Wed Dec 04, 2024 10:03 am



Viewing all articles
Browse latest Browse all 5339

Trending Articles