NCS 3.4.0 - Thingy91X - PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY magic

NCS 3.4.0 - Thingy91X 

Using McuBoot without external flash seems to work not anymore.

According nrf/sysbuild/Kconfig.sysbuild:

config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY

depends on the deprecated PARTITION_MANAGER. But for unknown reasons, it seems to be still there. Even in a pretty magic way.

I removed (for test only) from that Kconfig.sysbuild and from all Kconfig of that board.

But building it, it still shows

#
# NCS subsystem configurations
#
CONFIG_PM_EXTERNAL_FLASH_HAS_DRIVER=y
CONFIG_PM_EXTERNAL_FLASH_BASE=0
CONFIG_PM_EXTERNAL_FLASH_ENABLED=y
CONFIG_PM_EXTERNAL_FLASH_PATH="/soc/peripheral@40000000/spi@b000/GD25LE255E@0"
CONFIG_PM_EXTERNAL_FLASH_SIZE_BITS=268435456
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
# CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK is not set
CONFIG_PM_SRAM_BASE=0x20000000
CONFIG_PM_SRAM_SIZE=0x40000
# end of Partition Manager

in .config. 

In the past it was important to disable PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY, but even 

SB_CONFIG_PARTITION_MANAGER=n
SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n

in sysbuild.conf seems not to work.

Therefore I tried to test it by removing the PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY from Kconfig and so my surprise, that it's still there, is pretty large.

(I removed the build folder, so it's no leftover.)

Parents Reply Children
No Data
Related