Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Getting started with code composer studio v4 for tms320 f2812


Published on

Published in: Technology
  • Be the first to comment

Getting started with code composer studio v4 for tms320 f2812

  1. 1. Getting Started with CodeComposer Studio v4 forTMS320F2812
  2. 2. OBJECTIVETo understand the basic features andfunctions to create and debug a project in CCSv4To get familar with CCS v4More in-depth explanations of CodeComposer Studio’s various features .Finally, you will able to work with CCS v4
  3. 3. IntroductionCode Composer Studio is the IntegratedDesign Environment for the Texas InstrumentsDSP/DSC/MC.DSP – TMS320C6745DSC – TMS320F2812MC – MSP430F5529Code Composer Studio is the environment forproject development for all tools needed tobuild an application for the Specific Target.
  4. 4. Contents at a GlanceSetting a workspace locationCreate a projectAdd files to the ProjectCreate a Target Configuration fileBuild a ProjectRun a projectConsole window
  5. 5. Launching The CCS v4 Click this icon shown on yourdesktop. To launch Code Composer StudioIDE for the first time, configure CodeComposer Studio for a fixedworkspace location.
  6. 6. Setting The Workspace Location Double-click the pCCStudio v4 icon ondesktop.
  7. 7. Note: Be sure that workspace location is empty for afresh project
  8. 8. Tick the use this as the default and do not askagain(Optional).Note: Again to get the workspace launcher atstartup. open ccs go to window – preference– general – startup and shutdown – tick“prompt for workspace on startup”.Click ok.
  9. 9. The empty workspace editor will open.
  10. 10. Create a New ProjectLaunch CodeComposerStudio.From theCCStudio Filemenu, chooseNew – CCSProject.
  11. 11. In the Project Namefield : Type the projectname.Tick the use defaultLocation Check box orbrowse to the folderyou created asworkspace loaction.Click Next.
  12. 12. In the Project typefield: Select C2000.Tick Debug andRelease in configurationbox.Click Next.Again, Click Next.
  13. 13. OutputType:Executable.Device Variant:TMS320C28XX &TMS320F2812.Click Finish.CCS creates aproject.
  14. 14. From the CCStudio C/C++ Projects, Right click the led[ Active – Debug ] New – Source File.
  15. 15. In the source file field, Type the source file name withextension. (led.c)Click Finish.
  16. 16. Type the program in led.c editorwindow then , File –Save.
  17. 17. Add a Files to ProjectAfter Creating the project and source file we mustadd some addition files to our project.These addition files may vary depend upon theprojects which we used.Create/add new source files to your project by right-clicking on the project in the “C/C++ Projects”
  18. 18. From the CCStudio C/C++ Projects, Right click the led[ Active – Debug ] Select the Add files to project.
  19. 19. Then browse and select all the needed files.
  20. 20. Click Open. The selected all the files are added toyour project.
  21. 21. Create a Target Configuration FileFrom the CCStudio C/C++ Projects, Right click the led [ Active –Debug ] New – Source File.
  22. 22. New Target Configuration dialog appears. Then ClickFinish
  23. 23. NewTargetConfiguration.ccxmlThis file will help to communicate between hardwareand softeware. While connecting the hardware tothe software the target configuration file will run. Ifany initialize needed we can add gel file additionallyin the target configuration. In General setup,Connection : XDS 100 USB emulator version 1Device : TMS320F2812( Target Device ).Tick the TMS320F2812 & Click Save.
  24. 24. Build a ProjectBefore Building the project we must modify projectproperties , add the include files and path accordingto our usage.From the CCStudio C/C++ Projects, Right click the led[ Active – Debug ] – Properties.
  25. 25. Compiler OptionIn C/C++ Build, go to C2000 compiler– Include Options (Add dir to #include search path(--include_path,-I)) select this add icon and addthe following two path by indivdually."${XDAIS_CG_ROOT}/packages/ti/xdais“"C:/tidcs/c28/DSP281x/v120/DSP281x_headers/include"
  26. 26. Linker OptionIN C/C++ Build, go to c2000 linkerBasic option - stack size : 0x400.Include lib or cmd file as input (--library,-I):"rts2800_ml.lib"File search path (Add <dir> to library searchpath(-- include_path,-i)) select this add iconand add the following two path by indivdually."${PROJECT_ROOT}""C:ProgramFilesTexasInstrumentsccsv4toolscompilerc2000lib"
  27. 27. Build a ProjectFrom the CCStudio C/C++ Projects, Right click the led[ Active – Debug ] – Build Project or Rebuild Project.Note: Once the project is successfully build you willget 0 Errors. If Errors arise check the code andproject properties then rebuild the project.
  28. 28. Run a projectTarget – Debug Active Project.Note: at this step, Target will connect, gel file willrun, led.out will load to target then finally Keep thecursor at main() of program to start execute.
  29. 29. This is Debug workspace., at this we can debug acode using breakpoints, single stepping, watch window,memory etc..,
  30. 30. Target – Run.For led code, check the output at on board. The Ledsis will on and off with few delay.Target – Halt.
  31. 31. Target – Terminate all.
  32. 32. Again, the ccs will return to edit workspace fromdebug workspce.
  33. 33. Console WindowThe Output window is located at the bottomof the screen by default. By default, the printffunction displays in console window, showinginformation such as the contents of Stdoutand the build log.
  34. 34. H elpCCS provides many help tools through the H elpmenu. Select H elp Contents to search by contents.Select H elp Tutorial to access tutorials to guide youthrough the CCStudio development process.Select H elp Web Resources to obtain the mostcurrent help topics and other guidance. U sermanuals are PDF files that provide information onspecific features or processes.Y ou can access updates and a number of optionalplug-ins through H elp U pdate Advisor.
  35. 35. Presented byS.THIYAGARAJAN,Senior R & D Engg,Pantech Solutions,Chennai - 96THANK YOU