Cannot flash NRF52832 with Segger JLink device after a full day of flashing normally

I am having an issue flashing from VS Code using NCS v2.4.0 and a Segger JLink programmer. Things work just fine for a long time, then I have issues flashing the device with the following output:

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: z:\home\jhaws\git\brickyard_ptu\communication\ptu_app\_bld\zephyr\zephyr.hex
[error] [ Client] - Encountered error -220: Command read_device_info executed for 10011 milliseconds with result -220
[error] [ Worker] - 10 second timeout elapsed, no time left to wait for debug port to power up.
[error] [ Client] - Encountered error -220: Command read_memory_descriptors executed for 10017 milliseconds with result -220
Failed to read device memories.
[error] [ Worker] - 10 second timeout elapsed, no time left to wait for debug port to power up.
ERROR: Operation failed due to timeout. Check the log messages for more details.
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 64: nrfjprog --program 'z:\home\jhaws\git\brickyard_ptu\communication\ptu_app\_bld\zephyr\zephyr.hex' --sectoranduicrerase --verify -f NRF52 --snr 59200863

I am unsure what is causing this because it seems to resolve itself after an indetermined amount of time.

I got in this the last time when I had a debug session open and I powered off the device before disconnecting. When I powered on again and tried to start a debug session through VS Code, I get this error.

Thanks for the support!

Jon

Related