From 868f23b362171ee131bd6bfa784911fb8fc66202 Mon Sep 17 00:00:00 2001 From: chrismas9 Date: Mon, 13 Jun 2022 21:33:55 +1000 Subject: [PATCH] stm32/boards/NUCLEO_F091RC: Enable LFS1 filesystem. And disable some less common features to make space for it. Signed-off-by: Chris Mason --- ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h | 6 +++++- ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h b/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h index 38fcb2f28e..a68b939939 100644 --- a/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h +++ b/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.h @@ -4,17 +4,21 @@ #define MICROPY_EMIT_THUMB (0) #define MICROPY_EMIT_INLINE_THUMB (0) #define MICROPY_OPT_COMPUTED_GOTO (0) +#define MICROPY_PY_BUILTINS_COMPLEX (0) #define MICROPY_PY_IO_FILEIO (0) #define MICROPY_PY_USOCKET (0) #define MICROPY_PY_NETWORK (0) #define MICROPY_PY_STM (0) #define MICROPY_PY_PYB_LEGACY (0) +#define MICROPY_PY_UHEAPQ (0) +#define MICROPY_PY_UTIMEQ (0) +#define MICROPY_PY_FRAMEBUF (0) -#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0) #define MICROPY_HW_ENABLE_RTC (1) #define MICROPY_HW_ENABLE_ADC (1) #define MICROPY_HW_ENABLE_DAC (1) #define MICROPY_HW_HAS_SWITCH (1) +#define MICROPY_HW_HAS_FLASH (1) // For system clock, enable one source: // #define MICROPY_HW_CLK_USE_HSI (1) // internal 8MHz -> PLL = 48MHz. diff --git a/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk b/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk index 984fe2f900..4416188816 100644 --- a/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk +++ b/ports/stm32/boards/NUCLEO_F091RC/mpconfigboard.mk @@ -5,6 +5,7 @@ LD_FILES = boards/stm32f091xc.ld boards/common_basic.ld # MicroPython settings MICROPY_VFS_FAT = 0 +MICROPY_VFS_LFS1 ?= 1 # Don't include default frozen modules because MCU is tight on flash space FROZEN_MANIFEST ?=