Texas Instruments

CC2652R7

This Matter-enabled example functions as a light bulb device type, with on/off capabilities. The steps were verified on a Texas Instruments LP-CC2652R7 CC2652R7 LaunchPad™ development kit for SimpleLink™ multi-standard wireless MCU.

This example uses a test Vendor ID (VID) of 0xFFF1 and a Product ID (PID) of 0x8005.

The steps in this document were validated on macOS Ventura Version 13.3.1.

Initial setup

  1. Install TI SYSCONFIG 1.15.0: https://www.ti.com/tool/download/SYSCONFIG/1.15.0.2826
  2. Install UniFlash: https://www.ti.com/tool/download/UNIFLASH
  3. Clone and initialize the matter repo:
    git clone https://github.com/TexasInstruments/matter.git
    cd matter
    git fetch origin v1.0-ti-branch
    git checkout FETCH_HEAD
    git submodule update --init --recursive
    source ./scripts/activate.sh
    
  4. Install dependencies:
    pip install ecdsa

Build the image and flash the board

  1. Build the image for the lighting-app:
    cd ~/matter/examples/lighting-app/cc13x2x7_26x2x7
    gn gen out/debug --args="ti_sysconfig_root=\"$HOME/ti/sysconfig_1.15.0\""
    ninja -C out/debug
  2. Connect the CC2652R7 board with your computer and flash the image to the board using Uniflash:
    1. Open Texas Instruments UniFlash.
    2. Click Start.
    3. Select Settings & Utilities tab.
    4. In the Manual Erase section, select Erase entire flash (You must reconnect to the target afterwards).
    5. Click Erase Entire Flash.
    6. Select Program tab.
    7. Load the image for the Boot Image Manager (BIM):
      1. Click Browse.
      2. Navigate to ~/matter/examples/lighting-app/cc13x2x7_26x2x7/out/debug.
      3. Select chip-LP_CC2652R7-lighting-example-bim.hex.
      4. Click Open.
      5. Click Load Image.
    8. Load the image for lighting-app:
      1. Click +.
      2. Select chip-LP_CC2652R7-lighting-example.bin.
      3. Uncheck Image 1.
      4. Click Load Image.

Validate the example

  1. The device should present itself as a USB serial device on your computer. You may look it up in /dev/:
    ls -la /dev/tty*
  2. You can open the serial console with screen or minicom. For example, if the device is at /dev/tty.usbmodemL150011K1:
    screen /dev/tty.usbmodemL150011K1 115200
  3. Press the reset button located next to the USB connector to reset the system and start the lighting-app.
  4. Turn on BLE advertisement manually (needed for the device to be discovered by Google Home app (GHA)). Press and hold BTN-2 for more than one second, and you should see a message like this in serial console:
    Enabled BLE Advertisements
  5. To turn on the light, press button BTN-1.
  6. To turn off the light, press button BTN-2.
  7. If the board has been paired before, it's recommended that you factory reset it. To perform factory reset press and hold BTN-1 for more than one second.
    Clearing Thread provision
    Erasing Thread persistent info...
    System restarting

Next steps

When your Matter example has been successfully built, create a developer project.