summaryrefslogtreecommitdiff
path: root/extmod
diff options
context:
space:
mode:
authorPhil Howard <github@gadgetoid.com>2024-08-09 14:15:33 +0100
committerDamien George <damien@micropython.org>2025-04-08 10:59:00 +1000
commitb7d5caf2a3e08fa90bbb09b43b29455e2c20eaf6 (patch)
tree44fc16df810f650f50e670a621581e8a7dbbdfd8 /extmod
parent11f057dd9a5801e23b39822b3a57cbfa8cd10f00 (diff)
rp2/mpconfigport: Configure heap for PSRAM.
PSRAM will be used exclusively if MICROPY_GC_SPLIT_HEAP == 0, it will be added to RAM if MICROPY_GC_SPLIT_HEAP == 1, and the system will fall back to RAM only if it's not detected. Due to the size of PSRAM, GC stack was overflowing and causing the GC to scan through the entire memory pool. This caused noticable slowdowns during GC. Increase the stack from 256 to 4096 bytes to avoid overflow and increase the stack entry type size to accomodate 8MB+ PSRAM. Changes are: - ports/rp2/mpconfigport.h: Make split-heap optional and enable by default. - ports/rp2/mpconfigport.h: Increase GC stack entry type to uint32_t. - ports/rp2/mpconfigport.h: Raise GC stack size. Co-authored-by: Kirk Benell <kirk.benell@sparkfun.com> Signed-off-by: Phil Howard <github@gadgetoid.com>
Diffstat (limited to 'extmod')
0 files changed, 0 insertions, 0 deletions