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

Configure Flash Programmer Tool (Windows)

This section describes how to configure the SmartRF Flash Programmer tool for the Eclipse environment on Windows. The Flash programmer tool is used to load a generated binary image to the target before debugging.

  1. Start SmartRF Flash Programmer 2 GUI application (installation is described in Section 4.8).
  2. Start command line by clicking the tools symbol in the top right corner of the GUI.
  3. Make sure the hardware is connected on the USB and type srfprog –ls all in the command line to detect the connected hardware. If there is one SmartRF EB board connected on USB the output will be similar to the output shown in Figure 14.
  4. connected_devices_swra446.gifFigure 14. Connected Devices
  5. Write down the ID of the detected EB board (in the above example it is XDS-06EB12100376A).
  6. In Eclipse, navigate to Run → External Tools → External Tools Configurations.
  7. Right click on 'Program' in the left side panel and select 'New' to create a new Tools configuration.
  8. Fill in the fields 'Name', 'Location' and 'Arguments' as shown in Figure 15.
    1. Location should be set to the directory where the SmartRF Flash programmer 2 was installed. The location below is correct when default installation directory is used.
    2. In the Arguments field, type in the following code:
    3. -t soc(XDS-06EB12100376A, CC2650) -e all -p epfw(0) -v rb -f "${project_loc:blink_led}\..\..\bin\gcc\blink_led.bin" -a 0x0

      Make sure to use the same XDS ID number as noted in step 4.

      What the command means is:
      -t: specified target
      -e all: Erase all pages
      -p epfw(0): program, but exclude pages filled with 0x00
      -v rb: verify using readback
      -f: file to program
      -a 0x0: start address is 0x00

  9. flash_programming_configuration_swra446.gifFigure 15. Flash Programming Configuration
  10. If you have several projects in your workspace, select the 'Build' tab, and choose to build 'The project containing the selected resource', instead of building the complete workspace (see Figure 16).
  11. flash_programming_configuration_2_swra446.gifFigure 16. Flash Programming Configuration
  12. Press 'Apply'.
  13. Each EB has its own ID, so if you change to another SmartRF EB board, repeat step 1 to 4 and change the ID used in the 'Arguments' field.