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

nRF52 does not start without debugger

Hello,

I am experiencing an issue whereby the nRF52 is not starting up when not started through the debugger. I am using an identical setup as another project with regards to linker scripts and gcc_startup files and the issue is not present there.

Everything goes well when the debugger is attached and I start by debugging. Without debugging however, it does not reach main().

I have tried several approaches to correct this, running both with and without the softdevice. What I have seen is that I get atleast past SystemInit() (System_nrf52.c) where I set a gpio pin high that lit an LED as the very last call in the function so I could see I exited the function. Beyond this im not sure what is happening as it is not reaching main.

I have checked that the reset pin is high and CONFIG_GPIO_AS_PINRESET is set as per the other functioning project.

I am using Eclipse Mars2, gcc toolchain and the 132 Softdevice.

I should also note that I have tried various commands through nrfjprog and it still doesnt start up.

Do you have any suggestions as to what could be causing this behaviour?

Thanks, Chris

Related