I have been having nothing but problems since moving to the nRF52840 and using Segger Embedded Studio.
I have built a project that uses the soft device, my application, and the secure Bootloader (buttonless DFU).
A similar project on the nRF52832 using SDK17 has had no problems. But all example projects (plus any project I write) on the nRF52840 has been almost IMPOSSIBLE to use the debugger.
I am using SES 5.68 downloaded from Nordic.
When I go to run the debugger, the application compiles, and I see the J-Link programmer start up to erase, program, and verify, but then when the installation is done, the device only boots up into DFU mode!!!! I can see it advertising as DfuTarg in a bluetooth scanner, but my application never loads. I can also confirm that the script that should run - the "TargetInterface.resetAndStop()", does not run, because, well, it isn't actually in the "main" loop of my application!
Note that every once in a while, I have had this work. The application stops, I can then click play again to continue, and I can see the output window with all my logging on SWD showing up.
This is EXTREMELY frustrating. Note that this is with ALL projects - not just my project.
I can take my project and take it through the entire nrfutil process to turn it into hex files and OTA, and then burn the hex file directly, and it is fine. But I can almost consistently, 100% of the time, get it to fail if I try and run the debugger.
Any idea what is going on? I can't do any debug, which is not acceptable.