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 Reply Children
  • For clarity, this isn't a problem building the code -- it is a problem downloading and programing the flash on the nrf

    I installed the VSCode extensions from within VSCode. 

    for the nordic SDK , we have cmd line tools with our project, yaml files, etc that set up the build. 

    I downgraded to 1.87.2 uninstalled all of my extensions and then installed the nrf connect (v2024.7.13) from within VSCode

    No intel based toolchains as far as I can tell -- is there a specific one that I should look for and uninstall?

    And this did not fix the problem.

Related