Device error: No programmer is defined for the xip memory (0x10000000..0x20000000)

I get the following error when clicking flash button in nrfConnect VS Code extension with an nRF54L15 DK:

Error: One or more batch tasks failed:
* 1057701224: Device error: No programmer is defined for the xip memory (0x10000000..0x20000000). An external memory config file is required to work with this memory. Set this file with the dedicated option (Generic)

FATAL ERROR: command exited with status 1: nrfutil --json device x-execute-batch --batch-path /Users/bigal/Projects/Tycho-Watch/app/build/app/zephyr/generated_nrfutil_batch.json --serial-number 1057701224

My board.cmake file is:

**************************************************************************************************************************************************************************************************************************# Copyright (c) 2025 ZSWatch Project

# SPDX-License-Identifier: Apache-2.0

if(CONFIG_BOARD_WATCHDK_NRF5340_CPUAPP_NS)
set(TFM_PUBLIC_KEY_FORMAT "full")
endif()

if(CONFIG_BOARD_WATCHDK_NRF5340_CPUAPP OR CONFIG_BOARD_WATCHDK_NRF5340_CPUAPP_NS)
board_runner_args(nrfjprog "--qspiini=${BOARD_DIR}/support/qspi_mx25u51245.ini")
board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
endif()

if(CONFIG_TFM_FLASH_MERGED_BINARY)
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
endif()

if(CONFIG_BOARD_WATCHDK_NRF5340_CPUNET)
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
endif()

include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

**************************************************************************************************************************************************************************************************************************

I'm specifically looking for a board_runner_args line for nrfutil instead of the nrfjprog one above.
I can't find any documentation for it.
I think the qspiini option isn't available for nrfutil, so what's the alternative?
I know there's an nrfutil command for the terminal, but I don't know where the .hex file from the build is in my project. I'd ideally like to use the flash button in nrfConnect VS Code extension.
I know nrfjprog is deprecated and I should use nrfutil going forward, so I'd like to get a solution for nrfutil that lets me use nrfConnect VS code extension in the same way I have already been.
Related