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.

Include path seem ignored in CCS6

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I searcher and found a couple of posts dealing with include options in CCS but nothing that helped me. So:

I'm trying to build a Keystone2 example project, ex44_compute in CCStudio 6.

I imported the whole ex44_compute project into CCS (Import-Import…-Existing code as makefile project) which worked fine, but building failed with missing include file (apparently I need to point out a sysroot) I then changed the setting of the host subproject in CCS, C/C++ General/Preprocessor include path and added the  path under CDT user settings (see attached screenshot). But when building again, the host project still fails and it seems to me that the setting just made is not used.

Output from the CCS build (the output seems a little garbled with error messages appearing before they reasonably should):

debug/transport_qmss.av7A lib/debug/obj/TransportQMSS.ov7A

make[2]: Leaving directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/transport/hlos'

make[1]: Leaving directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/transport/hlos'

#

TransportQMSS.c: In function ‘TransportQMSS_unbind’:

TransportQMSS.c:187:27: warning: variable ‘obj’ set but not used [-Wunused-but-set-variable]

TransportQMSS.c: In function ‘TransportQMSS_put’:

TransportQMSS.c:204:27: warning: variable ‘obj’ set but not used [-Wunused-but-set-variable]

MainHost.c:44:24: fatal error: ti/ipc/Ipc.h: No such file or directory

compilation terminated.

# Making host ...

make -C host

make[1]: Entering directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/host'

#

make[2]: *** [bin/debug/obj/MainHost.ov7A] Error 1

make[1]: *** [all] Error 2

make: *** [host] Error 2

# Making all ...

make PROFILE=debug app_host

make[2]: Entering directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/host'

#

# Making bin/debug/obj/MainHost.ov7A ...

/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin/arm-linux-gnueabihf-gcc -c -MD -MF bin/debug/obj/MainHost.ov7A.dep -D_REENTRANT -Wall -ffloat-store -fPIC -Wunused -Dfar= -ggdb -D DEBUG -I. -I/home/klint/ti/ipc_3_36_01_11/linux/include -o bin/debug/obj/MainHost.ov7A MainHost.c

make[2]: Leaving directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/host'

make[1]: Leaving directory `/home/klint/ti/ipc_3_36_01_11/examples/ex44_compute/host'

 

15:30:03 Build Finished (took 52s.306ms)

 

As you can see on the command line for MainHost.c there are two –I arguments present, but neither of them were what was set for the host project according to the screenshot.

Running CCS 6.0.1 on Ubuntu Linux 12.04 LTS

Any help appreciated...

Regards /Anders Klint

  • The missing screenshot...

  • I will move this to the Keystone forum as they are more familiar with these example projects and the settings/process for building them.

  • Hi,

    CCS 6.0.1 known issues and new features are added in latest CCS version. For more information refer below CCS release notes wiki page:
    software-dl.ti.com/.../ReleaseNote.htm

    Better to install latest CCS version(6.1.0.00104 ) on your setup.
    processors.wiki.ti.com/.../Download_CCS

    Thanks,
  • Hi Anders,

    TransportQMSS.c: In function ‘TransportQMSS_unbind’:
    TransportQMSS.c:187:27: warning: variable ‘obj’ set but not used [-Wunused-but-set-variable]
    TransportQMSS.c: In function ‘TransportQMSS_put’:
    TransportQMSS.c:204:27: warning: variable ‘obj’ set but not used [-Wunused-but-set-variable]
    MainHost.c:44:24: fatal error: ti/ipc/Ipc.h: No such file or directory
    compilation terminated.
    # Making host ...


    Have to enable the IPC support in RTSC tab of CCS properties of your project? If No, enable the IPC support and rebuild the project.

    Thanks,
  • Hi,

    Have you followed the readme file steps to Build the project?
    File Path: \ipc_3_36_01_11\ipc_3_36_01_11\examples\TCI6638_linux_elf\ex44_compute\Readme.txt

    Thanks,
  • Hi,

    I have now updated to CCS version 6.1.0.00104 
    Unfortunately the behaviour is the same as before - the added include directory path is apparently ignored.

    About the RTSC/IPC setting:
    In the imported project I have no RTSC tab.
    Am I importing this is the wrong way - should I import the host (ARM/Linux) and DSP parts into separate CCS projects?
    If so, that is - at least not to me - obvious. I currently import the parent project (ex44_compute) as a project and then that
    project contains subproject for host and dsp.

    I have read and followed the beginning of the readme file up to but not including rebuilding LAD and patching the executable.
    Building the host code from command line as no problem.

    Regards /Anders

  • Hi,

    These projects are not support for CCS build, user can able to build the code from command line only.

    Thanks,
  • Hi,

    Then it seems that I'm back at square one again - for the umpteenth time.

    Can _you_ point me to a working starting point if my need is to do development on Keystone2,
    in CCS6, using MessageQ to reliably communicate between Linux on ARM cores and the DSPs?
    I feel that identifying a working starting point for that should not be rocket science, but its seems
    to be darn close...

    Regards /Anders
  • Hi Anders,

    Only for Keystone1, we have a CCS based example using MessageQ for communicating between DSP to DSP.

    For Keystone2, there is no CCS based examples. You have two demos available to demonstrate the reliable communication between ARM and DSP. One is IPC demo and the other one is image processing demo.

    The IPC demo uses the messageQ which needs to be built in command line prompt and replace it in the linux filesystem.

    For running the IPC demo, please follow the instructions given at

    If face any problem, please revert to me.

    --

  • Well, then let's just skip the smoke and mirrors and plainly state that there is no working example for IPC using Keystone2 and CCS.
    Referring to the demos is just muddling the water for anyone finding this thread while looking for a working starting point in
    IPC development

    Any chance of Ti ever providing a working starting point for IPC since CCS is supposed to be a supported environment?

    Any idea when could happen? Weeks away? Months, years? Ever?

    Yours,
    /Anders

  • Hi Anders,

    Even in my previous post We have clearly stated that IPC examples are available for Keystone2 but not available in CCS environment.
    Since it is in command line environment, it doesnot mean that is not a working starting point.

    Only for Keystone1, we have CCS based examples.
    As of now, there are no plans of providing IPC examples in CCS environment.


    -------