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

nrf52832 does not work well at power on

I download my program to PCA10040 DK board and the program will make the led1 blink two times. First I download program to flash and all work well.The led1 will blink two times and stop. But when the board power off and then power on again,the led1 will blink all the time and will not stop. At this time,I open "options for target"--"debug"--"settings" and have a look at the jlink and target cpu,then close the dialog,the program works well again! but when power off...

I try to add " while(1); " to the end of my led1 blink code. All work well,even though power off and power on again. Why? I know the function of "while(1);",but I'm sure I only make the led1 blinky two times. I'm so confused.

Related