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

Changes to nrf_drv_wdt_init in SDK 12.3.0

While migrating from 12.1 to 12.3 I noticed changes to nrf_drv_wdt_init; specifially the removal of uint64_t casts. Why were these removed?

We use a 5 minute reload value, which doesn't work with the 12.3 changes.

Parents Reply
  • Yes, in general you should always stick to the compatibility matrixes on the infocenter (I noticed though, that they have not been updated to include SDK 12.3 and I'll get on that). However, in this case I think it is safe to make an exception with the WDT driver. If you compare the drivers in SDK 12.3 and SDK 13.1 you can see that there are just minor changes:

    1. The uint64_t cast bug is fixed.
    2. Some logging functions have been changed.

    It should be safe to just copy paste the nrf_drv_wdt.c and .h files from 12.3 to 13.1 and change the logging functions if you run into compiler errors.

Children
No Data
Related