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.

CLK_gethtime CLK_getltime undefined

Other Parts Discussed in Thread: CCSTUDIO

CLK_getltime undefined despite the header files I include. Code is:

#include "DSK6713.h"    
#include "DSK6713_AIC23.h" // codec support       
#include "math.h"
#include "fft.h"   // definition of FFT( ) procedure
#include <std.h>   // must go first, before other .h files
#include <clk.h>
#include <log.h>
#include <time.h>

// redundant, but just in case:
#include "stdint.h"
#include "stddef.h"
#include "stdio.h"
#include "sts.h"
#include "swi.h"
#include "trc.h"
#include "rtdx.h"
#include "tsk.h"  
#include "sem.h" 

interrupt void c_int11(void)  // ISR
{  
 clock_start = CLK_getltime();  // error: CLK_getltime( )  undefined

This happens in CCStudio versions 3.1 and 3.3

 

  • The types are defined in std.h.

    Make sure you have:

     #include <std.h>

    before any of the other header files.

    Alan

  • added the std.h file, now different problem. I re-wrote entire problem wording and the title, too.

  • Are these compile-time errors or link-time errors?

    Which version of DSP/BIOS are you using?

    Can you show the full error being displayed, including the command line?

    Alan

  • These are COMPILE-time errors. It is because when I try tutorial files, in MUTEX tutorial of CCStudio.3.1 directory:

    \tutorial\dsk6713\mutex

    it compiles. Mutex project contains CLK_getltime( )

    And I make sure that the same header files are in my test stub as in mutex.c

    but in my test stub file CLK_getltime() is not recognized.

    The same comiler, the same CCStudio, etc.

    So, when I create new project and copy and paste the CLK_getltime( ), with header include's directives, the same

    code does not compile: CLK_getltime( ) is not recognized (undefined).

    So, DSP/BIOS version is irrelevant.

    Error is:

    <Linking>

    Undefined symbol: _CLK_getltime

    First referenced in file: c:\.......\Debug\testStub.obj

    error: symbol referencing errors

  • The error indicates that this is a link-time problem.

    I don't have access to a CCS 3 installation to know precisely how to advise you but it appears to me that your project isn't linking with your BIOS library.

    Can you compare the tutorial project's linker options to your linker options and make yours more like the example?

    Alan

  • I get emails with messages that someone "verified" the last answer as "correct".

    I keep rejecting these "answers" because I have been "comparing" the project files since that "answer" was posted, but I still have not found solutions namely:

    exact (I re-emphasize the "exact") reason/setting(s) that will make CLK_getltime( ) recognizable by the linker.

    General answers are not "correct" answers. TI employees (and all employees in general) have their own hidden agenda (hidden stimulus [package]) to "solve" as many questions as they can (ratings jack ups, score bloating, status bubbling effect like that one of the economy in the last 10 years, etc). But the market introduces correction. I am the market. We, the people. The folk as general as your general "answers".

  • The answer is (answering my own post/question):

    CCStudio33_installation_dir\bios_5_31_02\packages\ti\bios\help\doc\c6xbios.hlp

    (any other bios_x_yz_ab directory will also probably have c6xbios.hlp file)