Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10440

Simple Peripheral example application spinlocks while pairing, when compiled with IAR in Debug configuration

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Medium
    • Resolution: Unresolved
    • SimpleLink CC13x2-26x2 SDK BLE5 Stack
    • BLE_AGAMA-3381
    • BLE Stack BLE5-2.2.1 RC12
    • BLE Stack BLE5-2.2.x
    • 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

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: