From 1f2355742becb4331f9be4d505dea54fb955d2ce Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 14 Nov 2023 12:00:59 -0800 Subject: [PATCH] Fix split heap on ESP It was setting the DMA capability requirement which excludes PSRAM. Fixes #8597. Fixes #8573. --- py/circuitpy_mpconfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h index 99bbc7e571..375b89e2a9 100644 --- a/py/circuitpy_mpconfig.h +++ b/py/circuitpy_mpconfig.h @@ -93,7 +93,7 @@ extern void common_hal_mcu_enable_interrupts(void); #define MICROPY_GC_ALLOC_THRESHOLD (0) #define MICROPY_GC_SPLIT_HEAP (1) #define MICROPY_GC_SPLIT_HEAP_AUTO (1) -#define MP_PLAT_ALLOC_HEAP(size) port_malloc(size, true) +#define MP_PLAT_ALLOC_HEAP(size) port_malloc(size, false) #define MP_PLAT_FREE_HEAP(ptr) port_free(ptr) #include "supervisor/port_heap.h" #define MICROPY_HELPER_LEXER_UNIX (0)