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

Trouble with system halted,but cannot reset nRF51822 chip.

Hi,: I run my application program by nRF51822, about S110 V6.0 and SDK 5.2. When the program run servial cycle functioin , it is work normail.But sometime, nRF51822 sysytem happened system halted, so bluethooth was break and not work long time. . I reset chip's SWDIO pin more times, but nRF51822 chip was not any response message. After cell power line is break and link cell line again, it is work and nromal. Why reset SWDIO pin it is not work? I run WDT mode, but it is not useful.System is not auto-reseting.
my wdt() as follow:

void wdt_init(void) {

NRF_WDT->CONFIG = (WDT_CONFIG_HALT_Run << WDT_CONFIG_HALT_Pos) | ( WDT_CONFIG_SLEEP_Run << WDT_CONFIG_SLEEP_Pos);
NRF_WDT->CRV = 7*32768;   //set 7 second. timout
NRF_WDT->RREN |= WDT_RREN_RR0_Msk;  //Enable reload register 0
NRF_WDT->TASKS_START = 1;

}

So I am perplexed where the code is halted. Please help me to analyse hanppen reason ang how deal with it.

Related