Hello,
I have a secure bootloader and an application on nRF52840 with SD 15.2.
I try to add watchdog support in application based on watchdog exemple but if i remove feed, it not resets…
Do someone have an idea please ?
Thank you.
Hello,
I have a secure bootloader and an application on nRF52840 with SD 15.2.
I try to add watchdog support in application based on watchdog exemple but if i remove feed, it not resets…
Do someone have an idea please ?
Thank you.
Fabien Comte I have used the Watchdog in more than one application and I can assure you it definately resets the chip. Can you share some of the WD init code?
Thanks
Sorry my title have several senses. I am sure that it works but not in my case :-)
nrf_drv_wdt_channel_id m_channel_id; void wdt_event_handler(void) { } int main(void) { // ... //BSP configuration for button support: button pushing will feed the dog. uint32_t err_code = nrf_drv_clock_init(); APP_ERROR_CHECK(err_code); nrf_drv_clock_lfclk_request(NULL); //Configure WDT. nrf_drv_wdt_config_t config = NRF_DRV_WDT_DEAFULT_CONFIG; uint32_t err_code = nrf_drv_wdt_init(&config, wdt_event_handler); APP_ERROR_CHECK(err_code); err_code = nrf_drv_wdt_channel_alloc(&m_channel_id); APP_ERROR_CHECK(err_code); nrf_drv_wdt_enable(); nrf_drv_wdt_channel_feed(m_channel_id); ble_stack_init(); while (1) { //nrf_drv_wdt_channel_feed(m_channel_id); // commented to expect reset } // ... }
Some quick questions:
Best regards,
Kenneth
Some quick questions:
Best regards,
Kenneth
Hello Kenneth and Darren,
Kenneth answers
- SDK's example looks without SD and probably no bootloaded too.
- A LED that blink on startup.
- Yes for reload. I wanted 15 s so i tried 15000 and 15 x 32768 without success.
- Hard to say, it's in a fanstel module. Can I read any register to know ?
Thank you for your help.
Darren answers
- For RTT but I also tried without.
- I do a test with a basic loop with GPIO toggle without any success too.
Thank you both for your helps
I found, my hex file was not updated on each build (looks like if it was locked) and my tries were useless (same application each time). It works now. Thank you for your help.