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.

CCS/AMIC110: DCAN example compilation issues

Part Number: AMIC110

Tool/software: Code Composer Studio

We are trying to build DCAN example.

We install  ti-processor-sdk-rtos-am335x-evm-04.02.00.09-Windows-x86-Install.exe.

In c:\ti\pdk_am335x_1_0_9\packages\ti\starterware\examples\dcan\readme.txt described howtoimport project into CCS.
First 2 stages (creating project and recompile RTOS libraries) has passed good. Libraries has placed in c:\ti\pdk_am335x_1_0_9\packages\ti\starterware\binary.

If after it open project you'll get PDK_INSTALL_PATH error, we fixed it by adding value "c:\ti\pdk_am335x_1_0_9\packages" into this variable.

But later we still on compilation we receive some errors.

Here are building log:


**** Clean-only build of configuration Debug for project DCAN_LoopbackExample_evmAM335x_armTestProject ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 clean -O DEL /F "DCAN_LoopbackExample_evmAM335x_armTestProject.hex" "configPkg\linker.cmd" "configPkg\compiler.opt" "DCAN_LoopbackExample_evmAM335x_armTestProject.out" RMDIR /S/Q "configPkg\" DEL /F "dcan_app.o" "loopback_app_main.o" DEL /F "dcan_app.d" "loopback_app_main.d" ЌҐ г¤ Ґвбп ­ ©вЁ C:\ti\pdk_am335x_1_0_9\packages\MyExampleProjects\DCAN_LoopbackExample_evmAM335x_armTestProject\Debug\DCAN_LoopbackExample_evmAM335x_armTestProject.hex ЌҐ г¤ Ґвбп ­ ©вЁ C:\ti\pdk_am335x_1_0_9\packages\MyExampleProjects\DCAN_LoopbackExample_evmAM335x_armTestProject\Debug\DCAN_LoopbackExample_evmAM335x_armTestProject.out ЌҐ г¤ Ґвбп ­ ©вЁ C:\ti\pdk_am335x_1_0_9\packages\MyExampleProjects\DCAN_LoopbackExample_evmAM335x_armTestProject\Debug\dcan_app.o ЌҐ г¤ Ґвбп ­ ©вЁ C:\ti\pdk_am335x_1_0_9\packages\MyExampleProjects\DCAN_LoopbackExample_evmAM335x_armTestProject\Debug\dcan_app.d 'Finished clean' **** Build Finished **** **** Build of configuration Debug for project DCAN_LoopbackExample_evmAM335x_armTestProject **** "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O 'Building file: "C:/ti/pdk_am335x_1_0_9/packages/ti/starterware/examples/dcan/loopback/rtos/am335x_app_dcan_evmam335x.cfg"' 'Invoking: XDCtools' "C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/pdk_am335x_1_0_9/packages;C:/ti/edma3_lld_2_12_05_29/packages;C:/ti/ndk_2_26_00_08/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r debug -c "C:/ti/gcc-arm-none-eabi-6-2017-q1-update" "C:/ti/pdk_am335x_1_0_9/packages/ti/starterware/examples/dcan/loopback/rtos/am335x_app_dcan_evmam335x.cfg" making package.mak (because of package.bld) ... generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ... configuring am335x_app_dcan_evmam335x.xa8fg from package/cfg/am335x_app_dcan_evmam335x_pa8fg.cfg ... subdir_rules.mk:12: recipe for target 'build-639864305-inproc' failed js: "C:/ti/pdk_am335x_1_0_9/packages/ti/starterware/examples/dcan/loopback/rtos/am335x_app_dcan_evmam335x.cfg", line 159: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: C:\ti\pdk_am335x_1_0_9\packages\ti\starterware\dal\package.xdc found along the package path, but no schema file was found. Ensure that the package 'ti.starterware.dal' is completely built. "./package/cfg/am335x_app_dcan_evmam335x_pa8fg.cfg", line 181 gmake.exe: *** [package/cfg/am335x_app_dcan_evmam335x_pa8fg.xdl] Error 1 js: "C:/ti/xdctools_3_50_03_33_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted. gmake[1]: *** [build-639864305-inproc] Error 1 gmake: *** [build-639864305] Error 2 subdir_rules.mk:9: recipe for target 'build-639864305' failed gmake: Target 'all' not remade because of errors. **** Build Finished ****

