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.

Unable to rebuild IDK SYS/BIOS examples with CCS 6

Other Parts Discussed in Thread: AM3359, SYSBIOS

We have a clean install of CCS 6.0.1.00040 and I am trying to build the examples from the AM335x IDK 1.1.0.5.  None of the SYS/BIOS based examples will build, starting with the sys_bios_driver project, claiming

This project was created using a version of XDCtools that is not currently installed: 3.23.3.53. Please install the XDCtools of this version, or migrate the project to one of the supported versions.

I could install an older XDC and BIOS, but that would seem to be moving against the recommendations in the IDK Release Note and in any case we don't want older version for our application.  The project files supplied also want the TI CGT 4.9, and we have 5.1.6 as supplied with CCS 6.

I have tried upgrading the compiler and RTSC version in CCS, but that breaks the build; all the .c -> .obj rules disappear from the generated subdir_rules.mk, causing the gmake to fail with a very uninformative error:

**** Build of configuration Debug for project sys_bios_driver ****
"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
gmake: Target `all' not remade because of errors.
**** Build Finished ****

The dev board is an AM3359 ICE 2.1, and we have the included package sets:

bios_6_40_01_15

ndk_2_24_00_11

xdctools_3_30_03_47_core

I'm guessing I've lost some critical class bindings in .ccsproject that actually make the TI compiler makefile generation work.

I've also tried recreating the sys_bios_driver project (sdk/os_driver) but was totally unable to work out how to do this, because the project target is an RTSC shared library, and my CCS does not offer me any way to create this kind of project.  The RTSC project target seems hard-wired to 'application'.

I happen to like CCS in general, but this kind of toolchain pain really makes my blood boil.  I will hand-write my makefiles for the final project...

Any suggestions?  Have I missed anything obvious?  

  • Moving this to the CCS forum.

  • Installing the older version of XDC tools is important.  The guys in the RTOS forum can provide more details but basically the way RTSC products get packaged have changed.  It used to be that all the platforms and support files were part of the XDCTools.  This made the package pretty bloated.  Now it is more split up.  There is the XDC tools (labelled Core Tools) that contains just the build tools for building RTSC/XDC packages.  All the support files for the various device families are included with the actual product you are trying to build.  i.e. an SDK would contain the necessary support files that are relevant for the device(s) it supports.

    However what this means is that you want to make sure you are using an XDC Tools version that is compatible with the RTSC product you are trying to build.  In your case the xdctools package has _core at the end so the source of your problem is likely the missing content.

    Regards,

    John

  • Thanks for your prompt response, I will try the older XDC tools.  It's not clear to me whether I have to install the older SYS/BIOS as well, but I will do so to be on the safe side.

    I know the IDK guys have punted this message over to the CCS forum, but it seems to me there are three clear problems here:

    • CCS 6.0.1's response to having missing compiler support packages (of silently writing half-baked makefiles which fail with a cryptic error) was deeply unhelpful, and seems to me a bug.  Essentially, the 'Upgrade RTSC' function was broken but did not indicate this.
    • There is a documentation error in the AM335x SYSBIOS Industrial SDK Getting Started Guide (p8), which clearly states it needs XDCTOOLS (Version 3.30.4.52).  On p14 it also claims you can just select "Upgrade RTSC Product Versions" in CCS 6 to build these samples, which clearly didn't work for me.  The User's Guide doesn't mention XDCTOOLS at all.  
    • This leaves me unsure how to proceed when I come to build my own application - should I use the library set that came with the IDK, or rebuild it with newer XDC and SYS/BIOS myself?  I have now found out how to create new "RTSC library" projects (under 'advanced') so in principle I should be able to do this.

    Gordon

  • Gordon,

    I heard back from some people on the RTSC library question.  They were not familiar with that, did you mean a "RTSC Configuration Only Project".   You can create those by going to New Project -> Expand Advanced Settings and switch “Output Type” to “Other”, then expand Template section and choose “Empty RTSC-Configuration Project” template.   

    Regards,

    John

  • Sorry, this was about building static library projects that use RTSC.  I was not aware that CCS could do this (I had only previously been able to do this using xdc itself as a packaging tool), and was confused because in an existing project you can't change between an executable and a static library target after project creation.  The drop-down box for target type is greyed out without any explanation which was not very illuminating.

    I then found that one creates static library projects under the 'Advanced' settings when creating a new RTSC project, but it's pretty subtle.  You have to notice a really teensy arrow next to the word 'Advanced' to see that there is anything else to see here.

    I might humbly suggest adding a 'RTSC static library' template project to make this clearer.