From af52e1ff24b0b543f6fdb3bc937713a6ab94d506 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Wed, 8 Nov 2023 13:01:08 +1100 Subject: [PATCH] stm32/boards/NUCLEO_WL55: Freeze LoRa driver. This adds the sync version of the LoRa driver (and the base WL55 driver). Adds +13.6kiB (212.6 -> 226.2). Limit for this board is 232kiB. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared --- ports/stm32/boards/NUCLEO_WL55/manifest.py | 6 ++++++ ports/stm32/boards/NUCLEO_WL55/mpconfigboard.mk | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 ports/stm32/boards/NUCLEO_WL55/manifest.py diff --git a/ports/stm32/boards/NUCLEO_WL55/manifest.py b/ports/stm32/boards/NUCLEO_WL55/manifest.py new file mode 100644 index 0000000000..8998166a3e --- /dev/null +++ b/ports/stm32/boards/NUCLEO_WL55/manifest.py @@ -0,0 +1,6 @@ +# Don't include default frozen modules because MCU is tight on flash space. + +# Only install the sync version of the LoRa driver because this board doesn't +# have asyncio by default. +require("lora-sync") +require("lora-stm32wl5") diff --git a/ports/stm32/boards/NUCLEO_WL55/mpconfigboard.mk b/ports/stm32/boards/NUCLEO_WL55/mpconfigboard.mk index 210f3058c1..ced2e7619b 100644 --- a/ports/stm32/boards/NUCLEO_WL55/mpconfigboard.mk +++ b/ports/stm32/boards/NUCLEO_WL55/mpconfigboard.mk @@ -9,5 +9,5 @@ TEXT0_ADDR = 0x08000000 MICROPY_VFS_FAT = 0 MICROPY_VFS_LFS2 = 1 -# Don't include default frozen modules because MCU is tight on flash space -FROZEN_MANIFEST ?= +# Board-specific manifest (doesn't include default modules, adds LoRa driver). +FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py