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.

Compiling XDC Package for debugging

Other Parts Discussed in Thread: SYSBIOS, CCSTUDIO

Hello,

I am working on multicore timestamp correlation with DM8148.

For this, I use the XDC package 'ti.uia.family.dm.TimestampDM816XTimer'. For debugging I need the debugable version, cause only release version is available. How can I compile this package as debug version and select this version in CCS build options?

The option "Build-profile" in the RTSC build option is set to "debug". 

Used software:
- CCS 5.5
- uia_1_04_00_06
- SYS/BIOS 6_37_04_32

Thanks,
Milan

  • Milan,

    UIA includes ‘release’ libraries.  To include debug information in the libraries, you’ll need to rebuild them with debug enabled.  There are some instructions for rebuilding the libraries in the System Analyzer User’s Guide (http://www.ti.com/lit/ug/spruh43f/spruh43f.pdf) – see section 6.3.

    There are a couple of other forum threads that you might want to look at: http://e2e.ti.com/support/embedded/tirtos/f/355/t/351391.aspx and http://e2e.ti.com/support/embedded/tirtos/f/355/t/357129.aspx?pi199400=1

    Scott

  • Thank you Scott

  • Hello,

    I have following error while compiling the UIA:

    ======== .interfaces [./packages/ti/uia/sysbios] ========
    making package.mak (because of package.bld) ...
    Building 'ti.targets.C674' using 'c:/ti5/ccsv5/tools/compiler/c6000_7.4.8' ...
    ccOpts.suffix = -mi10 -mo -pdr -pden -pds=238 -pds=880 -pds1110 -g
    Building 'ti.targets.arm.elf.A8Fnv' using 'c:/ti5/ccsv5/tools/compiler/arm_5.1.7' ...
    ccOpts.suffix = -ms -g
    Building 'ti.targets.arm.elf.M3' using 'c:/ti5/ccsv5/tools/compiler/arm_5.1.7' ...
    ccOpts.suffix = -ms -g
    generating interfaces for package ti.uia.sysbios (because package/package.xdc.inc is older than package.xdc) ...
    translating IpcMP
    translating Adaptor
    translating LoggingSetup
    translating LoggerStreamer
    translating LoggerStreamer2
    translating LoggerIdle
    "ti/uia/sysbios/IpcMP.xdc", line 41: can't find imported unit: ti.sysbios.knl.Semaphore (ti.sysbios.knl.Semaphore)
    error: compilation of package.xdc failed: parser failed
    gmake[1]: *** [package/package.xdc.inc] Error 1
    xdctools_3_25_04_88\gmake.exe: *** [packages/ti/uia/sysbios,.interfaces] Error 2
    gmake.exe: *** [all] Error 2

     

    I use following tools in the uia.mak:

    BASE ?= c:/ti5

    # Set up dependencies
    XDC_INSTALL_DIR ?= $(BASE)/xdctools_3_25_04_88
    BIOS_INSTALL_DIR ?= c:/ti/bios_6_37_04_32
    IPC_INSTALL_DIR ?= $(BASE)/ipc_1_25_03_15
    # NDK_INSTALL_DIR ?= d:/av_bios_sdk_00_08_00_00/ndk_2_21_01_38

     

    Can anybody help me?

    Thank you,
    Milan

     

     

  • Milan,

    BASE is set to c:/ti5

    But there is no “5” in the BIOS_INSTALL_DIR ?= c:/ti/bios_6_37_04_32

    Do you want to use $(BASE) for the BIOS install directory too?

    Scott

  • Hi Scott,

    this is correct, I have installed SYS/BIOS in "c:/ti/bios_6_37_04_32" to schare with parallel installed CCS6 in "c:/ti6"

    I have also tried older SYS/BIOS version "c:\ti5\bios_6_35_04_50\" with the same error.

    In the following thread there is the same issue, but without solution. http://e2e.ti.com/support/embedded/tirtos/f/355/t/357129.aspx?pi199400=1

    Now I have tried building with the NDK:

    BASE ?= c:/ti5

    # Set up dependencies
    XDC_INSTALL_DIR ?= $(BASE)/xdctools_3_25_04_88
    BIOS_INSTALL_DIR ?= c:/ti/bios_6_37_04_32
    IPC_INSTALL_DIR ?= $(BASE)/ipc_1_25_03_15
    NDK_INSTALL_DIR ?= $(BASE)/ndk_2_24_00_11

    but the same error ocures.

     

    My steps are:

    gmake -f uia.mak clean
    gmake -f uia.mak

    like in document SPRUH43D, System Analyzer 1.1 User’s Guide, page 132

     

    Please see my make files here:

    1200.UIA_Build.zip

     

    Thanks for the help,

    Milan

  • Hi Milan,

    I am not able to reproduce the build error using the same products that you are.  Could you try un-commenting the line

    XDCOPTIONS=v

    in the uia.mak file, rebuilding uia, and posting a log file with the build output?

    Thanks,

        Janet

  • Hi Janet,

    here is the Log-File

    2061.buildLog.txt

    c:\ti5\uia_1_04_00_06_Kopie>gmake.exe -f uia.mak > buildLog.txt
    "ti/uia/sysbios/IpcMP.xdc", line 41: can't find imported unit: ti.sysbios.knl.Semaphore (ti.sysbios.knl.Semaphore)
    error: compilation of package.xdc failed: parser failed
    gmake[1]: *** [package/package.xdc.inc] Error 1
    xdctools_3_25_04_88\gmake.exe: *** [packages/ti/uia/sysbios,.interfaces] Error 2
    gmake.exe: *** [all] Error 2

    In the Log-File I see the path "C:/CCStudio_v3.3/bios_5_31_02/packages" and not the path to "bios_6_37_04_32". Yes, I have installed CCS3.3 on my PC, too. I think, this could be the problem. How can I fix it?

    Milan

  • Hi Milan,

    It looks like you have the wrong version of BIOS in your xdc path:

    Dxdc.path="c:/ti5/ndk_2_24_00_11/packages;c:/ti5/ipc_1_25_03_15/packages;C:/CCStudio_v3.3/bios_5_31_02/packages;c:/ti5/xdctools_3_25_04_88/packages;../../../.."

    Can you double-check your uia.mak file and make sure you have the correct version of BIOS?  Do you have an environment variable set somewhere with this old version of BIOS?

    Thanks,

        Janet

  • Hi Janet,

    the SYS/BIOS path in the uia.mak is ok. It is: BIOS_INSTALL_DIR ?= c:/ti/bios_6_37_04_32

    But because of CCS3.3 there is an environment variable with: BIOS_INSTALL_DIR=C:/CCStudio_v3.3/bios_5_31_02.
    I have installed CCS3.3, too.

    Thanks,
    Milan

  • Hi Milan,

    The CCS3 BIOS_INSTALL_DIR is probably causing the error.  If you really need to leave it, you can rename the BIOS_INSTALL_DIR in uia.mak to something else (make sure to change all occurrences).

    Best regards,

        Janet

  • Thank You Janet,

    I have renamed the variable BIOS_INSTALL_DIR in uia.mak and it works now.

    Milan