Hi,
I have a custom board running NUS peripheral which uses the nRF52832 and a NUS central which is running on a nRF52 DK. I modified the ble_app_hrs_freertos example to use NUS. I'm using SDK 14.2.0.
When I get the DK to scan and connect to my peripheral, I continuously get disconnect event, after which the DK scans again and reconnects. This loop keeps going on. I have observed two error codes with the disconnect events:
-> Error code = 0x22 when the peripheral and central are next to each other.
-> Error code = 0x08 when the peripheral and central are within one meter distance.
I tried using nRF sniffer and didn't see any weird packets, only advertising, scan request and connection request packets. No LMP error packets or anything pointing to a disconnect being triggered from the central.
Few of my application's FreeRTOS tasks have a priority greater than the BLE task i.e. priority > 2.
Can someone point me to what my cause this issue? Is this an issue related to task priorities?
Thanks,
Gowtham