NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Creating new CCS v5 Project with Stellarisware
This wiki describes step by step guide to create new project in CCS v5 using Stellarisware and Stellaris Launchpad (EK-LM4F120XL) is used as the hardware platform.
Prerequisites[edit]
Installing CCSTUDIO (Code Composer Studio)[edit]
Download and install CCSTUDIO (Code Composer Studio) from the following link.
Install StellarisWare for EK-LM4F120XL[edit]
Download and install Stellarisware for Stellaris Launchpad (SW-EK-LM4F120XL). The default target folder is "C:\StellarisWare", however it is also possible to give other folder such as "C:\ti\Stellaris\StellarisWare". After successful installation, the following directory structure should appear on the PC file system:
Import the driverlib from Stellarisware[edit]
- In CCSTUDIO, go to "Project" -> "Import Existing CCS Eclipse Project", and then select the folder under <INSTALL_DIR>\StellarisWare\driverlib
- There should be two projects found: "driverlib-cm3" (for LM3S devices with ARM Cortex M3 core) and "driverlib-cm4f" (for LM4F devices with ARM Cortex M4 core - used in this project with Stellaris Launchpad), both shall be imported into the CCSTUDIO workspace
- Build the "driverlib-cm4f" which will be used in this guide with the Stellaris Launchpad board. The compilation shall succeed without any error.
Install Stellaris In-Circuit Debug Interface (ICDI) and VirtualCOM Port[edit]
Refer to the following guide: spmu287.
Creating CCS v5 Project with Stellarisware[edit]
Creating New CCS v5 Project[edit]
In CCSTUDIO, go to "File" -> "New" -> "CCS Project" and create a project with the following settings:
Adding startup_css.c Source Code[edit]
Go to the <INSTALL_DIR>\StellarisWare\boards\ek-lm4f120xl\project0 directory and copy the startup_css.c file into the newly created project from the previous step.
as example code, the content of project0.c from the same directory can be copied into the main.c of the newly created project.
Adding Environment Variable Pointing To StellarisWare Folder[edit]
Go to "Project" -> "Properties" -> "Build" -> "Environment" and create a new environment variable e.g. SW_ROOT (Stellaris Root Folder name) pointing to the StellarisWare installation folder <INSTALL_DIR>.
Adding Include Path[edit]
Add the following include directory paths in the project setting based on the new environment variable from the previous step:
- StellarisWare device general headers : "${SW_ROOT}"
- Board specific headers(in this case for EK-LM4F120XL) : "${SW_ROOT}/boards/ek-lm4f120xl"
Including The driverlib Library[edit]
Add the library in the project setting which has been created in the last prerequisite step above also based on the new environment variable from two steps before.
Compiling the Project[edit]
After adding the library, the project shall be be able to be compiled without error.