VS Code Freezing when board connected (nrf9160dk)

Hi,

So, my issue is weird. Just followed SDK course, installed everything as described, setup, all good, working, updating board etc, couple time freezed but recovered after restart of VSCode.

By the lesson 3 it started to freeze almost all the time when board connected. Once I try to flash board - it can't finish build anymore or it takes few minutes (while before issues start build was few seconds). Terminal output lags and freezes etc.

But sometimes it may work and issue happens again after reboot or restart of VSCode. 

Tried removing unnecessary apps from my laptop, no change. Installed fully fresh windows, no other IDEs or programmer drivers beside supplied SEGGER, still same.

Please advice, 4 days trying to fix that with no success..

Parents
  • Hi Grigor,

    Sorry to hear your struggle. This sounds really weird.

    From your description, it is not clear either "flash" or "build" are effected. I assume it is only related to "flash" action, since "build" action does not need to have nRF9160DK connected. Is this correct? Are you able to do a test on another DK(cloud be any other nRF DKs if you have one) or new PC or switch USB port to check if the issue is related to your nRF9160DK or PC?

    Best regards,

    Charlie

  • Thanks for quick response.

    Whole extension was freezing, no way to build after beginning of issue and so on, so build was not happening or slow, no way to edit build configuration and random errors from VS Code. 

    But I found root of the problem and it is where I didn't expect that (or at least not like that)....

    USB cable was the reason. It detects perfectly and always, but had that weird issues I described above (still device was not disappearing from system). Replaced with thicker cable and now it looks perfectly stable. Such a relief and disappointment at the same time, 4 days just to find that.

  • Great to hear you find the cause! Thanks for sharing.  The weird issues are normally simple. Grin

    Best regards,

    Charlie

  • Looks I too rushed for conclusion. Worked fine for some time and it's back. Tried different cables, dev boards and USB ports. Once board is connected all starts to fall apart, getting errors on Intellisense, C++ server, freezing and lagging...

Reply Children
Related