tree: eed49f63fec9eff6ffeedf9b54aaab35bf943498 [path history] [tgz]
  1. crypto/
  2. alarm.c
  3. cc1352_ccfg.c
  4. cc1352_radio.h
  5. cc1352_startup.c
  6. cxx_helpers.c
  7. diag.c
  8. entropy.c
  9. flash.c
  10. logging.c
  11. Makefile.am
  12. Makefile.platform.am
  13. misc.c
  14. openthread-core-cc1352-config-check.h
  15. openthread-core-cc1352-config.h
  16. platform-cc1352.h
  17. radio.c
  18. README.md
  19. system.c
  20. uart.c
examples/platforms/cc1352/README.md

OpenThread on CC1352 Example

This directory contains example platform drivers for the Texas Instruments CC1352R1.

The example platform drivers are intended to present the minimal code necessary to support OpenThread. As a result, the example platform drivers do not necessarily highlight the platform's full capabilities. Consult the SimpleLink CC26X2R1 SDK for more development option. The platform drivers were built for the CC1352R1 LAUNCHXL, usage on other boards with a cc1352r1 may require changes to the peripheral drivers.

Toolchain

Building the examples for the cc1352 requires GNU AutoConf, GNU AutoMake, Python, and the ARM gcc toolchain.

With the exception of the arm toolchain, most of these tools are installed by default on modern Posix systems. It is recommended to setup a Linux virtual machine for building on a Windows host system. For help setting up VirtualBox with Ubuntu, consult this community help wiki article.

In a Bash terminal, follow these instructions to install the GNU toolchain and other dependencies.

$ cd <path-to-openthread>
$ ./script/bootstrap

Building

In a Bash terminal, follow these instructions to build the cc1352 examples.

$ cd <path-to-openthread>
$ ./bootstrap
$ make -f examples/Makefile-cc1352

Flash Binaries

If the build completed successfully, the elf files may be found in <path-to-openthread>/output/cc1352/bin.

Flash the images with Uniflash. Make sure to deselect the binary check-box, Uniflash assumes a file without an extension is a binary file.

Interact

CLI example

  1. With a terminal client (PuTTY, minicom, etc.) open the com port associated with the cc1352 UART. The serial port settings are:
    • 115200 baud
    • 8 data bits
    • no parity bit
    • 1 stop bit
  2. Type help for a list of commands.
  3. Follow the instructions in the CLI README for instructions on setting up a network.
> help
help
channel
childtimeout
contextreusedelay
extaddr
extpanid
ipaddr
keysequence
leaderweight
masterkey
mode
netdataregister
networkidtimeout
networkname
panid
ping
prefix
releaserouterid
rloc16
route
routerupgradethreshold
scan
start
state
stop
whitelist

NCP example

Refer to the documentation in the wpantund project for build instructions and usage information.