Skip to content

Instantly share code, notes, and snippets.

@mattytrentini
Created May 23, 2021 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattytrentini/842b5c17ef8bbe5c49ebbbdca1343ea1 to your computer and use it in GitHub Desktop.
Save mattytrentini/842b5c17ef8bbe5c49ebbbdca1343ea1 to your computer and use it in GitHub Desktop.
diff --git a/ports/stm32/boards/NODE_151/mpconfigboard.h b/ports/stm32/boards/NODE_151/mpconfigboard.h
index a16a88e6e..f5344ca0d 100644
--- a/ports/stm32/boards/NODE_151/mpconfigboard.h
+++ b/ports/stm32/boards/NODE_151/mpconfigboard.h
@@ -1,8 +1,8 @@
#define MICROPY_HW_BOARD_NAME "Node151v2.2"
#define MICROPY_HW_MCU_NAME "STM32L151CCU"
-#define MICROPY_HW_UART_REPL PYB_UART_1
-#define MICROPY_HW_UART_REPL_BAUD 115200
+#define MICROPY_HW_UART_REPL PYB_UART_1
+#define MICROPY_HW_UART_REPL_BAUD 115200
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
#define MICROPY_HW_ENABLE_ADC (0)
@@ -10,6 +10,8 @@
#define MICROPY_HW_HAS_SWITCH (0) // Ought to be able to turn back on
#define MICROPY_HW_HAS_FLASH (0)
#define MICROPY_HW_ENABLE_USB (0)
+#define MICROPY_PY_BUILTINS_COMPLEX (0)
+#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
// HSE is 8MHz XXX - fix defines (copied from F411DISC)
#define MICROPY_HW_CLK_PLLM (5)
diff --git a/ports/stm32/boards/NODE_151/mpconfigboard.mk b/ports/stm32/boards/NODE_151/mpconfigboard.mk
index b4805cf30..b07bf36a5 100644
--- a/ports/stm32/boards/NODE_151/mpconfigboard.mk
+++ b/ports/stm32/boards/NODE_151/mpconfigboard.mk
@@ -1,16 +1,10 @@
MCU_SERIES = l1
CMSIS_MCU = STM32L151xC
AF_FILE = boards/stm32l151_af.csv
-ifeq ($(USE_MBOOT),1)
-# When using Mboot all the text goes together after the filesystem
-LD_FILES = boards/stm32l151xc.ld boards/common_blifs.ld
-TEXT0_ADDR = 0x08020000
-else
-# When not using Mboot the ISR text goes first, then the rest after the filesystem
-LD_FILES = boards/stm32l151xc.ld boards/common_ifs.ld
-TEXT0_ADDR = 0x08000000
-TEXT1_ADDR = 0x08020000
-endif
+LD_FILES = boards/stm32l151xc.ld boards/common_basic.ld
+
+FROZEN_MANIFEST =
# MicroPython settings
-MICROPY_VFS_LFS2 = 1
+MICROPY_VFS_LFS2 = 0
+MICROPY_VFS_FAT = 0
\ No newline at end of file
diff --git a/ports/stm32/boards/stm32l151xc.ld b/ports/stm32/boards/stm32l151xc.ld
index aa13f020a..ea701ba2e 100644
--- a/ports/stm32/boards/stm32l151xc.ld
+++ b/ports/stm32/boards/stm32l151xc.ld
@@ -6,8 +6,6 @@
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 256K
- FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K
- FLASH_TEXT (rx) : ORIGIN = 0x08004000, LENGTH = 240K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
}
@@ -28,5 +26,3 @@ _sstack = _estack - 4K;
_heap_start = _ebss;
_heap_end = _sstack;
-_flash_fs_start = ORIGIN(FLASH);
-_flash_fs_end = ORIGIN(FLASH) + LENGTH(FLASH);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment