We are using NRF52840PDK for development using NRF Connect SDK. We are facing an unusual behavior while using PDK. The development environment is Windows 10 and SES5.60 installed via NRF connect. The PDK works fine for examples using NRFSDK16. Jlink is getting enumerated properly.
While using examples from NRF Connect SDK, we are facing the issue listed below.
- Code cannot be flashed via Build and run. There is no error message or warning. But code won't execute on target.
- Code can be flashed via debug and go
- Code can be flashed via Build and debug
- Once code is downloaded onto the target and resumes execution, and if we are stopping the debug session by pressing the stop button, code will stop execution and will get stuck. Any attempt to reflash without unplugging the board will result in no idcode detected error as shown below. There are times at which multiple powercycle resets doesn't have an impact.
To overcome this we tried running exec setRestartOnClose = 0 via Jlink commander and that helps in preventing code from getting stuck after stopping the debug session.
But NRF52840DK doesn't have this behavior.
Has anyone ever faced similar issue?
Can that be solved by any other means?
What causes this behavior?