Hi ,
We are using NRF52, S132 softdevice ... Whenever we do hard reset everything works fine .. But if I do flash from my IDE (using eclipse,this is a soft reset) and it goes into a WDT reboot .
How can I reconfgure WDT in this case ?
Hi ,
We are using NRF52, S132 softdevice ... Whenever we do hard reset everything works fine .. But if I do flash from my IDE (using eclipse,this is a soft reset) and it goes into a WDT reboot .
How can I reconfgure WDT in this case ?
@Thangaraj: How did you feed the watchdog ? Do you mean that every time, the first run after you program the firmware, you can't feed the dog and it will trigger a WDT reset ? Have you experienced the same with our example ? If you test with your code , could you edit your question and attach the code ?
This is my flow .
main(){
gpio_init();
peripheral_init(); // here it reboots everytime if I do a flash and it works after a wdt reset
timers_init()'
watch_dog_init();
while(1){
feed();
do_something();
}
I made sure reset is because of wdt by reading RESETREAS register.
@Thangaraj: What do you have inside peripheral_init() ?
How could the WDT reboots the system when it has not been initialized and started ??
Inside peripheral init I have SPI UART I2C inits , display and other sensor inits too .. When I do Hardreset I mean remove my battery and connect again WDT is not rebooting, When I do flash from IDE , This time its a softreset and the previous WDT configuration remain same and the board reboots ..
Ok, I see. Initialize the peripheral can take too much time and without being feed the dog will reset the board. If you want to avoid that, I would suggest to do an erase all on your board, before you flash the new firmware. This is to avoid the WDT from running and reset the board.