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.

CC2650DK with CC26xx Library

Other Parts Discussed in Thread: CC2640, SYSBIOS

Hi, I have some questions about building BLE Firmware with CC2650DK-7ID.

There is a library called 'CC26xx Driver Library' and I was trying to build some programs with it.(Also with technical reference manual)

Reason I try to build with library is because I will design some circuit based on CC2640 chip with Orcad and going to build some programs on it and I'm now testing some functions I'm going to use in the future.

I built peripheral programs using 'CC26xx Driver Library', like GPIO control, timer control and so on.

However, I'm now struggling with building BLE program.

In 'CC26xx Driver Library', there are RF Core, and RF Core Command API.

There are RF related functions in RF Core section and there are structures in RF Core Command API section. However, I couldn't use structures in RF Core Command API section with RF Core functions. According to tech. ref. manual, I have to send doorbell and there is a function called RFCDoorbellSendTo in RF Core section. The function's parameter is pOp so I don't know how to use structures with this RFCDoorbellSendTo function.

Also, I want to know BLE initialization sequence with functions in 'CC26xx Driver Library'. Sequence below is my guess.

1. turn on OSC ( AUX )

2. setup CMD_START_RAT ( in Common_cmd )

3. setup CMD_RADIO_SETUP ( in Common_cmd )

4. setup CMD_BLE_MASTER ( in Ble_cmd )

I really need some help.

  • Hi, I have some questions about building BLE Firmware with CC2650DK-7ID.

    There is a library called 'CC26xx Driver Library' and I was trying to build some programs with it.(Also with technical reference manual)


    Reason I try to build with library is because I will design some circuit based on CC2640 chip with Orcad and going to build some programs on it and I'm now testing some functions I'm going to use in the future.


    I built peripheral programs using 'CC26xx Driver Library', like GPIO control, timer control and so on.


    However, I'm now struggling with building BLE program.


    In 'CC26xx Driver Library', there are RF Core, and RF Core Command API.


    There are RF related functions in RF Core section and there are structures in RF Core Command API section. However, I couldn't use structures in RF Core Command API section with RF Core functions. According to tech. ref. manual, I have to send doorbell and there is a function called RFCDoorbellSendTo in RF Core section. The function's parameter is pOp so I don't know how to use structures with this RFCDoorbellSendTo function.


    Also, I want to know BLE initialization sequence with functions in 'CC26xx Driver Library'. Sequence below is my guess.


    1. turn on OSC ( AUX )


    2. setup CMD_START_RAT ( in Common_cmd )


    3. setup CMD_RADIO_SETUP ( in Common_cmd )


    4. setup CMD_BLE_MASTER ( in Ble_cmd )

    I really need some help.

  • Hello,

    Which library are you using? If you are using TI-RTOS 2.18+, the RF Driver is included in the TI-RTOS. I would suggest using that as a starting point.

    Note that doing BLE connections with the radio commands requires a firm understanding of the BLE protocol, so we suggest using the BLE Stack which does this for you.

    Best wishes
  • Thanks for replying JXS.


    I'm using 'cc26xxware_2_24_02_17202'.
    I'm now using IAR EWARM 7.7ver and when I tried to complie cc2650em example named  'simple_central' in simplelink ( ble_sdk_2_02_00_31 ) I got some errors such as
    Error[Li005]: no definition for "ti_sysbios_BIOS_start__E" [referenced from C:\ti\simplelink\ble_sdk_2_02_00_31\examples\cc2650em\simple_central\iar\app\FlashROM\Obj\main.o]
    Error[Li005]: no definition for "driverlib_release_0_45566" [referenced from C:\ti\simplelink\ble_sdk_2_02_00_31\examples\cc2650em\simple_central\iar\app\FlashROM\Obj\PINCC26XX.o]
    and so on ( 78 errors ).
    Is it impossible to make firmware program with driver library source in low level?
    According to tech ref manual, CMD_RADIO_SETUP should be setup as ble mode before setting up BLE command. I was able to setup CMD_START_RAT and CMD_RADIO_SETUP with the changes in RF_DRBELL register , but DoorbellSendto function stops when I tried to setup CMD_BLE_MASTER I used memcpy function.
    I know that ti's examples are good, but my question is how to make ble command with driver library.


    Thanks.