This directory contains example platform drivers for the Texas Instruments CC2538.
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.
Download and install the GNU toolchain for ARM Cortex-M.
$ cd <path-to-openthread> $ ./bootstrap $ make -f examples/Makefile-cc2538
After a successful build, the elf
files are found in <path-to-openthread>/output/bin
. You can convert them to bin
files using arm-none-eabi-objcopy
:
$ arm-none-eabi-objcopy -O binary arm-none-eabi-ot-cli arm-none-eabi-ot-cli.bin
Compiled binaries may be flashed onto the CC2538 using the Serial Bootloader Interface or JTAG interface. The cc2538-bsl.py script provides a convenient method for flashing a CC2538 via the UART.
/dev/ttyUSB1
(serial port settings: 115200 8-N-1).help
for list of commands.> 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