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.

Linking error in CCS v3.3

Other Parts Discussed in Thread: CCSTUDIO

Hello everybody, please help with following issue.

I tried test example from DSK 5510 (examples/bios/audio), for my DSP (dsk 5510).

  • First CCS 3.3 convert .cdb to .tcf file.
  • After that i add CSL library for linker( -l"$(Install_dir)\C5500\csl\lib\csl5510PG2_2X.lib" or any other library with 5510)
  • Further i try to build project, but get linker error : <Linking> undefined symbol _TRC_query first referenced in file C:/CCStudio_v3.3/C550/dsk5510/lib/dsk5510bslx.lib

Linker don't know _TRC_query , but i don't know where i can find it,  what library i have to add for linker or anything else? How resolve this issue. With CCS v2.1 out of the box example works fine.

            Configuration: CCS 3.3,  Integrated development 5.98.0.393, BIOS 5.31.03, Code Generation Tools v3.3.2

  • _TRC_query is the BIOS Trace module call. The BSL must be making such calls and perhaps you need to configure something in your BIOS cfg file. I will move this to the BIOS forum to bring it to the attention of the BIOS experts.

    Thanks

    ki

  • You might want to verify that TRC is enabled in BIOS if the BSL is expecting it to be turned on. Check the System->Global Settings Properties for a checkbox labeled something like "Enable TRC Event Classes." I think if this check box is disabled that the TRC module is not linked into the project which would cause link errors.

  • Hello TimHarron, thanks, I thought about it, I have option in tcf.file "bios.GBL.ENABLEALLTRC = true" but it did not help, i get this linker error

  • TRC_query was changed from a function to a macro back in Sept 2004.  I'm not sure when first public release was that had this change.

    What is the date of your 'bsl' library?  I suspect that that library is built with an older BIOS where this was still a function and not a macro.

    Possible solutions:

    (1)  Rebuild the BSL library.

    (2)  Write a myTRC_query function that calls 'TRC_query' internally.  

    #include <trc.h>

    Uns myTRC_query(Uns mask)
    {
        return (TRC_query(mask));
    }

    Then add something like the following to a custom linker .cmd file to map _TRC_query to your _myTRC_query function.

    _TRC_query  = _myTRC_query

  • Karl Wechsler thanks a lot. I have BSL library date 11.13.2002, second solution helped me. "Rebuild the BSL library." - how can i do it?

  • I don't know have any of this installed on my box to comment.   I think the BSL comes with source files.  You might have to make a project, copy the files into the project and rebuild it.     The board vendor might have some documentation that describes this.