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 issues on project generated by genAlg wizard


Hello,

I would create a new XDAIS algorithm for DM6446.
I can generate source files (and CCS Eclipse project) successfully using genAlg XDC wizard.
Unfortunately, I have some problems about importing and building this (unmodified) project.

I use CCS on Windows XP and I tried to reinstall the CCS (v5.3.00090), but the results are same.
I attached the relevant project files and some screen-shots.

Issue #1:
Generated CCS Eclipse project cannot import by CCS (menu: Project / Import existing CCS Eclipse project).
I can import this as a makefile project only (project explorer: Import -> General / Existing Project into Workspace).
(It has some disadvantages, for example, I cannot compile only one source (.c) file because the genAlg wizard wont create the definitions into makefile for compiling a source file only. I can modify makefile, but I would be happy if this would be by genAlg wizard. Or, CCS should can be imported the generated Eclipse project.)

Issue #2:
When I open a generated source file (e.g. tstuniv.c) CCS preprocessor (indexer?) shows several errors.
These errors are shown only in the IDE but I can build my project without errors (due to importing by makefile?).
So, CCS environment and building engine are working another configurations (I think, this a bit dangerous).

Issue #3:
I cannot use "Rebuild project" function.
"Clean project" and "Build project" functions works (most of the times).
But, "Rebuild project" function wont work most of the times.
It can give different errors, time by time.

My questions:
#1.  How should I import/open the new algorithm project into workspace correctly?
#2a. How can I set my CCS environment for eliminating my unreasonable "Unresolved inclusion" signs?
#2b. Can I configure CCS IDE using the configuration as SAME as when using when I build? How?
#3.  How does work the CCS building engine? So, How should I modify my configuration (or makefile) for success "Rebuild project" option?

Best regards,
Peter

CCS_issues_files.rar

  • Hi,

    According to CCS Issue #3:
    I've modified my makefile inserting some echoes:


    all:
        @echo [all]
        "$(XDC_INSTALL_DIR)/xdc" XDCOPTIONS=$(XDCOPTIONS) XDCARGS="$(XDCARGS)" --xdcpath="$(XDCPATH)" release

    clean:
        @echo [clean]
        "$(XDC_INSTALL_DIR)/xdc" XDCOPTIONS=$(XDCOPTIONS) clean


    Console output of "Rebuild project" function is:


    23:25:19 **** Clean-only build of project tstcompany.tstuniv ****
    "C:\\TI\\xdctools_3_24_05_48\\gmake" all
    "C:\\TI\\xdctools_3_24_05_48\\gmake" clean
    [all]
    "C:/TI/xdctools_3_24_05_48/xdc" XDCOPTIONS= XDCARGS="CGTOOLS_C64P=\"C:/TI/ccsv5/tools/compiler/c6000_7.4.1\"" --xdcpath="C:/TI/xdais_7_21_01_07/packages" release
    [clean]
    "C:/TI/xdctools_3_24_05_48/xdc" XDCOPTIONS= clean
    all files complete.
    generating external release references package/rel/tstcompany_tstuniv/tstcompany/tstuniv/package/package.rel.xml ...
    using out-of-date package.mak to clean ...
    making release file tstcompany_tstuniv.zip (because of package/rel/tstcompany_tstuniv/tstcompany/tstuniv/package/package.rel.xml) ...
    zip warning: No such file or directory
    zip warning: No such file or directory
    xdctools_3_24_05_48\gmake.exe: *** [tstcompany_tstuniv.zip] Error 18
    xdctools_3_24_05_48\gmake.exe: *** Deleting file `tstcompany_tstuniv.zip'
    gmake: *** [all] Error 2

    23:25:23 Build Finished (took 3s.235ms)


    It seems, in rebuild function, CCS wont run correctly "make clean" and "make all" commands in the right order.
    Instead, CCS starts this two function in the same time.
    I think, this would be the problem, because, "make all" can be good AFTER "make clean" has been processed only.
    So, this behavior causes the failure of "Rebuild project" function.

    I've checked, parallel build is not enabled (Window / Preferences / C/C++ / New CDT project wizard / Makefile project).
    But, I think, this settings is effected for the new projects only (I cannot found this settings for my current project).

    So, real question of Issue #3:
    How can I set CCS for doing correctly the "Rebuild project" function?


    Peter