What going wrong and how to fix it?

  • Vladimir,

    I would like you to know that our key person for this issue is currently not available but we’ll reply as quick as we can.

    best regards,
    David Zhou
  • Vladimir,

    Please use the DCAN example that's in the Processor SDK RTOS examples directory located at C:\ti\pdk_am335x_1_0_9\packages\MyExampleProjects\DCAN_LoopbackExample_evmAM335x_armTestProject

    Here is a video on how to create the example directory

    training.ti.com/processor-sdk-device-drivers-setup-test

    Starterware projects are no longer supported.

    Lali

  • Hi, Lali!

    Did you try to build that example project?

    I get same error (as Vladimir) when try to build it:

    **** Build of configuration Debug for project DCAN_LoopbackExample_evmAM335x_armTestProject ****
    
    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O 
    gmake[1]: Entering directory 'D:/Work/workspace_v7/DCAN_LoopbackExample_evmAM335x_armTestProject/Debug'
    'Building file: C:/ti-sdk-am335x-04.02.00.09/pdk_am335x_1_0_9/packages/ti/starterware/examples/dcan/loopback/rtos/am335x_app_dcan_evmam335x.cfg'
    'Invoking: XDCtools'
    "C:/ti-sdk-am335x-04.02.00.09/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti-sdk-am335x-04.02.00.09/bios_6_52_00_12/packages;C:/ti-sdk-am335x-04.02.00.09/pdk_am335x_1_0_9/packages;C:/ti-sdk-am335x-04.02.00.09/edma3_lld_2_12_05_30B/packages;C:/ti-sdk-am335x-04.02.00.09/ndk_2_26_00_08/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r debug -c "C:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-6-2017-q1-update" "C:/ti-sdk-am335x-04.02.00.09/pdk_am335x_1_0_9/packages/ti/starterware/examples/dcan/loopback/rtos/am335x_app_dcan_evmam335x.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring am335x_app_dcan_evmam335x.xa8fg from package/cfg/am335x_app_dcan_evmam335x_pa8fg.cfg ...
    subdir_rules.mk:12: recipe for target 'build-639864305-inproc' failed
    js: "C:/ti-sdk-am335x-04.02.00.09/pdk_am335x_1_0_9/packages/ti/starterware/examples/dcan/loopback/rtos/am335x_app_dcan_evmam335x.cfg", line 159: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: C:\ti-sdk-am335x-04.02.00.09\pdk_am335x_1_0_9\packages\ti\starterware\dal\package.xdc found along the package path, but no schema file was found.  Ensure that the package 'ti.starterware.dal' is completely built.
        "./package/cfg/am335x_app_dcan_evmam335x_pa8fg.cfg", line 181
    gmake.exe: *** [package/cfg/am335x_app_dcan_evmam335x_pa8fg.xdl] Error 1
    js: "C:/ti-sdk-am335x-04.02.00.09/xdctools_3_50_03_33_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[1]: *** [build-639864305-inproc] Error 1
    gmake: *** [build-639864305] Error 2
    gmake[1]: Leaving directory 'D:/Work/workspace_v7/DCAN_LoopbackExample_evmAM335x_armTestProject/Debug'
    subdir_rules.mk:9: recipe for target 'build-639864305' failed
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****

  • Vladimir & Yuri,

    My apologies, you are correct. I also see the same error when I try to build the project. I was under the assumption the project would build without issues.

    I'm taking a look at this internally with some colleagues and will get back to you.

    Lali

  • Guys,

    There is an additional step to build the xdc packages for the DCAN example.

    The following commands can be used to build XDC package for a particular Starterware Library

    $ cd <path_to_xdc_tools>

    $ xdc.exe -P <path_to_starterware>/<library>

    Example, to build Starterware Dal Library use the following command

    $cd <path_to_xdc_tools>

    $ xdc.exe -P <path_to_starterware>/dal

    Similarly XDC Package can be built for other Starterware Libraries.

    We are working to integrate this into the documentation. Thanks for your patience.

    Lali

  • Hi, Lali!

    Your advice helped, now i can build project without any issues. Thanks a lot!
  • Great!
    Would appreciate it if you could please close the thread. Thanks!

    Lali