Hi,
I tried to include HCI_EXT_HaltDuringRfCmd(HCI_EXT_HALT_DURING_RF_DISABLE); in my application init in my peripheral observer project. When I did that the program would stop running after a short time. LED's which are regulated by a PWM signal stopped shining, there's no advertising or scanning going on anymore, so I guess the system completely hung up.
So for test purposes I downloaded the peripheralObserver project anew and excluded any functionality but advertising and scanning and Timer 3 and 4 for the LED's to see when they stop shining so I know the system hung up.
It's the same with this one. If the device is only advertising or scanning theres no problem. As soon as I activate both, and HCI_EXT_HALT_DURING_RF_DISABLE is set the system hangs up after a short period. I also found out that if there's no advertises to scan, the device won't crash.
The controller is a CC2540. Adjusting scan window and interval only delay the system crash.
So is there a way to fix this and still use HCI_EXT_HALT_DURING_RF_DISABLE? Or is this setup working for somebody else?
Thanks in advance
Robin