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

Parents
  • Hi Shimmer, 

    I think it's a bug/limitation with our implementation. So basically we will try to disable softdevice before we enter deep sleep mode (System OFF) to be able to write to GPREGRET2 retention register that the bootloader doesn't need to check CRC.

    You can remove this implementation it's not really needed in your case. 

    May I ask why you want to disable the softdevice ? If you want to change the advertising data, you can simply stop advertising and change. 

Reply
  • Hi Shimmer, 

    I think it's a bug/limitation with our implementation. So basically we will try to disable softdevice before we enter deep sleep mode (System OFF) to be able to write to GPREGRET2 retention register that the bootloader doesn't need to check CRC.

    You can remove this implementation it's not really needed in your case. 

    May I ask why you want to disable the softdevice ? If you want to change the advertising data, you can simply stop advertising and change. 

Children
Related