Skip to content

Commit 9fc7118

Browse files
authored
Merge pull request #3213 from jerryneedell/jerryn_pystack
adjust stack for SAMD21 to accommodate larger pystack
2 parents debbf10 + 945736e commit 9fc7118

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

ports/atmel-samd/boards/circuitplayground_express/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define BOARD_USER_SAFE_MODE_ACTION "pressing both buttons at start up"
2929

3030
// Increase stack size slightly due to CPX library import nesting
31-
#define CIRCUITPY_DEFAULT_STACK_SIZE (4760) //divisible by 8
31+
#define CIRCUITPY_DEFAULT_STACK_SIZE (4248) //divisible by 8
3232

3333
#define USER_NEOPIXELS_PIN (&pin_PB23)
3434

ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define BOARD_USER_SAFE_MODE_ACTION "pressing both buttons at start up"
3131

3232
// Increase stack size slightly due to CPX library import nesting
33-
#define CIRCUITPY_DEFAULT_STACK_SIZE (4760) // divisible by 8
33+
#define CIRCUITPY_DEFAULT_STACK_SIZE (4248) // divisible by 8
3434

3535
#define DEFAULT_I2C_BUS_SCL (&pin_PB03)
3636
#define DEFAULT_I2C_BUS_SDA (&pin_PB02)

ports/atmel-samd/boards/circuitplayground_express_displayio/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define BOARD_USER_SAFE_MODE_ACTION "pressing both buttons at start up"
2929

3030
// Increase stack size slightly due to CPX library import nesting.
31-
#define CIRCUITPY_DEFAULT_STACK_SIZE (4760) // divisible by 8
31+
#define CIRCUITPY_DEFAULT_STACK_SIZE (4248) // divisible by 8
3232

3333
#define USER_NEOPIXELS_PIN (&pin_PB23)
3434

ports/atmel-samd/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
#endif
110110

111111
#ifndef CIRCUITPY_DEFAULT_STACK_SIZE
112-
#define CIRCUITPY_DEFAULT_STACK_SIZE 4096
112+
#define CIRCUITPY_DEFAULT_STACK_SIZE 3584
113113
#endif
114114

115115
#ifndef SAMD21_BOD33_LEVEL

py/circuitpy_mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ void supervisor_run_background_tasks_if_tick(void);
799799
#endif
800800

801801
#ifndef CIRCUITPY_PYSTACK_SIZE
802-
#define CIRCUITPY_PYSTACK_SIZE 1024
802+
#define CIRCUITPY_PYSTACK_SIZE 1536
803803
#endif
804804

805805
#define CIRCUITPY_BOOT_OUTPUT_FILE "/boot_out.txt"

0 commit comments

Comments
 (0)