Module 03, mgr, PRACA MAGISTERSKA, Tut of TMS320F28335- z niemczech

[ Pobierz całość w formacie PDF ]
//-->Program Development ToolsIntroductionThe objective of this module is to understand the basic functions of the Code Composer StudioIntegrated Design Environment for the C2000 Family of Texas Instruments Digital SignalProcessors and Microcontrollers. This involves understanding the basic structure of a project in Cand Assembler coded source files, along with the basic operation of the C - Compiler, Assemblerand Linker.Code Composer Studio IDECode Composer Studio is the environment for project development and for all tools needed tobuild an application for the C2000 family.Code Composer StudioMenus or IconsProject Manager:Source & object filesFile dependenciesCompiler, Assembler& Linker build optionsFull C/C++ & AssemblyDebugging:C & ASM SourceMixed modeDisassembly (patch)Set Break PointsSet probe PointsProductive Editor:Structure ExpansionStatuswindowWatch windowGraphwindowMemory window3-2HelpCPUWindowF2833x - Program Development Tools3-1Module TopicsModule TopicsProgram Development Tools .....................................................................................................................3-1Introduction .............................................................................................................................................3-1Code Composer Studio IDE .....................................................................................................................3-1Module Topics..........................................................................................................................................3-2The Software Flow ...................................................................................................................................3-3Code Composer Studio - Basics ...............................................................................................................3-4Lab Hardware Setup ................................................................................................................................3-7Code Composer Studio - Step by Step ......................................................................................................3-9Create a project ..................................................................................................................................3-10Write C - code ...................................................................................................................................3-11Setup Build Options...........................................................................................................................3-13Linker Command File ........................................................................................................................3-14C - Compiler Sections........................................................................................................................3-15Linking Sections to Memory .............................................................................................................3-16Download code into the controller ....................................................................................................3-18Test the Code .....................................................................................................................................3-18The Watch Window ...........................................................................................................................3-20Real - Time Debug Mode ..................................................................................................................3-23CPU Register Set ...............................................................................................................................3-25Watch Memory Contents ...................................................................................................................3-26Graphical View ..................................................................................................................................3-27Mixed Mode C and Assembly ...........................................................................................................3-28Assembly Single Step Mode..............................................................................................................3-29GEL General Extension Language ....................................................................................................3-30Lab 3: beginner’s project.......................................................................................................................3-31Objective............................................................................................................................................3-31Procedure ...........................................................................................................................................3-31Open Files, Create Project File ..........................................................................................................3-31Build and Load ..................................................................................................................................3-24Test ....................................................................................................................................................3-243-2F2833x - Program Development ToolsThe Software FlowThe Software FlowThe following slide (Slide 3-3) illustrates the software design flow within Code Composer Studio.The basic steps are: edit, compile and link, which are combined into “build”, then debug. If youare familiar with other Integrated Design Environments for the PC such as Microsoft VisualStudio, you will easily recognize the typical steps used in a project design. If not, you will have tospend a little more time to practice with the basic tools shown on this slide. The major differenceto a PC design toolbox is shown on the right-hand side - the connections to real-time hardware!Code Composer StudioBuildCompilelnk.cmdCodeSimulatoreZdsp™AsmLinkDebugEditorLibrariesGraphs,ProfilingEmulator(XDS100)MCUBoard•Code Composer Studio includes:–Integrated Edit/Debug Graphical User Interface–Code Generation Tools–Real – Time Operating System (DSP/BIOS)3-3You can use Code Composer Studio with a Simulator (running on the Host - PC) or you canconnect a microcontroller system and test the software on a real “target”. For this tutorial, we willrely on the Peripheral Explorer Board and the TMS320F28335 Control Card as our “target”. Herethe word “target” means the physical processor we are using, in this case a TMS320F28335.The next slides will show you some basic features of Code Composer Studio and the hardwaresetup for lab exercises that follow.F2833x - Program Development Tools3-3Code Composer Studio - BasicsCode Composer Studio - BasicsCode Composer Studio: IDEIntegrates: edit, code generation,and debugSingle-click access using buttonsPowerful graphing/profiling toolsAutomated tasks using GEL scriptsBuilt-in access to BIOS functionsSupport TI or 3rdparty plug-ins3-4The Project - FileProject (.pjt) files contain:•Source files (by reference)–Source (C, assembly)–Libraries–DSP/BIOS configuration–Linker command filesProject settings:–Build Options (compiler andassembler)–Build configurations–DSP/BIOS–Linker•3-53-4F2833x - Program Development ToolsCode Composer Studio - BasicsBuild Options GUI - CompilerGUI has 8 pages of categories for code generationtoolsControls many aspects of the build process, suchas:–Optimization level–Target device–Compiler/assembly/link options3-6Build Options GUI - LinkerGUI has 3 categories forlinkingSpecifies various linkoptions“.\Debug\” indicates onsubfolder level below project(.pjt) location3-7F2833x - Program Development Tools3-5 [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • kazimierz.htw.pl