Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32: get small filesystem working on NUCLEO_L432KC #4701

Merged
merged 1 commit into from
May 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/stm32/boards/NUCLEO_L432KC/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
#define MICROPY_PY_UHEAPQ (0)
#define MICROPY_PY_UTIMEQ (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_ENABLE_USB (0) // requires a custom USB connector on PA11/PA12
#define MICROPY_HW_ENABLE_TIMER (1)
#define MICROPY_HW_HAS_SWITCH (0)
#define MICROPY_HW_HAS_FLASH (1)

// MSI is used and is 4MHz
#define MICROPY_HW_CLK_PLLM (1)
Expand Down
1 change: 1 addition & 0 deletions ports/stm32/boards/NUCLEO_L432KC/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ OPENOCD_CONFIG = boards/openocd_stm32l4.cfg

# 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 ?=
2 changes: 1 addition & 1 deletion ports/stm32/boards/stm32l432.ld
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 230K /* sectors 0-114 */
FLASH_FS (r) : ORIGIN = 0x08060000, LENGTH = 26K /* sectors 115-127 */
FLASH_FS (r) : ORIGIN = 0x08039800, LENGTH = 26K /* sectors 115-127 */
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K /* SRAM1, 48K + SRAM2, 16K */
}

Expand Down