Assertions problem in nrfx driver

Hi,

I do not understand why assertion is not thrown when nrfx_saadc_init method is called with NULL event handler.  For example: 

err_code = nrf_drv_saadc_init(&default_config, NULL);

This just happen in the program with the Softdevice. If I use the template without the Softdevice the assertion is thrown. Is it possible that the template with Softdevice does not throw assertion by default?

Parents
  • I got this assertion if the software without softdevice is used. This assertion is expected because the event handler is null. I am wondering why I do not get the same assertion in my other program where I have the same code together with softdevice.

     <error> app: ASSERTION FAILED at C:\Users\Samo\Documents\nRF52_SDK\modules\nrfx\drivers\src\nrfx_saadc.c:215

Reply
  • I got this assertion if the software without softdevice is used. This assertion is expected because the event handler is null. I am wondering why I do not get the same assertion in my other program where I have the same code together with softdevice.

     <error> app: ASSERTION FAILED at C:\Users\Samo\Documents\nRF52_SDK\modules\nrfx\drivers\src\nrfx_saadc.c:215

Children
Related