nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

sd_softdevice_disable does not return

Hi dear reader

I've read several threads on this issue, but none of them could help resolve my problem.

I've an application which currently is only starting some advertising for a period, then stops it and then tries to disable the soft device. But the call to

sd_softdevice_disable()

never returns.

Starting the softdevice and also the advertising is working.

Things from other threads:

- I'm not using the clock driver

- I'm disabling the softdevice via: nrf_sdh_disable_request();

- I'm stopping the advertising and BLE connection-param beforehand and then wait 500ms (just to be sure)

- when I'm debugging and set the breakpoint to nrf_sdh.c:260 it is reached, when setting the breakpoint to line 261 its never reached

I'm using SDK version 17.1.0 and the softdevice: s140 (7.2.0)

These are the values of the core registers:

R0:   0x0
R1:   0x0
R2:   0x80000000
R3:   0x4001f014
R4:   0x20000044
R5:   0x40000000
R6:   0x0
R7:   0x0
R8:   0x0
R9:   0x0
R10:  0x0
R11:  0x0
R12:  0x0
SP:   0x20019a80
LR:   0xc12d
PC:   0xc124
xPSR: 0x2100000b
MSP:  0x20019a80
PSP:  0x0

Any help would be much appreciated.

Best regards

David

Related