3468 views|0 replies

6580

Posts

0

Resources
The OP
 

Basic usage of C2000 development platform CCS [Copy link]

To develop a chip, you need to master its development platform. The development platform of C2000 is Code Composer Studio, which we often call CCS. It is now version 8.0, and TI has now fully opened it to developers for free. It can be downloaded from the official website.

As I mentioned before, CCS is actually based on Eclipse, so if you have experience in Eclipse development, there is basically no problem using this platform. Today, I will briefly introduce some basic functions and usage methods of CCS.

Import Project

When referring to the sample, we need to import an existing project, which is also an operation often used in project development. The process of importing a project is as follows:


Click Project in the menu bar and select Import CCS Projects... in the pop-up menu to import projects from CCS4.0 or above. If it is 3.3, you can select Import Legacy CCSv3.3 Projects...


In the pop-up dialog box, click Browse... and select the directory where the project is located. All the projects under this directory will appear in the Discovered projects box. Select the project you want to import and click Finish.

2. New construction

Select New Project in Files or Project to pop up the New Project dialog box


Select the chip model in Target, select the emulator model in Connection, enter the project name in Project name, uncheck Use default location, and select the project storage directory in Location below. Select the compiler version in Compiler version. Please note that a project generated with a lower version of the compiler can be opened and recompiled with a higher version, but not vice versa. Then select the new type in Project templates and examples. It can be an empty project or a sample project. If it is a SYSBIOS project, you need to select the template in SYS BIOS. Click Finish to complete the project creation.

3.Emulator settings

After setting up the simulator in Connection, the simulator will exist in the project. Another way is to configure the simulator outside the project. Click View->Target Configurations in the menu bar, and the simulator configuration frame will appear on the right.

Projects contains the simulators that are included in the existing projects, while UserDefined contains the simulators that you configure. Right-click User Defined, select New Taget Configuration, and then enter the simulator configuration file name in File Name. Generally, it can be "Simulator Model_Chip Model". For example, the XDS2XX_F28379D created in the figure above is the XDS200 simulator, which is suitable for the configuration of the chip TMS320F28379D. Then click Finish, and the following frame will pop up.


Select the emulator model in Connection, select the chip model in Board or Device, and click Save on the right to complete the configuration. At this time, you can power on the chip, connect it to the emulator, and then click Test Connection to test whether the configuration is successful. In the case of common connection failures, you can check whether the emulator is driven successfully in the computer device manager and try again. Generally, the driver is not installed properly. Another problem is that the board-level power supply is unstable, and you need to check the power supply of the chip.

4. Several important configurations in project properties

Right-click the project and select Properties to configure the project. Common compilation failure problems encountered by novices, such as header file not found, compiler version not compatible, missing predefined parameters, out file not found, etc., can all be solved here.

4.1. Compiler version. Select Compiler Version in General.

4.2. Header file search address.


In Include Options, add the address of the header file as shown in the figure. It can be an absolute address or a relative address.

4.3. Predefined parameters, in the Predefined Symbols under Include Options, generally add _FLASH, if it is a dual-core, add CPU1 or CPU2, if CLA is used, also add CLA_C

4.4. If the out file is not in the Debug directory of the current project, check the Basic Options under C2000 Linker. There are settings for map and out directory and file name on the right to see if they are correct.

5. Debugging

When debugging, it is recommended to proceed as follows:

Right-click the compiler configuration file->Launch Selected Connection to enter debug mode, then connect and download the out file.

6. In Windows->Preferences, you can configure some interface parameters that suit your programming habits. For example, Text Font under Appearance->Colors and Fonts->Basic can be set to Chinese fonts, which can solve the problem that Chinese characters are too small by default. And Theme on the right side of Appearance can select themes, such as black interface, Dark, etc.

The above are some basic settings that novices need to pay attention to when they first use it. After you become familiar with it, you can explore some more settings by yourself to make the work platform more suitable for you.

This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list