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.

c6457 CCS 4.1.3 Linker problem with CLK_gethtime

Other Parts Discussed in Thread: SYSBIOS

Hi,

I've got here an EVM6457-Board and want to do some time-meassurements on this board with an algorithm.

I have found some posts, about the problem of CCS4.1 and c6457, but they are all solved (I can run software directly on the hardware).

My Problem is now, that when I want to call the function CLK_gethtime(), I will receive the following linker errors:

errors encountered during linking; "Firsthello.out" not built        Firsthello    line 0    1371806004000    1357

unresolved symbol _CLK_gethtime, first referenced in ./main.obj        Firsthello    line 0    1371806004000    1356

The code of this small example project is the following:

#include <std.h>
#include <clk.h>

int main(){
    unsigned long int i=CLK_gethtime();
    return 0;
}

So can you help me, to understand what I am doing wrong?

Regards

Jan

  • What I have forgotten to say:

    The linking command looks like the following:

    'Building target: Firsthello.out'
    'Invoking: Linker'
    "C:/Programme/Texas Instruments/ccsv4/tools/compiler/C6000 Code Generation Tools 6.1.23/bin/cl6x" -mv64+ -g --diag_warning=225 -z -m"Firsthello.map" --stack_size=0x400 --warn_sections -i"C:/Programme/Texas Instruments/ccsv4/tools/compiler/C6000 Code Generation Tools 6.1.23/lib" -i"C:/Programme/Texas Instruments/ccsv4/tools/compiler/C6000 Code Generation Tools 6.1.23/include" -i"C:/Programme/Texas Instruments/bios_5_41_02_14/packages/ti/rtdx/lib/c6000" -i"C:/Programme/Texas Instruments/bios_5_41_02_14/packages/ti/bios/lib" --reread_libs --rom_model -o "Firsthello.out"  "./main.obj" -l"libc.a" "../lnk.cmd"
    <Linking>

    How you can see, the lib-folder of the bios are there.

  • Hi Jan,

    Are you able to build the standard BIOS clock example?

    Steve

  • Hi Steven,

    thanks for your reply.

    Currently I cannot create a project based on the clk-example, because how I can see in your Project-Path, you are using CCS 5.2.

    But I am using CCS 4.1.

    But I will download CCS 5.2 and will try it out, if I am able to compile and execute this example out of CCS 5.2.

    I will reply, after I this test.

    P.s.: Do you know, where I can find these examples in CCS 4.1?

    Regards

    Jan

  • So I have installed CCS v5.4

    I have found and compiled the clk-example and it works.

    So I can do my measurements in CCS v5.4 based on this example.

     

    But I would be happy, if you can help me to solve this problem with CCS v4.1. Just for completition.

  • Hi Jan,

    You should also be able to create the CLK example with your CCSv4 install.

    In CCSv4, if you select "new CCS project" (Or in CCSv4 it might say something like "new Eclipse project").

    Selecting that should bring up a project wizard.  Once in the wizard, follow the steps and you should eventually see a section that shows project templates.  You will want to look for the DSP/BIOS project templates, and then look for the CLK example.

    Steve

  • Yes ok I have found the templates.

    My failure was, that I wanted to use BIOS v5 and not RTSC with BIOS v6.

    My configuration looks like this now:


    I have taken the board-configuration out of the post:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/96708.aspx

    The project is called "clock" and the configuration is called "clock_configuration".

    When I compile this project now, I receive the following error message out of clock_configuration:

    js: "C:/Programme/Texas Instruments/bios_6_21_00_13/packages/ti/sysbios/family/c64p/Settings.xs", line 210: Error: Unsupported device!
        "C:/Programme/Texas Instruments/bios_6_21_00_13/packages/ti/sysbios/family/c64p/Settings.xs", line 290
        "C:/Programme/Texas Instruments/bios_6_21_00_13/packages/ti/sysbios/family/Settings.xs", line 147
        "C:/Programme/Texas Instruments/bios_6_21_00_13/packages/ti/sysbios/knl/Clock.xs", line 35
        "C:/Programme/Texas Instruments/bios_6_21_00_13/packages/ti/sysbios/BIOS.xs", line 50
        "C:/Workspace/TI/clock_configuration/common.cfg", line 16
        "./package/cfg/common_x64P.cfg", line 775
        "./package/cfg/common_x64P.cfg", line 730
    xdctools_3_16_02_32\gmake.exe: *** [package/cfg/common_x64P.c] Error 1
    js: "C:/Programme/Texas Instruments/xdctools_3_16_02_32/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    C:\Programme\Texas Instruments\ccsv4\utils\gmake\gmake: *** [configPkg/linker.cmd] Error 1
    C:\Programme\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.

    Do you know, what happens here?

    Edit: Sorry, the copy and paste of the screenshots of the configuration wizard didn't work.

  • Hi Jan,

    Jan Holfeld said:
    My failure was, that I wanted to use BIOS v5 and not RTSC with BIOS v6.

    I'm confused.  You say here that you want to use BIOS 5.x, but NOT use BIOS 6.x (and RTSC).  But, based on the above screen shots, you are using BIOS 6.x and RTSC.  Did I misunderstand?

    Jan Holfeld said:
    When I compile this project now, I receive the following error message out of clock_configuration:

    This error means that the 6457 device is not supported in the version of BIOS that you are using (BIOS 6.21.00.13).  I checked the code for that product to verify this, too.

    The 6457 looks to have been added in a BIOS release later than 6.21.00.13.  So if you do want to use BIOS 6.x, then you should upgrade it to a newer one.

    Steve

  • Hi Steve,

    what I meant was, that in my first projects (e.g. the one with which I started this thread) I always used BIOS 5.x

    But with BIOS 5.x I was not able to choose any of these examples, because the creation of a project ended then with the first picture of my last post.

    There was then the button "next" grey and the button "finish" clickable.

    But then, when I changed to BIOS 6.x, the button "next" is clickable and the button "finish" is grey (how you can see on the first picture).

    And when I wanted to use clk functionalities of BIOS 5.x I will receive the errormessage of my first post. And for BIOS 6.x you have given me the answer.

    Jan

  • Jan,

    I was able to find a PC with CCSv4.1 installed.  I am able to see the problem you have encountered.  Unfortunately, what you're experiencing is due to a limitation of CCSv4.1.

    Another way to create the project would be to "import existing CCS/Eclipse project".  Then browse to the BIOS 5.x installation and look under ti/bios/examples.  But, the problem with that is there is no example for the evm6457 ...

    I think your best bet is to use CCSv5.2 (or newer, even CCSv5.2 is old at this point, and since you're upgrading, you may want to move to the latest while you're at it).

    These newer versions of CCS allow you to choose the h/w platform you have, and then select the project template for the example you want (which you've already done).

    Steve

  • Ok thanks for your support and the effort to give me this information.

    So now I know, that it is not possible to use the clk functionality with this board in CCSv4.1

    Thanks

    Jan