Skip to content

Commit 4548928

Browse files
projectgusdpgeorge
authored andcommitted
stm32/boards/B_L072Z_LRWAN1: Lower default ROM level to "Core".
Re-enable some features required for the board to still build and the lora driver to run. This board only has 192KB of flash total, so default stm32 build is very close to the limit. Before: LINK build-B_L072Z_LRWAN1/firmware.elf text data bss dec hex filename 184352 68 14112 198532 30784 build-B_L072Z_LRWAN1/firmware.elf (12256 bytes free) After: LINK build-B_L072Z_LRWAN1/firmware.elf text data bss dec hex filename 155028 68 14052 169148 294bc build-B_L072Z_LRWAN1/firmware.elf (41580 bytes free) This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
1 parent 3aabdf2 commit 4548928

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ports/stm32/boards/B_L072Z_LRWAN1/mpconfigboard.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
#define MICROPY_HW_BOARD_NAME "B-L072Z-LRWAN1"
66
#define MICROPY_HW_MCU_NAME "STM32L072CZ"
77

8+
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_CORE_FEATURES)
9+
10+
#define MICROPY_HELPER_REPL (1)
11+
#define MICROPY_KBD_EXCEPTION (1)
812
#define MICROPY_EMIT_THUMB (0)
913
#define MICROPY_EMIT_INLINE_THUMB (0)
14+
#define MICROPY_ENABLE_SCHEDULER (1)
1015
#define MICROPY_OPT_COMPUTED_GOTO (0)
1116
#define MICROPY_PY_BUILTINS_COMPLEX (0)
1217
#define MICROPY_PY_GENERATOR_PEND_THROW (0)
@@ -18,6 +23,8 @@
1823
#define MICROPY_PY_STM (0)
1924
#define MICROPY_PY_PYB_LEGACY (0)
2025
#define MICROPY_PY_HEAPQ (0)
26+
#define MICROPY_PY_OS (1)
27+
#define MICROPY_PY_TIME (1)
2128

2229
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
2330
#define MICROPY_HW_ENABLE_RTC (1)

0 commit comments

Comments
 (0)