NRF5340: nrfjprog command failure (A duplicated argument provided)

I have an application for NRF5340 which I was trying to add BLE HCI RPMSG into the network core. I went ahead adding the necessary build configuration in such a way I would have the sample application "hci_rpmsg" setup as a child image in a multi-image single build environment.

The build process was completed successfully but flashing the GENERATED_CP_NETWORK_merged_domains.hex file is something that I can not complete. According to the documentation, for multi-image single build, the only way to flash the device is by the command "west flash --erase". I followed this command and I am getting the following logs:

-- west flash: rebuilding
[0/4] Performing build step for 'hci_rpmsg_subimage'
ninja: no work to do.
[1/2] cmd.exe /C "cd /D C:\<build-dir>\zephyr\cmake\flash && C:\<cmake-dir>\bin\cmake.exe -E echo "

-- west flash: using runner nrfjprog
-- runners.nrfjprog: mass erase requested
Using board 50100349
-- runners.nrfjprog: Flashing file: C:\<build-dir>\zephyr\merged_domains.hex
-- runners.nrfjprog: Generating CP_NETWORK hex file C:\<build-dir>\zephyr\GENERATED_CP_NETWORK_merged_domains.hex
-- runners.nrfjprog: Generating CP_APPLICATION hex file C:\<build-dir>\zephyr\GENERATED_CP_APPLICATION_merged_domains.hex
ERROR: A duplicated argument was provided. No argument can be provided twice.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 14: nrfjprog --program 'C:\<build-dir>\zephyr\GENERATED_CP_NETWORK_merged_domains.hex' --chiperase -f NRF53 --coprocessor CP_NETWORK --snr 50100349 --coprocessor CP_APPLICATION

From the logs, seems like west is calling nrfjprog.exe with "--coprocessor" passed twice and thus causing the error. Am I missing something?

I am using NCS v1.5.0 SDK.

Parents Reply Children
No Data
Related