Debug vs Flash VSC

I working on different applications using nRF5340 and nRF9160.

Debug: When Debugger is launched, the MCU reset repetitively as seen in LTE Monitor (Image 1) in case of asset_tracker application and in  Bluetooth peripheral on 5340 also. Sometimes, during programming for Debug, the connection break occurs and it takes may tries to launch Debugger.

Flash: When same code is run after Flash, then reset does not occur.

  

Parents Reply
  • After, above changes, the debugger could not yet started, but during programming for debug, programming fails with error code 35 or 33. During past 20 years, I have worked on Microchip, Holtek, ST, NXP, SiLab and many architectures. SO much debug issues never occur on those IDEs. In Zephyr based VSC /  SES projects, I have wasted two days just launching the debugger. Only once, it got launched and during step-in, I had to reset using Debugger command, to re-start execution, it took two days, but could not launch. Very annoying debugging. Too much wastage of time.  

    After many tries, when debugger got launched, the Debug Output is in image below:

      

Children
Related