west debug does not work and corrupts flash contents in multi-domain-projects (with sysbuild)

Wheh I try to debug a multi-domain-image on an nrf5340 or 52840, I can debug the mcuboot domain just fine. But when I try to debug the app-domain (I tried this with the zephyr/samples/sysbuild/with_mcuboot sample), gdb complains that it cannot find the bounds of the current function.

But what's worse, it corrupts part of the flash, so that when I step though the mcuboot-domain after that (which still works), I can see mcuboot fail to find a bootable image. Clearly this should not happen, right?

This can be reproduced with any nrf5340 or nrf52840 and the aforementioned sample . I used the nrf52840 on an nrf9160dk and a custom nrf5340 board.

Parents Reply Children
Related