- Note
- The steps on this page show screen shots and description based on Linux. However the steps in Windows would remain the same, unless mentioned otherwise.
-
By default, CCS import of SDK example projects performs a copy of example files to CCS workspace. User are free to modify the example files without affecting the files in the SDK installed location.
-
Deleting the CCS project, deletes the project files from CCS workspace. User should be careful especially when the copied example files are modified by user.
Introduction
All SDK examples can be built using CCS projects. Using CCS projects one can also open SysConfig from within CCS itself to configure the example. This section provides basic instructions and tips on using CCS projects.
- Note
- To re-build libraries you need to use makefiles, see Using SDK with Makefiles
CCS Projectspec and CCS Projects
- When a example project is imported into CCS, what is really getting imported is a
projectspec
file.
- This file is a definition or blueprint of a CCS project, like compiler options, files to compile, libraries to link.
- CCS takes the projectspec as input and then generates CCS project files in the user workspace.
- Default workspace is,
C:/Users/{user name}/workspace_v{CCS major version}/{project name}/
- The
projectspec
is also human readable, i.e you can open it in a text editor to see all the different options for that project.
Import a Project in CCS
- First click on "Import Project(s)" as shown below
Import Project(s)
- Click on "Browse" in the "Import Projects" window to import a project
Project Import
- All examples follow below naming convention to help you easily pick the example you need
{example name}_{soc board}_{cpu}_{os}_{compiler toolchain}
- You can also navigate to the example folder to pick a specific example. All examples are organized as below in the examples folder.
examples/{component or module}/{optional sub-module or sub-component}/
|
+ -- {example name}/{board on which this example can run}/
|
+ -- {cpu}_{os}/{compiler toolchain}
|
+ -- example.projectspec --> This is the file that CCS imports.
Browse a Project in CCS
- You can explore other project files by clicking on them.
Build a Project in CCS
- To build a project "right-click" on the project name and select "Build Project" to build it
- You can explore additional project options in the same menu.
Delete a Project in CCS
- To delete a imported project "right-click" on the project name and select "Delete" to delete it.
- Note, that deleting a project, only deletes it from your CCS workspace, the .c, .h and other project files are located with the ${SDK_INSTALL_PATH}/examples and these are not deleted.
- You can reimport a project later as needed.