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.

ICE EtherCAT example failing to build

Other Parts Discussed in Thread: SYSBIOS

Afternoon all,

ok, this is probably me being stupid somewhere, but I'm trying to get a basic example build as a starting point and failing horrendously...

Having just received the TMDXICE3359 kits, I installed  code composer (5.1.1.00031) and the am335x/sysbios/SDK (01.00.00.02). Opening code composer's "TI Resource Explorer" it picks up the SDK and gives some very simple 1,2,3 steps to getting started on the EtherCAT example: Import/Build/Debug.

However, I click the Import button, it imports, then clicking the Build button gives a very non-discript error:

C:\ti\ccsv5\utils\bin\gmake -k all
gmake: Target `all' not remade because of errors.

I sorted one problem out which was all the include paths being relative to the SDK installation, not the local workspace copy, but this hasn't resolved the issue. 

Does anyone have any ideas how I can get more detailed build errors out of CCS to find out exactly whats going wrong, or know of any issues with the current SDK delivery?

cheers

Mat

  • also worth noting the make clean also fails, but with some more useful info:

    **** Clean-only build of configuration Debug for project ethercat ****

    C:\ti\ccsv5\utils\bin\gmake -k clean
    DEL /F  "configPkg\compiler.opt" "configPkg\linker.cmd"  "ethercat.out"
    The system cannot find the file specified.
    gmake: [clean] Error 1 (ignored)
    RMDIR /S/Q  "configPkg\"
    The system cannot find the file specified.
    gmake: [clean] Error 2 (ignored)
    DEL /F "tiescappl.pp"
    Could Not Find C:\sandbox\TI_workspace\ethercat\Debug\tiescappl.pp
    DEL /F "tiescappl.obj"
    Could Not Find C:\sandbox\TI_workspace\ethercat\Debug\tiescappl.obj
    'Finished clean'
    ' '

    **** Build Finished ****

  • I was hoping I could help you, but the best I can tell you is I'm seeing the same problem too... My pathnames are a little different, that's about it.


    Cheers

  • Hi Mat,

    SDK was not tested on CCS 5.1.1.00031 as it was not available when we released SDK. This could be a reason for the failure, as we have seen similar issues when projects are imported to different6 CCS versions.

    I would suggest you to try on CCS 5.1.0.09000 and follow the import instructions given here - http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide#Importing_and_Building_Sample_Project_in_CCS

    Also, I assume that you have installed XDCTOOLS and SYS/BIOS on your System as mentioned here - http://processors.wiki.ti.com/index.php/AM335x_SYSBIOS_Industrial_SDK_Getting_Started_Guide#SDK_Installation

    Regards,

    Shahid

  • Also try rebuild with reopening application cfg from CCS before building. This will regenerate generated files for new configuration of CCS, Not sure this is done already from the post.


    Regards,

    Pratheesh

  • Sorted...

    I didn't install the previous version of CCS - our IT here is under quite heavy lock-down which makes any download/installation a non-trivial affair.

    In total, three changes are needed to make this build correctly:

    1). Reset relative paths for include, linker and post-build

    2). Generate the compile configuration - this is not done by TI Explorer step, but is easily done by double-clicking ethercat.cfg, as described above.

    3). Install "tiobj2bin" which is not present. This can be done by reinstalling CCS with Stellaris Cortex M4 support (in addition to AM335x).

    Mat.

  • Hi,

    Even I am into the same problem.
    Not able to run a simple example code like I2C_LED.
    There is no much error details but every time I run I get
    "gmake: Target `all' not remade because of errors."

    I could't understand the step 1.Reset relative paths for include, linker and post-build
    could you please let me know where can we reset the relative paths.

    Regards.
    paddu

  • Theres are quite a large number of relative paths which assume you are running from within the TI SDK folder structure. I struggled to do this - partially because code composer preffered to import projects into new workspace, and partially because I didn't want to mess-up the 'master' copy. Go into project properties, then replace all the "../" with an absolute path to where that module exists. From memory, theres a couple in the include options, lots in the linker options and a couple in the post-build steps calling the batch file (which may also need modifying - I can't remember exactly).

    Mat

  • Latest SDK release (1.0.0.4) is addressing this issue. With this release, the paths are based on an environmental variable called IA_SDK_HOME. The value of this variable is set to sdk installation path, there by minimizing the effort needed to have the application outside sdk.

  • Thank you all for the kind reply.

    solved by using the latest SDK and re installing CCSv5 & all the related software.

    Best Regards

    Paddu