This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS V5 and Linux SDK app development of C (not Makefile) project

I am using CCS V5.1.08031 on Ubuntu 11.04.03 32-bit.  I am using SDK  ti-sdk-am335x-evm-05.03.00 with PSP psp04.06.00.02.

I've followed the instructions found at: http://processors.wiki.ti.com/index.php/Code_Composer_Studio_v5_Users_Guide

except that I would like to have a C project where I'm building a simple application and do not want to provide my own Makefile.

Here is the simple code I'm using:

#include <stdio.h>

#include <time.h>

struct timespec startTime;

struct timespec endTime;

int main(int argc, char *argv[])

{

  clock_gettime( CLOCK_MONOTONIC, &startTime);

  clock_gettime( CLOCK_MONOTONIC, &endTime);

  return 0;

}

When I attempt to build this I get errors that clock_gettime and CLOCK_MONOTONIC are "unresolved".  I can build this successfully from the command line.

I followed the example given in the link above to import the dhrystone project from the sdk examples directory, the project builds fine, but when I open the editor window within CCS to view dhry1.c file of the project, I get the same error displayed having to do with the symbol HZ (Symbol 'HZ' could not be resolved.).  Presumably the project still builds because it has an independent Makefile.

How can this be fixed so I can use CCS to build apps without having to generate a Makefile by hand?

  • Hi,

    Since the project builds correctly from the command-line, I think the recommendations in this forum thread may help you track a possible source for this issue.

    The editor errors may be due to syntax checkers. Check this other forum thread that shows how to enable/disable it.

    Even still, some symbols are defined in the makefile and therefore the IDE has to be aware of them to properly correlate with the possible #ifdef directives in your code.

    Hope this helps,

    Rafael