This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541: CC2541

Part Number: CC2541
Other Parts Discussed in Thread: CC-DEBUGGER, CC2540

Hello!

I have CC-debugger and couple CC2541 modules:

 

I'm trying to run BLE stack examples (BLE-CC254x-1.4.2.2) in IAR IDE.

But I dont see any BLE with sniffers (I tried android phone and CC2450 dongle).

What am I missing?

Regards

  • Hi Ambiencekyiv,

    What project did you run? Can you provide some more details on what exactly you did?

    Regards,
    Fredrik
  • Hello,

    I have connected this module to cc-debugger.

    SmartRF Studio 7 detected this module correctly, so I suppose there is no issues with connections:

    After that I tried to run next projects (all from BLE stack) in IAR:

    1) ...\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2540DB (for some reason CC2541DB loads as empty project, so I tried 2540 just for case).

    2) ...\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEObserver (both 2540 and 2541)

    3) ...\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEBroadcaster (both 2540 and 2541)

    4) ...\BLE-CC254x-1.4.2.2\Projects\ble\SensorTag

    5) ...\BLE-CC254x-1.4.2.2\Projects\ble\HeartRate (both 2540 and 2541)

    6) ...\BLE-CC254x-1.4.2.2\Projects\ble\Thermometer (both 2540 and 2541)

    In all this cases I didnt see any BLE devices appeared.

    Here is way how did I do this in IAR (SensorTag project as example) :

    1) select targer as 2541 where possible:

    2) Rebuild all:

    3) download and dubug:

    4) after project have been downloaded - "GO":

    after that I'm trying to scan but I see nothing.

    When I breaking execution program  it stops at this function:

    void halSetSleepMode(void)
    {
      // WARNING: DO NOT ADD ANY ADDITIONAL CODE; THIS IS A FIXED SIZED SEGMENT!
      PCON = halSleepPconValue;
      // Disallow waking ISR from running in order to give the highest priority to LL_PowerOnReq().
      HAL_DISABLE_INTERRUPTS();
    }

    In similar way I have tested all examples from list above. 

    Maybe I'm missing something?

    Regards

  • Did you try controlling the device from SmartRF Studio? Does that work?

    You should use the SimplePeripheral example for CC2541. CC2540 does not have the same radio, so it will not work.
  • Hi Fredrik! 

    Thank you for suggestion. 

    I have tried to run 2 modules at the same time controlled by smartRF studio.

    Both of them are working fine in this mode:

    But when I'm trying to scan SimpleBLEPeripheral example, I see nothing in receiver section.

    Am I missing something?

    How can I detect (I want to see it at least to be sure that I did everything correct) CC2541 module by phone, not by running different sniffers?

    Regards 

  • You should set RX to one of the following channels.

    Advertising channel: 37 (2402MHz), 38 (2426 MHz) and 39 (2480 MHz)
  • I downloaded C:\ti\BLE-CC254x-1.4.2.2\Accessories\HexFiles\CC2541_SmartRF_SimpleBLEPeripheral.hex to a CC2541 board on my desk, and I am able to connect to it with LightBlue on my iPhone.