Tool/software: Code Composer Studio
Hello,
We have a massive project that uses the NDK source directly imported into the project. (Please don't lecture about how that is not necessary, we had to enhance it to meet some requirements).
This WAS version 2_25.
I am trying to upgrade to 3_61. But it is generating hundreds of errors.
In addition to apparently being tightly coupled to other packages (CSL, OSAL, PDK, SDK,... etc...), I can't even get it to find a SUSBIOS call.
Specifically the original file:
\ndk_2_25_01_11\packages\ti\ndk\hal\timer_bios\lltimer.c has the function
void llTimerTick() { #ifdef USER_LED1 LED_TOGGLE( USER_LED1 ); #endif if( TimerOpen ) { #if DSPBIOS_ENHANCED LastCLKTime = Clock_getTicks(); LastCLKValid = 1; #endif TimeMS += 100; if( TimeMS >= 1000 ) { TimeS++; TimeMS -= 1000; } STKEVENT_signal( hEvent, STKEVENT_TIMER, 1 ); } }
The new function in C:\ti\ndk_3_61_01_01\packages\ti\ndk\hal\timer_bios\lltimer.c contains the function
void llTimerTick() { if( TimerOpen ) { struct timespec timestamp; clock_gettime(CLOCK_MONOTONIC, ×tamp); /* save timestamp in nanoseconds */ LastCLKTime = ((unsigned long long)timestamp.tv_sec) * 1000000000 + timestamp.tv_nsec; LastCLKValid = 1; TimeMS += 100; if( TimeMS >= 1000 ) { TimeS++; TimeMS -= 1000; } STKEVENT_signal( hEvent, STKEVENT_TIMER, 1 ); } }
Where both clock_gettime and CLOCK_MONOTONIC cannot be resolved.
The file #includes <time.h> however that is being dragged in from the GCC compiler includes folder. Not the correct one.
The clock_gettime is defined in multiple places, two candidates are
- bios_6_76_03_01\packages\gnu\targets\arm\libs\install-native\arm-none-eabi\include\time.h
- bios_6_76_03_01\packages\ti\posix\gcc\time.h
There are no less that 60 no-source code files that are counter intuitive and so far I have been unable to find anything comprehendible in something other than "TI-Internal-Speak". i.e. "build.cfg" should be the place to start... but contains only this:
if (pkg.$vers.length >= 3) { pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..')); } pkg.build.libraries = [ ]; pkg.build.libDesc = [ ];
Which pretty much tells me nothing. And the Welcome.html is of little value either.
Can anyone clue me in as to how to structure the search paths and #defines in order to get this to build in a CCS 10 project?