NOTICE: The Processors Wiki will End-of-Life in December of 2020. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

Debug Configuration Initialization Scripts

From Texas Instruments Wiki
Jump to: navigation, search

Introduction[edit]

You use CCS. You want to debug execution on a deeply embedded processor in a complex SOC (system on a chip). It take multiple non-trivial steps to establish control, load, and begin execution. You would like a straightforward way to perform those steps repeatedly.

This page introduces a new method for solving this problem. It's an experiment. Depending on how it goes, this solution will be distributed for more systems, and perhaps even integrated into CCS itself.

Run a DSS Script When the Debugger Launches[edit]

DSS stands for Debug Server Scripting. It is a programming method commonly used to control CCS from the command line, typically to run regression tests. But you can also invoke DSS scripts from within CCS. This article describes one way to invoke DSS from within CCS.

The first time the debugger is launched for a project, a debug configuration is automatically created and associated with that project. It would be even more accurate to call it a debug launch configuration. But this article uses the same term as CCS: debug configuration. One of the fields in a debug configuration is the Initialization Script. This DSS script runs whenever the debugger is launched.


How to Add a Script to the Debug Configuration[edit]

The section presumes you are in the Debug perspective, and you have attempted to launch the debugger (with the green bug icon) at least once. This means a default Debug Configuration has already been created for your project. These steps describe how to add the initialization script to the Debug Configuration.

  1. Click the down arrow next to the Debug icon and select Debug Configurations
  2. The debug configuration for the current project should appear in directory tree like structure on the left, and it should be highlighted.
  3. Next to Initialization Script click either File System or Workspace. If the initialization script is stored in the project, choose Workspace. Otherwise click File System.
  4. Browse to where the script is located and select it.
  5. Click OK
  6. Click Apply
  7. Click Close


Example Scripts[edit]

These are all .zip files that contain a single .js file.

  • bbb_pru_startup.zip - For debugging code on PRU core of the AM335x device on BeagleBone Black or BeagleBone White
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Debug Configuration Initialization Scripts here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article Debug Configuration Initialization Scripts here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article Debug Configuration Initialization Scripts here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article Debug Configuration Initialization Scripts here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article Debug Configuration Initialization Scripts here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Debug Configuration Initialization Scripts here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article Debug Configuration Initialization Scripts here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article Debug Configuration Initialization Scripts here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Debug Configuration Initialization Scripts here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity