Skip to content

Commit c5722ba

Browse files
committed
pbio/platform/prime_hub: Reduce minimal stack size.
1 parent d6e9463 commit c5722ba

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
- Improved color detection when using default colors. Also changed the HSV calculation
1717
for the SPIKE Color Sensor and Boost Color and Distance Sensor to make them
1818
more similar. User code should measure HSV values again in old code ([pybricks-micropython#421]).
19+
- Reduced user stack size to `12 KB` on SPIKE Prime Hub to make it the same as
20+
SPIKE Essential Hub. This frees up some RAM for system resources, and we never
21+
use this much in practice.
1922

2023
### Fixed
2124
- Fixed `race=False` ignored in `pybricks.tools.multitask()` ([support#2468]).

lib/pbio/platform/prime_hub/platform.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ MEMORY
1919

2020
/* Minimal stack size to allow the build to proceed. The actual stack size is whatever is left after
2121
statically allocated memory. It can be tuned by setting PBDRV_CONFIG_BLOCK_DEVICE_RAM_SIZE. */
22-
_minimal_stack_size = 16K;
22+
_minimal_stack_size = 12K;

0 commit comments

Comments
 (0)