Skip to content

Commit

Permalink
Move MCUboot configuration from boards to generic sysbuild folder
Browse files Browse the repository at this point in the history
This allows to build the BMS C1 board with and without sysbuild.
  • Loading branch information
martinjaeger committed Oct 8, 2024
1 parent 4255759 commit c556a8f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/boards/bms_c1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,3 @@ CONFIG_SHELL_CMDS_SELECT=y
CONFIG_THINGSET_SHELL=y
CONFIG_THINGSET_SHELL_REPORTING=n
CONFIG_THINGSET_SHELL_CMD_BUF_SIZE=256

# DFU over CAN
CONFIG_THINGSET_DFU=y

# Flash driver to store firmware image
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_STREAM_FLASH=y
CONFIG_IMG_MANAGER=y
# progressive erase is required for this MCU, otherwise erasing the large SPI flash takes too long
CONFIG_IMG_ERASE_PROGRESSIVELY=y

# Application-side MCUboot configuration
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE=n
4 changes: 4 additions & 0 deletions app/sysbuild.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sysbuild configuration file

# Use MCUboot as bootloader
SB_CONFIG_BOOTLOADER_MCUBOOT=y
12 changes: 12 additions & 0 deletions app/sysbuild/app.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Extra configuration for app when using sysbild

# DFU over ThingSet (e.g. CAN)
CONFIG_THINGSET_DFU=y

# Flash driver to store firmware image
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_STREAM_FLASH=y
CONFIG_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

0 comments on commit c556a8f

Please sign in to comment.