32
1: plug in board. 2: Wait for drivers to be auto detected. Click on installing driver software icon on taskbar and click skip obtaining driver software from windows update. 3: Insert cd Explore the cd Go to spectrumdigital/dsk6455/target content/ and run setup.

CCS5 Tutorial

Embed Size (px)

DESCRIPTION

Tutorial on how to get started in Code Composer Studio v5

Citation preview

Page 1: CCS5 Tutorial

1: plug in board.

2: Wait for drivers to be auto detected.

Click on installing driver software icon on taskbar and click skip obtaining driver software

from windows update.

3: Insert cd

Explore the cd

Go to spectrumdigital/dsk6455/target content/ and run setup.

Page 2: CCS5 Tutorial

4: Install target content into the ccs4 folder.

Page 3: CCS5 Tutorial

5. Start CCS4.

Page 4: CCS5 Tutorial

6. Click file>import

Page 5: CCS5 Tutorial

7. Select Legacy CCSv3.3 Projects and click next.

Page 6: CCS5 Tutorial

8. Browse to the location of the target content (i.e. this should be in the ccsv4 folder where we

installed it. C:\program files(x86)\texas instruments\ccsv4\boards\dsk6455\examples\led\)

9. Select led.pjt and click open.

Page 7: CCS5 Tutorial

10. Click copy projects into workspace.

Page 8: CCS5 Tutorial

11. Click next.

12. Click next again.

13. Click finish.

14. A warning pops up, click ok.

Page 9: CCS5 Tutorial

15. Click view>c/c++ projects.

Page 10: CCS5 Tutorial

16. The window should now look like this.

Page 11: CCS5 Tutorial

17. Click project>build active project.

Page 12: CCS5 Tutorial

18. Errors should appear in the bottom console window. To fix errors select linker.cmd under your

project tree and delete it.

19. Build the project again.

20. More errors should appear. This is because the file is still linked through ledcfg.cmd file in the

original directory.

Page 13: CCS5 Tutorial

21. The errors should look like this:

<Linking>

"C:/Program Files (x86)/Texas

Instruments/ccsv4/boards/dsk6455_v2/examples/led/./ledcfg.cmd", line 255:

warning:

symbol "CLK_F_gethtime" from file "C:/Program Files (x86)/Texas

Instruments/bios_5_40_02_22/packages/ti/bios/lib/biosTCI6482.a64P<clk_getht

i

me.o64P>" being redefined

22. Browse to the location of the ledcfg.cmd file, it should be the original location of the imported

project, i.e. C:\Program Files (x86)\Texas Instruments\ccsv4\boards\dsk6455_v2\examples\led\ and

delete ledcfg.cmd file.

23. Build the project again, this time there should be no errors.

Page 14: CCS5 Tutorial

24. Click view>target configurations.

Page 15: CCS5 Tutorial

25. Under user defined, double click “new TargetConfiguration.ccxml.”

26. Make sure DSK6455 is selected under “connection: Spectrum Digital DSK EVM-eZdsp onboard

USB Emulator”. If not select it and cl ick save.

Page 16: CCS5 Tutorial

27. Click target>Launch TI debugger.

Page 17: CCS5 Tutorial

28. Windows firewall will block the program.

Page 18: CCS5 Tutorial

29. Allow access to all four security alerts.

30. If, when launching the TI Debugger, the “installing device driver” windows appears again, make

sure you once again skip searching on windows update as in step 2 and wait for the driver to be

detected. Otherwise you will receive an emulator error.

31. After the debugger has successfully launched, the window should look like this.

Page 19: CCS5 Tutorial

32. Select target>connect target.

Page 20: CCS5 Tutorial

33. Select target>load program.

Page 21: CCS5 Tutorial

34. If you have copied the project files into the workspace (step 10) then when you browse project,

you should find the led.out file there. Double click it and press ok.

Page 22: CCS5 Tutorial

35.The program should now be loaded onto the board.

36. To run the program click target>run.

Page 23: CCS5 Tutorial

37. LED 1 should blink.

Follow the same procedure for tone.c.

If you have edited and saved your project in workspace and want to carry on working on the same

saved project, copy your project folder onto a flash drive or whatever media you prefer.

To open this same project again follow the following procedure.

1. Do steps 1-5 above.

2. Copy the project you want to open to your workspace.

2. Click file>import.

3. Select existing CCS/CCE Eclipse projects.

4. Browse to the project folder.

Page 24: CCS5 Tutorial

5. Click ok.

6. The project file name should appear in the window.

7. Click finish.

8. Click view>c/c++ projects and make sure that the project tree is on the left side.

Page 25: CCS5 Tutorial

9. Click project>build active project.

10. Errors should appear in the console window at the bottom.

Page 26: CCS5 Tutorial

11. This is because the include file dsk6455.h is not included by default in the software.

12. To include this file, click once again view>c/c++ projects, highlight the top branch of the project

tree.

Page 27: CCS5 Tutorial

13. Click project>properties or right click on the top branch and select properties.

Page 28: CCS5 Tutorial

14. Go to C/C++ Build.

Page 29: CCS5 Tutorial

15. Select Include Options.

Page 30: CCS5 Tutorial

16. Click on the little plus icon.

17. Click file system and browse to the location of the installed target content from the cd.

18. Select the include folder found in boards/dsk6455/ and add it.

19. Click apply and try build the project again.

20. The compiler should show more errors in the bottom console.

Page 31: CCS5 Tutorial

21. The error looks something like this:

<Linking>

error: cannot find file "../../lib/dsk6455bsl.lib"

This is because the .lib file has not been included.

22. Select your project and go to properties again as in step 12.

23. This time under C600 linker tree click on “file search path”.

24. In the” include library file or command file as input” window should be a location.

25. Select it and delete it.

26. Click the little plus icon and browse file system.

27. Browse once again to the target content folder and into the lib folder (i.e. boards/dsk6455/lib/)

and select dsk6455bsl.lib.

28. Click apply and try build the project again.

29. The project should now finally build without errors.

Page 32: CCS5 Tutorial

**** Build of configuration Debug for project tone ****

C:\Program Files (x86)\Texas Instruments\ccsv4\utils\gmake\gmake -k all

gmake: Nothing to be done for `all'.

Build complete for project tone

30. Follow the same steps as above to launch debugger and load the program etc.