Presentation is loading. Please wait.

Presentation is loading. Please wait.

C6713 DSK Diagnostic Utility included with DSK....

Similar presentations


Presentation on theme: "C6713 DSK Diagnostic Utility included with DSK...."— Presentation transcript:

1 C6713 DSK Diagnostic Utility included with DSK...

2 C6713 DSK Diagnostic Utility included with DSK...

3 DSK’s Diagnostic Utility CCS Overview...  Test/Diagnose DSK hardware  Verify USB emulation link  Use Advanced tests to facilitate debugging  Reset DSK hardware

4 SIM  Simulator Code Composer Studio DSK’s Code Composer Studio Includes:  Integrated Edit / Debug GUI Edit DSK EVM Third Party  BIOS:Real-time kernel Real-time analysis DSP/BIOS Libraries DSP/BIOS Config Tool Debug  Code Generation Tools Compiler Asm Opto Asm Standard Runtime Libraries.out Link XDS DSP Board CCS is Project centric...

5 Code Generation.out Editor.sa Asm Optimizer.c /.cpp Compiler Asm.asm Linker.obj Link.cmd.map

6 What is a Project? Project (.PJT ) file contain: References to files:  Source  Libraries  Linker, etc … Project settings:  Compiler Options  DSP/BIOS  Linking, etc … The project menu...

7 Project Menu  Access via pull-down menu or by right-clicking.pjt file in project explorer window Project Menu Hint: Create and open projects from the Project menu, not the File menu. Hint: Create and open projects from the Project menu, not the File menu. Build Options... Next slide

8 Build Options -g -q -fr "c:\modem\Debug" -mv6700  Eight Categories of Compiler options The most common Compiler Options are...

9 OptionsDescription -o Output file name -m Map file name -cAuto-initialize global/static C variables -xExhaustively read libs (resolve back ref's) Linker Options -q -c -m".\Debug\lab1.map" -o".\Debug\lab1.out" -x.\Debug\lab1.out Run-time Autoinitialization  By default linker options include the –o option  We recommend you add the –m option  ".\Debug\" indicates one subfolder level below the projects.pjt folder  Run-time Autoinit tells compiler to initialize global/static variables before calling main().\Debug\lab1.map

10 OptionsDescription -mv6700Generate ‘C67x code (‘C62x is default) -mv6400Generate 'C64x code -fr Directory for object/output files -fs Directory for assembly files -qQuiet mode (display less info while compiling) -gEnables src-level symbolic debugging -sInterlist C statements into assembly listing Compiler’s Build Options  Nearly one-hundred compiler options available to tune your code's performance, size, etc.  Following table lists the most common options: debug options  In Chapter 4 we will examine the options which enable the compiler’s optimizer And, the Config Tool...

11 DSP/BIOS Configuration Tool Simplifies system design by:  Automatically includes the appropriate runtime support libraries  Automatically handles interrupt vectors and system reset  Handles system memory configuration (builds CMD file)  Generates 5 files when CDB file is saved:  C file, Asm file, 2 header files and a linker command (.cmd) file  More to be discussed later … Simplifies system design by:  Automatically includes the appropriate runtime support libraries  Automatically handles interrupt vectors and system reset  Handles system memory configuration (builds CMD file)  Generates 5 files when CDB file is saved:  C file, Asm file, 2 header files and a linker command (.cmd) file  More to be discussed later …

12 ‘C6000 C Data Types TypeSize Representation char, signed char8 bitsASCII unsigned char8 bitsASCII short16 bits2’s complement unsigned short16 bitsbinary int, signed int32 bits2s complement unsigned int32 bitsbinary long, signed long40 bits 2’s complement unsigned long40 bits binary enum32 bits 2’s complement float32 bits IEEE 32-bit double64 bits IEEE 64-bit long double64 bits IEEE 64-bit pointers32 bits binary

13 Command Window Some frequently used commands:  load  reload  reset  restart  ba  wa  help  dlog,a  dlogclose  alias...  take  run  go  step  cstep  halt

14 GEL Scripting GEL:General Extension Language  C style syntax  Large number of debugger commands as GEL functions  Write your own functions  Create GEL menu items GEL:General Extension Language  C style syntax  Large number of debugger commands as GEL functions  Write your own functions  Create GEL menu items

15  Debug using VB Script or Perl  Using CCS Scripting, a simple script can:  Start CCS  Load a file  Read/write memory  Set/clear breakpoints  Run, and perform other basic testing functions  Debug using VB Script or Perl  Using CCS Scripting, a simple script can:  Start CCS  Load a file  Read/write memory  Set/clear breakpoints  Run, and perform other basic testing functions CCS Scripting

16 TCONF Scripting (CDB) Tconf Script (.tcf) hello_dsk62cfg.tcf #include extern LOG_Obj trace; /* created in hello.tci */ int main() { LOG_printf(&trace, "Hello World!\n"); return (0); } Your Application hello.c utils.loadPlatform("dsk6211"); /* load DSK6211 platform into TCOM */ utils.getProgObjs(prog); /* make all prog objects JavaScript global vars */ LOG_system.bufLen = 128; /* set buffer length of LOG_system to 128 */ utils.importFile("hello"); /* import portable application script */ prog.gen(); /* generate cfg files (and CDB file) */ var trace = LOG.create("trace"); /* create a new user log, named trace */ trace.bufLen = 32; /* initialize its length to 32 (words) */ Tconf Include File (.tci) hello.tci A textual way to configure CDB files Runs on both PC and Unix Create #include type files (.tci) More flexible than Config Tool A textual way to configure CDB files Runs on both PC and Unix Create #include type files (.tci) More flexible than Config Tool


Download ppt "C6713 DSK Diagnostic Utility included with DSK...."

Similar presentations


Ads by Google