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
  • Okay, one interesting thing.

    In my makefile at present, after programming I did nrfjprog -f nrf52 --reset and the device will not start.

    However if I change this to nrfjprog -f nrf52 --pinreset then the device does start.

    It is my understanding the --pinreset is a 'hard' reset whereas --reset is a 'soft' reset

    I am beginning to think this might be something related to the RBP (Read Back Protection) on the nRF52. Although I cannot see where I explicitly enable RBP.

Children
Related