Debug_Simulate_ASM_CCS_Project

Debug_Simulate_ASM_CCS_Project - University of Florida...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
University of Florida EEL 4744 Drs. K. Gugel & E M. Schwartz Department of Electrical & Computer Engineering Page 1/6 Revision 2 24-Jan-11 Debug/ Simulate an ASM Project in CCS without DSP Board Introduction The purpose of this document is to quickly illustrate how to debug an assembly language file using the built in Code Composer Studio (CCS) debugger. This tutorial will pick up where we left off in the last tutorial. Therefore you must have ex0.asm successfully assembled with no errors or warnings. This tutorial will illustrate the basic features of the CCS debugger and how to switch between simulated debugging and debugging on your actual lab board. Procedure 1. This tutorial assumes that you already have CCS installed and have set your workspace folder location on your hard disk. For more information on this topic see the tutorial CCS_Installation_Instructions.pdf (at http://mil.ufl.edu/4744/docs/CCS_Installation_Instructions.pdf ). This tutorial also assumes that you have completed the tutorial on creating an ASM project, where we created a project example0 which contained the files: ex0.asm and KG_RAM_Link1.cmd . For more information on this topic, see the tutorial Create_ASM_CCS_Project.pdf (at http://mil.ufl.edu/4744/docs/Create_ASM_CCS_Project.pdf ). 2. Open up the example0 project. Select the Rebuild Active Project icon (to assemble and link the project) on the toolbar shown circled in red to the right. Do this to insure that there are no errors or warnings as shown below.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
University of Florida EEL 4744 Drs. K. Gugel & E M. Schwartz Department of Electrical & Computer Engineering Page 2/6 Revision 2 24-Jan-11 Debug/ Simulate an ASM Project in CCS without DSP Board 3. Before we begin debugging the assembly code, we will first need to modify some of the project settings to produce map and list files. To do this, right click on the example0 [Active – debug ] file icon that is on the left under the C/C++ Projects title. Scroll all the way down and select Properties . A new window should open showing all the project property tabs for project example0. 4. Select C/C++ Build and then select the Tool Settings tab. Select Assembler Options under C2000 Compiler . Select Generate listing file and Generate asm extended warnings as shown in the next snapshot. This will tell the assembler to create a list file and also to give more information if a warning occurs during assembly or link time. Select Apply and then OK on the bottom right to effect the changes and exit the properties window. 5. Again select the Rebuild Active Project icon to assemble/link the code. Look in the C/C++ Projects window; open the map file by selecting the + to the left of Debug and then selecting example0.map . I have scrolled down a little in the map file for the snapshot below.
Background image of page 2
University of Florida EEL 4744 Drs. K. Gugel & E M. Schwartz
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 07/11/2011.

Page1 / 6

Debug_Simulate_ASM_CCS_Project - University of Florida...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online