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

SDK15 DFU and WatchDog issue

Hi, I have developed a custom board with NRF52840. I'm using the Secure BLE DFU bootloader from SDK15, but I have many troubles because my application has WatchDog enabled, and the DFU fails very often.
I also tried my application without WatchDog, and DFU works well.
I need to have WatchDog enabled in my application, then have you any suggests and/or solutions to solve this issue?
Many thanks for help

A. Barbieri - Como Italy

Parents
  • Hi Sigurd

    I'm using SDK15.0, the CRV is 2000 (#define NRFX_WDT_CONFIG_RELOAD_VALUE 2000)

    Here above the source code I have on my application (copied from peripheral example on SDK)

    #if WDT_DFU_ENABLED
    //Configure WDT.
    nrf_drv_wdt_config_t config = NRF_DRV_WDT_DEAFULT_CONFIG;
    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();
    #endif

Reply
  • Hi Sigurd

    I'm using SDK15.0, the CRV is 2000 (#define NRFX_WDT_CONFIG_RELOAD_VALUE 2000)

    Here above the source code I have on my application (copied from peripheral example on SDK)

    #if WDT_DFU_ENABLED
    //Configure WDT.
    nrf_drv_wdt_config_t config = NRF_DRV_WDT_DEAFULT_CONFIG;
    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();
    #endif

Children
No Data
Related