This application report describes how to set up an open source software-based development environment for the SimpleLink CC26xx and CC13xx wireless MCUs using Eclipse as integrated development environment (IDE).
Project collateral and source code discussed in this application report can be downloaded from the following URL: http://www.ti.com/lit/zip/swra446.
SimpleLink, Code Composer Studio, SmartRF are trademarks of Texas Instruments.
ARM, Cortex are registered trademarks of ARM Limited.
Linux Mint is a trademark of Linux Mark Institute.
Linux is a registered trademark of Linux Torvalds in the U.S. and other countries.
Windows is a registered trademark of Microsoft Corporation in the United States and.
All other trademarks are the property of their respective owners.
The SimpleLink CC26xx and CC13xx wireless MCUs are optimized for ultra-low power, while providing fast and capable MCU systems to enable short processing times and high integration. The combination of an up-to 48-MHz ARM®Cortex®-M3 processing core, Flash memory, and a wide selection of peripherals makes the CC26xx/CC13xx device family ideal for single-chip implementation or network processor implementations of lower power RF nodes. For more information about the CC26xx/CC13xx family, see [1].
This document describes which software packages are necessary, and provides installation and configuration instructions for each. It also describes how to use this tool chain setup to debug a software example for a SimpleLink CC26xx device.
Section 2 and Section 3 list the software packages and hardware required for this tool chain setup. Installation procedures for the software packages are provided in Section 4. The next sections describe how to use the tool chain to build, program and debug a software example. Section 5 describes the process of building the project. Section 6 describes how to load the binary image to target and Section 7 describes how to debug the program. Section A gives a more detailed description of the makefile used to build the example project, while Section B gives a description of the linker and startup file used in the example project.
This setup has been tested on a Windows® 7 and on a Linux Mint™ machine.
CCS | Code Composer Studio™ |
CDT | C/C++ Development Tooling |
EB | Evaluation Board |
EM | Evaluation Module |
GCC | The GNU Compiler Collection |
GDB | The GNU Project Debugger |
IDE | Integrated Development Environment |
JRE | Java Runtime Environment |
This tools setup has been tested on Windows 7 and on Linux Mint 12. Most of the setup instructions will be identical for these platforms. It is noted in the text in the cases where the instructions differ on Linux®.
The following hardware pieces are required:
The SmartRF06EB has an integrated XDS100v3 emulator. For more information about the hardware, see [2].
This section describes the software packages that are required for going through this application report. Tools components, other than the below packages, might be used as well, for example, newer versions of the tools that have become available after this document was written. The below packages and versions are tested together during the writing of this document.
http://java.com/en/download/index.jsp
http://archive.eclipse.org/eclipse/downloads/drops4/R-4.4.1-201409250400/
http://processors.wiki.ti.com/index.php/XDS_Emulation_Software_Package
http://www.ti.com/tool/flash-programmer
Download and installation instructions for each software package are provided in Section 4.
For instructions on how to configure the hardware, see [2].
The Eclipse IDE is dependent on the Java Runtime Environment (JRE) being installed on the machine. Note that both JRE and Eclipse must be downloaded for the same platform (the 64-bit version of Eclipse requires the 64-bit version of JRE). Make sure JRE is installed before performing installation of the Eclipse IDE. If not, it can be downloaded from http://java.com/en/download/index.jsp.
Follow these instructions to install Eclipse and CDT on a Windows platform.
The following instructions describe how to install the CDT plugins:
Follow these instructions to install Eclipse and CDT on a Linux platform.
-vm
<path to your JRE installation>/bin/java
The following instructions describe how to install the CDT plugins:
An alternative is to download the CDT manually from http://www.eclipse.org/cdt/downloads.php. Choose the archive file called cdt-x.x.x.zip. Select Add → Archive… and browse to your downloaded archive file. Name it CDT and click OK (see Figure 5).
GNU Tools for ARM Embedded Processors is a free package that includes the GNU compiler and linker tools as well as the GNU debugger. Perform the following steps for Windows installation:
arm-none-eabi-gcc --version
The expected output is shown in Figure 6. If the arm-none-eabi-gcc program is not found, check that the PATH variable is correctly set.
More information about this package can be found in [3].
Perform the following steps for the Linux installation of GNU Tools for ARM Embedded Processors:
$ cd <install_dir> && tar xjf gcc-arm-none-eabi-*-yyyymmdd-
linux.tar.bz2
$ export PATH=$PATH:<install_dir>/gcc-arm-none-eabi-*/bin
$ arm-none-eabi-gcc –v
More information about this package can be found in [3].
If your development platform is Windows, an additional command line program, ‘make’, is required by the Eclipse external builder. One choice is to download the MinGW tool. Perform the following steps for installation:
The following two steps are necessary only for Windows:
This includes drivers for the XDS emulators and the GDB server.
The following two steps describe the installation of the Flash programmer tool for Windows: