Skip to content

Commit e041019

Browse files
nordicjmrlubos
authored andcommitted
[nrf noup] boot: zephyr: serial_recovery: Add nRF5340 Kconfig override
Adds additional conditions that lets the direct upload option to be selected on nRF5340 to allow for uploading network core updates directly to the network core with the flash simulator Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 036ae01)
1 parent 315d2f5 commit e041019

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

boot/zephyr/Kconfig.serial_recovery

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@ config BOOT_SERIAL_CDC_ACM
4646

4747
endchoice
4848

49+
DT_COMPAT_SIM_FLASH:= zephyr,sim-flash
50+
DT_SIM_FLASH_PATH := $(dt_nodelabel_path,flash_sim0)
51+
4952
config MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD
5053
bool "Allow to select image number for DFU"
51-
depends on !SINGLE_APPLICATION_SLOT
54+
# Allow this option to be selected in cases where support for direct uploading to nRF5340
55+
# network core should be supported
56+
depends on !SINGLE_APPLICATION_SLOT || (SINGLE_APPLICATION_SLOT && SOC_NRF5340_CPUAPP && BOOT_IMAGE_ACCESS_HOOK_NRF5340 && FLASH_SIMULATOR && $(dt_compat_enabled,$(DT_COMPAT_SIM_FLASH)))
5257
help
5358
With the option enabled, the mcuboot serial recovery will
5459
respect the "image" field in mcumgr image update frame

0 commit comments

Comments
 (0)