Strange Debugging Behavior on nrf9160 DK (unsure if hardware or software)

Visual Studio often refuses to run the debugger because the dev kit will disconnect suddenly during the flashing process. The same happens when I tried with Keil uVision before. When debugging does start in visual studio, I get strange debugging behavior such as inability to pause and skipped breakpoints. Please see screenshot for the debugger failing to start.

Parents Reply
  • I can't close nRF terminal but a can choose to hide it and not connect any DK COM ports. I can start the debugger but it still fails to stop at certain breakpoints and does stop at breakpoints that I haven't set. When it goes into a hardfault it will refuse to reset and run again unless I restart the debugger (see picture with circled "paused on exception"). It looks like Visual Studio cannot open certain source files, even though it builds and doesn't give any "not found" errors in the source code.

Children
Related