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

Start and stop advertising with DFU service

Hi Support, 

I am using

I have my own customized board with nrf52840 . i am using SDK v15.0.0 with Softdevice verison v6.0.0 

I am advertising with DFU and NUS services with secure Bootloader in it. Now, I am trying to disable softdevice on a button press. On disabling, it goes to the handler buttonless_dfu_sdh_state_observer(nrf_sdh_state_evt_t state, void * p_context)  and make a power management shutdown to system off. This makes all the peripherals like interrupt RTC, SPI, I2C transactions to OFF state and i coudn't reenable the softdevice again. 

I noted that, If i remove the DFU service initialization. I can start, stop and restart advertising on ButtonPress with NUS service alone. 

Thanks

Prakash

Related