From dacd1de577cfb9c0407a6a1d1f057a356189466b Mon Sep 17 00:00:00 2001 From: Mikey Sklar Date: Fri, 11 Sep 2026 19:34:45 -0700 Subject: [PATCH] stm: load native .mpy by default on STM32F4 boards Turn on CIRCUITPY_LOAD_NATIVE for the F4 series. Every F4 board has room for the loader. F7 and H7 stay off: they are Cortex-M7 parts with caches, and emitglue.c only does the cache maintenance for loaded code when __ICACHE_PRESENT is defined, which the stm port does not provide there. Co-Authored-By: Claude Opus 5 (1M context) --- ports/stm/mpconfigport.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/stm/mpconfigport.mk b/ports/stm/mpconfigport.mk index bd2b2238eef..466477328f0 100644 --- a/ports/stm/mpconfigport.mk +++ b/ports/stm/mpconfigport.mk @@ -21,6 +21,7 @@ ifeq ($(MCU_VARIANT),STM32F407xx) endif ifeq ($(MCU_SERIES),F4) + CIRCUITPY_LOAD_NATIVE ?= 1 # Audio via PWM (F405/F407 also supports DAC-based audioio; set above) CIRCUITPY_AUDIOIO ?= 0 CIRCUITPY_AUDIOCORE ?= 1