Skip to content
Snippets Groups Projects

BLE Code and PCB Files for the TI CC2640R2F Chip

BLE code for Steve's Project to transmit ADC data up to 5ksps via the CC2640r2f BLE chip

Requirments

  • Code Composer Studio (CCS) (10.4.00)
  • Sensor Controller Studio (SCS) (2.8.0.170) (Patches 1,2,3,4,5)
  • BLE Stack (version 5.10.00.02)
  • TI Compiler Version v18.12.2 LTS and XDC Tools 3.51.3.28 (Should be installed during the BLE stack installation)
  • MATLAB R2023b
  • KiCad v7.0 and above

Software

Current features:

  • Continous sampling of the ADC Channels and transmitting the data via bluetooth
  • BLE data packets up to 4 channels (75 Bytes in size) - 12bits per datapoint
  • Up to 8 Channels of ADC supported

Future Work and Possible Improvements:

  • Modifying and Testing on the 5x5mm IC.
  • Tune ADC sample time to match sensors used
  • Scale for lower sample rate with higher channels

Configuration

  • To Configure the project there are multiple files that need to be changed. If the user wishes to change the sample frequency then its a multi step process, which requires modifying the files in the CCS project alongside the SCS Code to ensure that the timings are correct.

TODO: Add the rest of the steps to configure the project.

Build Steps

  1. Clone the repository in a directory as this will be the workspace for the CCS Studio.

  2. Install CCS Studio, Sensor Controller Studio, and the BLE Stack. Ensure that the CCS studio installation includes the cc26xx family (Seen Below).

  3. Open the repository folder ble-soton as a workspace in CCS and import the appropriate ble project needed by selecting the projectName_app as seen in the image below. If for example the ecgShirt is slected, both the app and the stack must be imported for a successful build. To do that make sure that the Automatically import referenced projects found in same search-directory checkbox is ticked.

  4. Change the appropriate compiler to be TI v18.12.2.LTS in project properties. Right Click projectName_app folder > Select Properties. If the version is not available please find the instructions on how to install it. This must be done per CCS Studio installation as it is not workspace specific.

  5. If there are no other changes done then the build project button can be pressed and the Flash button can be used to deploy on the device.

Installing Different Compilers and Missing Tools

  1. Go to Help > Install Code Generation Compiler Tools

  2. Uncheck the Show only the latest version of available software checkbox.

  3. Finally Select from the TI Compiler Updates the version needed.