Frustrated with nrf5340 & vscode - Restarting debugging will reflash the firmware again!

Hello,

  Does any one else is facing similar issues?

 I am having all latest updates and extensions and while I am debugging I can pause debugging, step etc, but if I restart the debugging by clicking that green round button, then at right bottom it shows programming the device and it is again flashing the nrf5340 which takes several seconds and finally as expected it will show error coz we need to --recover before flashing.

This was not the behavious for a while and now only this issue again startred, and this makes debugging  so difficult and cannot restart the debugging from beginning without erasing and flashing it. 

Parents
  • Hi,

    If flashing before debugging is problem for you then you can disable this from VS Code Settings, User -> nRF Connect - > Debugging:Flash


    or you could do the same by adding one line in configuration section of launch.json file.

    "flash": false


    Have you tried to use "Run and Debug" button located on the upper-left side of VS Code window and from there "Start Debugging"?

    Best regards,
    Dejan

Reply
  • Hi,

    If flashing before debugging is problem for you then you can disable this from VS Code Settings, User -> nRF Connect - > Debugging:Flash


    or you could do the same by adding one line in configuration section of launch.json file.

    "flash": false


    Have you tried to use "Run and Debug" button located on the upper-left side of VS Code window and from there "Start Debugging"?

    Best regards,
    Dejan

Children
Related