When executing the debugging program in the VSCode environment, pressing the restart button requires re-downloading the program each time.

Hi,

I execute the compiled program under VSCode. After the program is executed, I press the restart button and find that it will re-download the program every time, which is very time-consuming.

If I monitor RTT at the same time, it will take more time. Longer, I wonder if it is possible to restart the program without changing the program without re-downloading the program? Then directly enter the debug mode state.

Because this is too slow compared to SEGGER Embedded Studio for ARM environment or Keil uVision!

Parents
  • You can  try 

    nrfjprog --reset
    For myself I made a couple of additional tasks for VS code
    {
      "tasks": [
        {
          "label": "ReBoot NRF53 via USB",
          "type": "shell",
          "command": "nrfjprog --reset",
          "problemMatcher": [],
          "options": {
            "shell": {
              "executable": "powershell.exe",
              "args": [
                "-Command"
              ]
            }
          }
        },
          {
            "label": "Erase All - NRF53 via USB",
            "type": "shell",
            "command": "nrfjprog --eraseall -f nrf53",
            "problemMatcher": [],
            "options": {
              "shell": {
                "executable": "powershell.exe",
                "args": [
                  "-Command"
                ]
              }
            }
          }
      ]
    }

Reply
  • You can  try 

    nrfjprog --reset
    For myself I made a couple of additional tasks for VS code
    {
      "tasks": [
        {
          "label": "ReBoot NRF53 via USB",
          "type": "shell",
          "command": "nrfjprog --reset",
          "problemMatcher": [],
          "options": {
            "shell": {
              "executable": "powershell.exe",
              "args": [
                "-Command"
              ]
            }
          }
        },
          {
            "label": "Erase All - NRF53 via USB",
            "type": "shell",
            "command": "nrfjprog --eraseall -f nrf53",
            "problemMatcher": [],
            "options": {
              "shell": {
                "executable": "powershell.exe",
                "args": [
                  "-Command"
                ]
              }
            }
          }
      ]
    }

Children
No Data
Related