Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Runtime test of the SoftDevice

Hi,

As part of my watchdog flow, I'd like to test the liveness of the softdevice and the SDH during operation.

Is there a built in way to trigger the softdevice to post some internal event through the SDH and then capture it somehow?
I couldn't find any documentation for such.

I'm using SDK14.0 with S132 v5.0.

I'll appreciate the help.

Parents
  • Hi,

    If something happens to the SoftDevice, so that it’s unable to continue to operate it will assert, and you will get notified about this in the fault handler you used when you enabled the SoftDevice with the function sd_softdevice_enable(p_clock_lf_cfg, fault_handler). The default behavior, if the preprocessor define DEBUG is not defined, is to do a reset. Take a look at the function app_error_fault_handler() in the file app_error_weak.c. See this post for more information. I also recommend taking a look at this blog post about error handling. If you want to test if the SoftDevice is enabled, you can use the sd_softdevice_is_enabled() function. I recommend putting the watchdog in main loop (that will be returned everytime an event wakes the CPU up) and put the WDT to sleep when the CPU is sleeping is a good choice.

  • Is what you're saying enough to understand whether the SDH is in a safe state and that it's not hanging? That's what I want to check

Reply Children
Related