[EXT_EP-10440] Simple Peripheral example application spinlocks while pairing, when compiled with IAR in Debug configuration Created: 05/Jul/21  Updated: 12/Nov/24

Status: Accepted
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: TI User Assignee: TI User
Resolution: Unresolved Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: SimpleLink CC13x2-26x2 SDK BLE5 Stack
Internal ID: BLE_AGAMA-3381
Found In Release: BLE Stack BLE5-2.2.1 RC12
Fix In Release: BLE Stack BLE5-2.2.x
Affected Platform/Device: CC26X2R1

 Description   

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.

E2E thread: https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth---internal/f/bluetooth---internal-forum/1012481/cc2642r-q1-sdk5-10-simple-peripheral-sample-got-stuck-at-spinlock/3742010#3742010


Generated at Sat Dec 13 11:34:03 CST 2025 using Jira 10.3.7#10030007-sha1:a563685562f94d165eb4e158cfb2a142338d8c54.