zephyr/zephyr.slot1.signed.encrypted.bin is defined as an output multiple times for nRF52832

I recently started tooling with Zephyr for low power Bluetooth applications and i was trying to build with sysbuild mcuboot togheter with my nRF52832 without success.
I see that the board itself is supported in the MCUBoot folder and thus im quite lost on the origin of the error.


If i try to build with the image encryption configuration with MCUBoot i get the error mentioned in the title, with this specific sysbuild.conf file im attaching

And here's the following build error:

Specifically, im trying to build the Blinky sample provided by zephyr, and with the following command:  west build -p always -b nrf52dk/nrf52832 --sysbuild --pristine

What i find puzzling is that without these two lines in the sysbuild.conf file building and flashing works perfectly:

SB_CONFIG_BOOT_ENCRYPTION=y
SB_CONFIG_BOOT_ENCRYPTION_KEY_FILE="${APP_DIR}/image_key_pub_rsa2048.pem"

What am i doing wrong? any help would be appreciated
Luca
Related