New CCS Project Setup Steps2

download New CCS Project Setup Steps2

of 2

Transcript of New CCS Project Setup Steps2

  • 7/22/2019 New CCS Project Setup Steps2

    1/2

    Here's some helpful notes for users trying to set up this project in CCS=========================================================================Start Code Composers Studio.

    1. Project - New CSS Project Project Name: Servo3 Output Type: Executable Use Default Location (should be {workspace}\Servo3) Device: Family: Arm Variant: Stellaris LM4F120H5QR Connection: Stellaris-In-Circuit Debug Interface Advanced Settings: Compiler Version: TIv4.9.5

    (all other - use default settings) Project templates and examples: Select "Empty Project" [Click Finish]2. Select Servo3 as the Active project - right click - Add Files From a folder other than the project folder, add these files:

    servo3.c and startup_ccs.c Choose the "Copy files" option3. Once again - right click on project - Add Files Add uartstdio.c from \StellarisWare\utils

    This time choose the "Link to files" option. Leave the "Create link location relative to" checkbox checked and the default PROJECT_LOC set.4. Right click on project - Show Build Settings..- CSS Build-Variables Tab

    Add Variable Name: SW_ROOT Type: Directory Browse to \StellariaWare folder and select that [click OK]

    Select Arm Compiler - Include Options in lower box "Add to #include search path..." Add The following (using the tiny green '+' icon) "${SW_ROOT}"

    Select Arm Compiler - Advanced Options

    Select Arm Linker - File Search Path in upper box "Include Library file or command file as input..." Add The following (using the tiny green '+' icon) "${SW_ROOT}/driverlib/ccs-cm4f/Debug/driverlib-cm4f.lib"

    Select Arm Compiler - Advanced Options - Predefined Symbols in upper box "Pre-define NAME..." Add The following 3 items (using the tiny green '+' icon) ccs="ccs" TARGET_IS_BLIZZARD_RA1

    PART_LM4F120H5QR

    [click OK]5. Right click on project - Clean Project (just to be safe)6. Right click on project - Build Project (with fingers crossed)With a bit of luck - no errors or problems

  • 7/22/2019 New CCS Project Setup Steps2

    2/2

    7. Optional Final Step: Set Up Your Project to Output a Binary FileRight click on project - Show Build Settings..- CSS Build - Steps Tab

    In Post-build steps - Command:(paste these 6 items - quotes included - with a single space between them)

    "${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin""${BuildArtifactFileName}""${BuildArtifactFileBaseName}.bin""${CG_TOOL_ROOT}/bin/ofd470""${CG_TOOL_ROOT}/bin/hex470""${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

    (or copy & paste from one of the sample projects)