SWRA446 February   2015 CC1310 , CC1310 , CC2620 , CC2620 , CC2630 , CC2630 , CC2640 , CC2640 , CC2640R2F , CC2640R2F , CC2640R2F-Q1 , CC2640R2F-Q1 , CC2650 , CC2650 , CC2650MODA , CC2650MODA

 

  1.   Using GCC/GDB With SimpleLink CC26xx/CC13xx
    1.     Trademarks
    2. 1 Introduction
    3. 2 Prerequisites
      1. 2.1 Platforms
      2. 2.2 Hardware
      3. 2.3 Software
    4. 3 Hardware Setup
    5. 4 Software Installation Instructions
      1. 4.1 Java Runtime Environment
      2. 4.2 Eclipse IDE (Windows)
      3. 4.3 Eclipse IDE (Linux)
      4. 4.4 GNU Toolchain (Windows)
      5. 4.5 GNU Toolchain (Linux)
      6. 4.6 Build Tools for Windows
      7. 4.7 TI Emupack and GDB Server (Windows)
      8. 4.8 Flash Programmer (Windows)
      9. 4.9 Flash Programmer (Linux)
    6. 5 Build the Software Example
      1. 5.1 Import Example Project Into the IDE
      2. 5.2 Build the Software Example
    7. 6 Load Binary Image to Target
      1. 6.1 Configure Flash Programmer Tool (Windows)
      2. 6.2 Configure Flash Programmer Tool (Linux)
      3. 6.3 Load the Image to Target (Windows)
      4. 6.4 Load the Image to Target (Linux)
    8. 7 Debug the Software Example
      1. 7.1 Launch the GDB Server (Windows)
      2. 7.2 Launch the GDB Server (Linux)
      3. 7.3 Configure Eclipse Debugger
      4. 7.4 Running the Software Example From Debugger
    9. 8 References
  2. AMakefile
    1. A.1 Makedefs
    2. A.2 Makefile
  3. BLinker and Startup Files
    1. B.1 Linker File
    2. B.2 Startup Files

Introduction

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.

Table 1. Abbreviations

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