-
Bug
-
Resolution: Unresolved
-
Medium
-
SimpleLink CC13x2-26x2 SDK BLE5 Stack
-
BLE_AGAMA-3381
-
BLE Stack BLE5-2.2.1 RC12
-
BLE Stack BLE5-2.2.x
-
CC26X2R1
SDK: simplelink_cc13x2_26x2_sdk_5_10_00_48
Device: CC2642R
Reproducibility: 100%
Steps to reproduce:
- 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]
Debugging findings: 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.
Suggested change: In ble_Release.xscfg change the line
var HEAPMGR_CONFIG = 0x02;
in
var HEAPMGR_CONFIG = 0x80;
Note: the issue only occurs with IAR with the debug target. It does not occur with CCS.