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.

CC2650MODA: How to use BLE module with non-TI microcontroller?

Part Number: CC2650MODA

I am trying to port the CC2650MODA module to be used with a third party microcontroller (preferably baremetal). The microcontroller is on a Eclipse-based IDE. Please advise on how I can proceed. 

  • Hello,

    This likely depends first on your BLE needs. However, I can tell you that we do not have any out of the box examples for interfacing a bare metal metal 3rd party micro to this device. Based on your needs and your willingness to modify code on the CC2650MODA, I have the following advice:

    simple_np (on CC2650MOD BoosterPack out of the box): No CC26xx programming required. Just implement the required interface which is documented in the Simple Network Processor User's Guide in the docs folder of the BLE SDK. Limitations is peripheral only, other limitations are listed in the aforementioned guide.

    host_test: supports central role and is configurable. However, if you wish to be a GATT server you will need to program the CC26xx to have your GATT services embedded and expose HCI vendor specific APIs to set/get the values of these services if necessary. The interface to this device is described in the HCI vendor specific guide which is also bundled in the SDK

    simple_peripheral/central: Also requires programming on the CC26xx. This approach is less configurable than host test, but also more limited. In this approach you add a transport layer (UART, SPI) to simple peripheral or simple central and define a basic "command interface" between the two. Commands can be of any format and are up to you to define.

    Hopefully this helps!
  • Thanks for the detailed response, this gets me to think more.

    I was planning to use it as a BLE Peripheral communicating thru UART and the Central is a cellphone. I had tried the MSP432 temperature sensor demo (I believe using SAP) in TI CCS successfully, but is having a hard time porting this firmware to a KDS IDE environment (constraint).

    For RTOS, I am open on using FreeRTOS on the KDS side if it is required to support the CC2650MODA interfaces.
  • Hello,

    It sounds like SNP + SAP is what you are looking for. The latest versions of the SAP library have been updated to support POSIX, etc.
    Can you elaborate on your issues integrating with KDS IDE? The SAP library should be platform independent. The NPI library however, will need to have the TI UART drivers swapped with the NXP drivers, then the NPI library should be rebuilt.
  • Hi Sean,

    I started porting the simple_ap.c file(example code) for the MSP432 thermometer and most of the dependencies, if possible. I pulled in the /sap, /npi, /Profile, /sbl but I noticed that the deeper the dependencies get, it is going to the TI internals (peripherals, board, RTOS, etc). I wish I can just run baremetal to simplify the process (before enabling a FreeRTOS later on if needed).

    To simplify things, would be nice if there is a minimal /sap driver that interface to UART (that doesn't go deep into dependencies). :-)


    Thanks,
    Jonathan
  • Hi Jonathan,

    The SAP/NPI libraries should be RTOS and board independent with the exception of the UART driver in NPI. You will need to replace this with the driver for the board you are using.

    The sample applications may require some porting.