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?