Code Generation Tools XML Processing Scripts Plug-in for CCS

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

Introduction

The Code Generation Tools XML Processing Scripts Plug-in for CCS (CG_XML_CCS for short) is an addition to the CCSv4 menu and toolbar that allows developers to use the Code Generation Tools XML Processing Scripts directly from the graphical interface, instead of running them from a DOS Command Prompt.

The Code Generation Tools XML Processing Scripts (CG_XML for short) is a collection of productivity tools that perform post processing of the XML output of the TI's Code Generation Tools, in order to obtain useful information from different types of files such as libraries (.lib), executable binaries (.out, .obj), linker command files (.cmd), etc.

Installation and Requirements

Requirements

Installation

The installer asks for the location of the CG_XML Processing Scripts installation directory. Once this is provided, it will use this information to place the bin subdirectory into the system PATH
The installer will also create the environment variable CGXMLCCS_INSTALL_DIR that points to the installation.
Note: if updating from a previous release, be sure to remove the existing Cgxml_config project from the workspace before importing the newer one.
Just like importing an ordinary project, go to menu Project --> Import Existing CCS/CCE Eclipse Project or go to menu File --> Import --> CCS : Existing CCS/CCE Eclipse Project
Click on the button Browse... at the right of the box Select root directory and browse to the directory where the plug-in was installed.
By default the project is located at C:\Program Files\Texas Instruments\cg_xml_ccs\Cgxml_config

CCSv4 CGXMLCCS Import Project.JPG

Usage

Note: if you want to check which specific build configuration (Debug, Release) the script is running on, make sure the project is set as Active.

CCSv4 CGXMLCCS Favorites.JPG

CCSv4 CGXMLCCS tool options.JPG

If needed, the highlighted project will be automatically built to generate the .out file.
The output can be copied to the clipboard. Simply right-click on the console window and Select All, followed by Copy <Ctrl-C> and Paste <Ctrl-V>
For some utilities, the output may be too large to fit in the console window. In such cases, right-click on the window, go to Preferences and uncheck Limit Console Output.

 -- Finished.  
    Files were written to the project's Active Build Configuration 
    output directory (Debug, Release or a custom directory).

Help

Online help is automatically installed and can be accessed by going to menu Help --> Help Contents --> Cgxml Tools for CCS

Help for each CG_XML script is located in the subtopic CG_XML Processing Scripts Reference.

Plug-in Limitations

This is due to the Eclipse way of having interacting with different elements on the workbench. The focus defines several internal variables used by the plug-in.
If a valid project is not in focus, the console will show in the console:

 -- Error: 
    Are you sure the C/C++ Projects tab is selected 
    and a project is highlighed?

Usually running one of the utilities for the first time is enough to fix this:
  • Highlight a project on the C/C++ Projects;
  • Go to Cgxml Tools... and click on the plus sign close to Programs to select a tool - sectti is a good one since it does not require additional parameters.

CCSv4 CGXMLCCS Empty Toolbar.JPG

Sources

The plug-in source code packed in .JAR format is located in the two source files below:

  • Cg_xml_ccs plug-in: download here
  • Help plug-in: download here
Note 1: for some inexplicable reason Internet Explorer arbitrarily renames these files as .zip. Be sure to rename these back to .jar before trying to open them in Eclipse.
Note 2: these files are meant to be opened in Eclipse, not CCSv4!

To probe further

No application can really be considered finished, therefore some additional features are yet to be implemented:

E2e.jpg For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Code Generation Tools XML Processing Scripts Plug-in for CCS here.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox