Having trouble Flashing from VSCode

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

support info.rtf

Parents
  • Okay, then it doesn't seem like this is the same issue.

    Are you attempting to flash the onboard SoC on anRF5340 DK or a custom board with the nRF5340 DK as the debugger? If you're working on the latter, what voltage is the custom board running at, as the nRF5340 DK only supports flashing targets at 3V by default. Some more information it would be nice to have.

    • What sample application are you trying to flash?
    • What version of J-Link do you have installed on your computer?
    • Have you tried multiple USB cables and USB ports on your computer?

    Best regards,

    Simon

Reply
  • Okay, then it doesn't seem like this is the same issue.

    Are you attempting to flash the onboard SoC on anRF5340 DK or a custom board with the nRF5340 DK as the debugger? If you're working on the latter, what voltage is the custom board running at, as the nRF5340 DK only supports flashing targets at 3V by default. Some more information it would be nice to have.

    • What sample application are you trying to flash?
    • What version of J-Link do you have installed on your computer?
    • Have you tried multiple USB cables and USB ports on your computer?

    Best regards,

    Simon

Children
No Data
Related