This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 require reset form debugger to start

Hi, I am developing my own program based on serial example. Project is based on gcc compiler under eclipse. I have preapared my own board with rigado module (nrf52832). HW works correctly. But my program works only after programming device. After unplug / plug power it seems to stay in halt mode. But only after connecting JLink (from devboard) and click RESET / BOOT button on devkit board my device starts working properly. After reset the SWD line may be disconnected and everything works fine but after power restart the same approach with reset is required.

Instead pressing RESET/BOOT button I can send command reset_no_halt (rnh) over JLink.exe with the same result.

Is there any define statement or something similar that I should have set?

P.S. Such a problem does not occure with ones of example provided that why I am sure that HW is correct.

Parents Reply
  • Hi Nguyen,

    There is no reference to rdimon or any type of semi-hosting debug. We are building using gcc.

    This code works fine on the nRF52-DK but on our chip down solution it has problems. Once programmed, we follow the usual Nordic makefile convention of doing "nrfjprog -f nrf52 --reset" to restart the SoC with the updated application. Oddly this does not cause a restart and to begin execution I need to use JLinkExe to connect and the use 'r' at which point the SoC restarts and execution of the application begins. I cannot understand this issue as I thought nrfjprog was essentially a wrapper around JLinkExe?

Children
Related