Debugging nrf52840 Pro Mini with J-Link EDU Mini and Segger Studio

Hello,

I’m using a SparkFun Pro nRF52840 Mini (DEV-1502 https://www.sparkfun.com/products/15025). I’ve connected it to a J-Link EDU Mini via the 10 pin header and can successfully connect to the target in Segger Studio via Target → Connect J-Link.

Flashing firmware seems to work. Doing Build → Build and Debug flashes the software and doesn’t report any errors. However the program doesn’t stop at any break points in the main method. I tried doing the same with the nRF52840 DK board and the break points and debugging work.

Is J-Link debugging with the SparkFun Pro nRF52840 Mini supported? Anything special I need to do for this to work?

I’m using Segger Studio Release 4.16a with the nRF5_SDK_15.3.0 and nrfSDKforMesh310. I’ve been flashing the light_switch_server project from the Mesh SDK examples.

Thanks,

Jeremy

Debugging started working after I did:

  • - Target -> Erase All
  • - Build -> Build and Debug
  • I presume the Erase All wiped out the USB boot loader as well, but now it is programmable and debuggable over J-Link using Segger Studio.