MCUboot serial recovery mode Kconfig warnings

Hi, I'm trying to setup serial recovery in my project, in order to update firmware via USB cdc-acm.

I'm following this exercise from the academy which seems what I need. However, I'm experiencing this issue on the application.

Specifically, I have configured my sysbuild.conf like this

SB_CONFIG_NETCORE_HCI_IPC=y
SB_CONFIG_BOOTLOADER_MCUBOOT=y
SB_CONFIG_MCUBOOT_MODE_SINGLE_APP=y

my sysbuild/mcuboot.conf like this
# logging
CONFIG_LOG=y
CONFIG_MCUBOOT_LOG_LEVEL_INF=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=1024
CONFIG_LOG_BACKEND_RTT=y
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_RTT_CONSOLE=n

# hardware
CONFIG_GPIO=y
CONFIG_USB_DEVICE_VID=0x0
CONFIG_USB_DEVICE_PID=0x0
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000

# project configuration
CONFIG_MCUBOOT_SERIAL=y
CONFIG_BOOT_SERIAL_CDC_ACM=y

And added nothing related to the bootloader in the main prj.conf file. However, when Cmake is configuring the main app, I'm given this Kconfig warnings

   *************************
   * Running CMake for app *
   *************************

Loading Zephyr default modules (Zephyr base (cached)).
-- Application: C:/Users/andre/ws_project/project/app
-- CMake version: 3.30.2
-- Cache files will be written to: C:/Users/andre/ws_project/zephyr/.cache
-- Zephyr version: 3.6.99 (C:/Users/andre/ws_project/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: tracker, Revision: 1.0.0, qualifiers: nrf5340/cpuapp
-- Found host-tools: zephyr 0.16.8 (C:/Users/andre/zephyr-sdk-0.16.8)
-- Found toolchain: zephyr 0.16.8 (C:/Users/andre/zephyr-sdk-0.16.8)
-- Found BOARD.dts: C:/Users/andre/ws_project/project/boards/arm/tracker/tracker_nrf5340_cpuapp.dts
-- Generated zephyr.dts: C:/Users/andre/ws_project/project/build/tracker/debug/app/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Users/andre/ws_project/project/build/tracker/debug/app/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Users/andre/ws_project/project/build/tracker/debug/app/zephyr/dts.cmake

warning: UPDATEABLE_IMAGE_NUMBER (defined at
C:/Users/andre/ws_project/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:89, subsys/dfu/Kconfig:95)
was assigned the value '1' but got the value ''. Check these unsatisfied dependencies:
(((BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS) && SOC_SERIES_NRF53X &&
NCS_SAMPLE_MCUMGR_BT_OTA_DFU) || (!MCUBOOT && IMG_MANAGER)) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UPDATEABLE_IMAGE_NUMBER and/or look up
UPDATEABLE_IMAGE_NUMBER in the menuconfig/guiconfig interface. The Application Development Primer,
Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
helpful too.


warning: MCUBOOT_UPDATE_FOOTER_SIZE (defined at subsys/dfu/Kconfig:54) was assigned the value '0x0'
but got the value ''. Check these unsatisfied dependencies: MCUBOOT_IMG_MANAGER (=n), IMG_MANAGER
(=n). See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_UPDATE_FOOTER_SIZE and/or
look up MCUBOOT_UPDATE_FOOTER_SIZE in the menuconfig/guiconfig interface. The Application
Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
the manual might be helpful too.

Parsing C:/Users/andre/ws_project/project/app/Kconfig
Loaded configuration 'C:/Users/andre/ws_project/project/boards/arm/tracker/tracker_nrf5340_cpuapp_defconfig'
Merged configuration 'C:/Users/andre/ws_project/project/app/prj.conf'
Merged configuration 'C:/Users/andre/ws_project/project/app/prj_debug.conf'
Merged configuration 'C:/Users/andre/ws_project/project/build/tracker/debug/app/zephyr/.config.sysbuild'
Configuration saved to 'C:/Users/andre/ws_project/project/build/tracker/debug/app/zephyr/.config'
Kconfig header saved to 'C:/Users/andre/ws_project/project/build/tracker/debug/app/zephyr/include/generated/autoconf.h'
[...]

In the devzone link above, it is suggested to add CONFIG_IMG_MANAGER=y to the proj.conf file. I tried it (and also adding CONFIG_BOOTLOADER_MCUBOOT=y) without success. 

Am I facing a bug, or missing something? I noticed that if I remove the pm_static.yml file from the app directory, the warnings go away, however I then get a warning that the pm_static.yml file is missing.

Related