diff --git a/ports/mimxrt/mpconfigport.h b/ports/mimxrt/mpconfigport.h index 911fd41b46..224714b071 100644 --- a/ports/mimxrt/mpconfigport.h +++ b/ports/mimxrt/mpconfigport.h @@ -37,7 +37,11 @@ uint32_t trng_random_u32(void); #define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_FULL_FEATURES) // Memory allocation policies +#if MICROPY_HW_SDRAM_AVAIL +#define MICROPY_GC_STACK_ENTRY_TYPE uint32_t +#else #define MICROPY_GC_STACK_ENTRY_TYPE uint16_t +#endif #define MICROPY_ALLOC_PARSE_CHUNK_INIT (32) #define MICROPY_ALLOC_PATH_MAX (256)