On my dev system:
- MacOS (Monterey 12.6)
- Visual Studio Code v1.76.2
- nRF Connect SDK and toolchain v2.3.0
From a fresh start on my computer, plugged into my nRF5340dk, I can launch VS Code and debug the stock peripheral_uart example. However, if I halt that example and attempt to debug it again, the system attempts to flash the example, makes considerable progress in the flashing process, then halts with this error:
Once in this state, I have found two ways to again debug the peripheral_uart example. This first is to perform the "Recover Board" option for the device. This doesn't always work. The second option is to reset the device, then debug another example(blinky, peripheral_hr, or similar). Once the other example loads, I can halt it and then debug the peripheral_uart example just fine. So far these are the only solutions I've found.
Please note that I can debug other examples over and over without any issues. This error scenario only seems to happen with the peripheral_uart example.
Is there a way to debug the peripheral_uart example successively without resorting to these workarounds? This is quite important because the firmware I'm developing is based on the peripheral_uart template, so I/we will be affected by this issue indefinitely.
Please let me know if I need to clarify anything and provide additional information.
Thanks,
Craig