Skip to content

Commit 7a360c3

Browse files
committed
Raise MICROPY_ALLOC_GC_STACK_SIZE when using PSRAM
1 parent 91cf8fb commit 7a360c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ports/espressif/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#define MICROPY_NLR_SETJMP (1)
2323
#define CIRCUITPY_DEFAULT_STACK_SIZE 0x6000
2424

25+
// PSRAM can require more stack space for GC.
26+
#define MICROPY_ALLOC_GC_STACK_SIZE (128)
27+
2528
// Nearly all boards have this because it is used to enter the ROM bootloader.
2629
#ifndef CIRCUITPY_BOOT_BUTTON
2730
#if defined(CONFIG_IDF_TARGET_ESP32C2) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32C6) || defined(CONFIG_IDF_TARGET_ESP32H2)

ports/raspberrypi/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
#ifdef PICO_RP2350
1616
#define MICROPY_PY_SYS_PLATFORM "RP2350"
17+
18+
// PSRAM can require more stack space for GC.
19+
#define MICROPY_ALLOC_GC_STACK_SIZE (128)
1720
#endif
1821

1922
// Setting a non-default value also requires a non-default link.ld

0 commit comments

Comments
 (0)