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.

Create a custom cc2640 project

Other Parts Discussed in Thread: CC2640, BLE-STACK

Hello,

I'm trying to build a custom project for a custom board that we are designing around CC2640.

I'd like to create it clean but have some difficulties to know how to proceed.

I started by creating a copy of the SensorTag project, which appeared to be a very good basis for that.

However, when following what's done in the CCS project, I found, for example, that the memory driver was referenced from C:\ti\simplelink\ble_cc26xx_2_01_00_44423 \Projects\ble\SensorTag\CC26xx\Source\Application\Board_patch\Devices, but several other versions exist: one in Components\bsp\sensortag_cc26xx\drivers\source, one in Projects\ble\common\cc26xx\boards\sensor_tag_cc26xx\resources and a last one in C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Components\bsp\sensortag_cc26xx\drivers\source, very similar to the one in the drivers/source folder. They all are different, some referencing board.h while the older ones making reference to BSP.

This is very confusing.

Which one should be taken? How should I proceed to build a solid, stable and reliable project?

Many thanks for any advice or suggestion!

Best regards

JYL

  • Hello,

    I would suggest looking at the simpleBLEPeripheral project and copy the referenced board file into your local source code folder and modify it there.

    For your reference, we have also made a guide on how to implement a custom service/profile on the CC2640 here. There are a few errors in the guide described here. And you possibly have to enable the “GATT_TI_UUID_128_BIT” preprocessor define. There is also a new initiative called Bluetooth Developer Studio (BDS) where you can use a GUI tool to implement custom and adopted services without having to do all the manual labor which is required in the wiki guide. Remember to install the Texas Instruments plugin to BDS.

    www.bluetooth.com/.../bluetooth-developer-studio.aspx

    developer.bluetooth.org/.../Developer-Studio-Plugins.aspx

  • Many Thanks Eirik for your prompt reply.

    I actually started by trying to port SimpleBLEPeripheral project to my custom project, but got to a dead end when trying to add custom profiles.
    This is why I decided to start from SensorTag, which was supposed to have everything I needed.
    However I got very confused when I found 4 different versions of the same driver in the BLE-Stack (and this just for the external memory, I guess this is similar for all other pieces of HW...) and did want to avoid having to carry all of that...

    I'll try to clean my copy of BLE-Stack to keep only what is strictly necessary.
    Processing carefully file by file, might work.

    Tahnks again
    BR
    JYL
  • You should use the drivers from C:\ti\simplelink\ble_cc26xx_2_01_00_44423 \Projects\ble\SensorTag\CC26xx\Source\Application\Board_patch\Devices, these are the ones the SensorTag uses. The other's are for boot loader use (non TI-RTOS) only.
  • That's crystal clear!
    Many thanks Jomar
    BR
    JYL