SimpleLink CC13x2-26x2 SDK BLE5 Stack
BLE Stack BLE5-2.2.1 RC12
BLE Stack BLE5-2.2.x
- import the out of the box simple_peripheral example in IAR
- change build target to "Debug"
- build and flash the device
- using a phone, try to pair with the device
The device will get locked after the stack raises a “HCI_BLE_HARDWARE_ERROR_EVENT” with ercd=0x85[HW_FAIL_UNEXPECTED_RF_STATUS]
The issue disappears when modifying the Heap Configuration. By default, the debug target uses ble_Release.xscfg which sets HEAPMGR_CONFIG to 0x02. By setting HEAPMGR_CONFIG to 0x80, the issue solves.
In ble_Release.xscfg change the line
var HEAPMGR_CONFIG = 0x02;
var HEAPMGR_CONFIG = 0x80;
: the issue only occurs with IAR with the debug target. It does occur with CCS.