- Register BOARD_ROOT in CMakeLists.txt and sysbuild/CMakeLists.txt - Add boardRoots to VS Code settings for board picker - buzzy.dts: add nordic,pm-ext-flash chosen, external-flash and i2s-audio aliases - nrf52840dk overlay: add external-flash alias (mirrors qspi-flash) - fs_mgmt/Kconfig: select SPI_NOR for BOARD_BUZZY, NORDIC_QSPI_NOR for DK - fs_mgmt.c: use external-flash alias instead of qspi-flash - audio.c: bound snprintf to avoid truncation warning - prj.conf: remove STACK_SENTINEL (conflicts with MPU_STACK_GUARD) - mcuboot.conf: remove UART_CONSOLE (no SERIAL on buzzy) - Delete mcuboot.overlay (no serial recovery needed) Both buzzy/nrf52840 and nrf52840dk/nrf52840 build cleanly with zero warnings.
72 lines
2.1 KiB
Plaintext
72 lines
2.1 KiB
Plaintext
menuconfig FS_MGMT
|
|
bool "File System Management"
|
|
default y
|
|
select FLASH
|
|
select FLASH_MAP
|
|
select FILE_SYSTEM
|
|
select FILE_SYSTEM_LITTLEFS
|
|
select FILE_SYSTEM_MKFS
|
|
select FLASH_PAGE_LAYOUT
|
|
select SPI_NOR if BOARD_BUZZY
|
|
select PM_OVERRIDE_EXTERNAL_DRIVER_CHECK if BOARD_BUZZY
|
|
select NORDIC_QSPI_NOR if BOARD_NRF52840DK_NRF52840
|
|
help
|
|
Library for initializing and managing the file system.
|
|
|
|
if FS_MGMT
|
|
config FS_MGMT_MAX_PATH_LENGTH
|
|
int "Maximum File Path Length"
|
|
default 32
|
|
help
|
|
Set the maximum length for file paths in the file system. Default is 32 characters.
|
|
config FS_MGMT_MOUNT_POINT
|
|
string "Littlefs Mount Point"
|
|
default "/lfs"
|
|
help
|
|
Set the mount point for the Littlefs file system. Default is "/lfs".
|
|
|
|
config FS_MGMT_AUDIO_SUBDIR
|
|
string "Audio File Path"
|
|
default "/a"
|
|
help
|
|
Set the path for the audio file within the file system. Default is "/a".
|
|
|
|
config FS_MGMT_SYSTEM_SUBDIR
|
|
string "System File Path"
|
|
default "/sys"
|
|
help
|
|
Set the path for the system file within the file system. Default is "/sys".
|
|
|
|
config FS_MGMT_THREAD_STACK_SIZE
|
|
int "File System Management Thread Stack Size"
|
|
default 2048
|
|
help
|
|
Set the stack size for the file system management thread. Default is 2048 bytes.
|
|
|
|
config FS_MGMT_THREAD_PRIORITY
|
|
int "File System Management Thread Priority"
|
|
default 6
|
|
help
|
|
Set the priority for the file system management thread. Default is 6.
|
|
|
|
if SOC_SERIES_NRF52X
|
|
config PM_PARTITION_REGION_LITTLEFS_EXTERNAL
|
|
default y
|
|
|
|
config PM_PARTITION_SIZE_LITTLEFS
|
|
default 0x1000000
|
|
endif # SOC_SERIES_NRF52X
|
|
|
|
config FS_LITTLEFS_READ_SIZE
|
|
default 256
|
|
config FS_LITTLEFS_PROG_SIZE
|
|
default 256
|
|
config FS_LITTLEFS_CACHE_SIZE
|
|
default 4096
|
|
config FS_LITTLEFS_LOOKAHEAD_SIZE
|
|
default 512
|
|
|
|
module = FS_MGMT
|
|
module-str = fs_mgmt
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
endif # FS_MGMT |