I"m using VScode and nrf5340. I often get an error like this:
[ ########## ] 0.000s | Erasing non-volatile memory - block 1 of 1 Timed out waiting for progress updates. Did worker process die? [ #################### ] 0.000s | Erasing non-volatile memory - Erase successful [ #################### ] 23.593s | Erase file - Done erasing ERROR: An internal error has occurred, please try again. 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 63: nrfjprog --program GENERATED_CP_APPLICATION_merged_domains.hex --sectorerase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 852003463
If I use Ozone and the Segger tools, flash erase and download seems to always succeed. The above seems to timeout on the erase. On the segger toolchain, erase is very fast (~0.0 seconds according to the segger tools). I am using an Apple silicon Mac and wondering if the nrf tools is missing that the erase was quite fast. This pretty much stops my ability to develop using vscode and the nrf tools