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.

Basic questions about CCE

Hello!

I am new to CCE (I use IAR).
I am trying to get started with CCE because some of my customers want to use
CCE. There are a few things I don't understand:

1. I wrote a simple test. It runs fine. However, everytime I have a compile error,
the IDE keeps telling me: Errors exist in a required project. Continue launch?
[] Remember my decision.
I reply no everytime, and I would likt the IDE to actually remember my decision
but it still keeps asking me everytime.

Is there a way to set this in a preference file?

By the way, what is the point of continuing if there is an error? Couldn't the default
behaviour be to stop when there is an error?

2. When I copy a file to the current folder, it is automatically added to the project.
Is there is a way to avoid this and to be allowed to have other C files in the same
folder, that you don't want to add?

3. I am using the same hardware for several projects. So what I would like to do
is the following structure:

Worspace
Worspace/Hardware-specific
Workspace/Proj1
Workspace/Proj2.

In the project menu, there are 2 lines "add file to active projects" and "link files to active proect".
I choose link. Now there is a popup window, and I could expext it to point to the current project
path, but that's not the case. Anyway, I search for my hardware specific folder but there is no
way to link a folder. Well, I opened the folder and added all the files.
But the compile error remains: cannot find xxx file, although xxx has been added to the project
using the project -> link files menu.

Now I tried "add files to the active project". I added only the file related to the first error.
The IDE still says "could not open file xxx".

I also tried to open the project properties, but there is apparently no place to add a path.

Could anybody give me a few hints?

Thanks,

Pascal
  • Hi Pascal

    1. It seems that CCE only remember the decision if you press Yes. I have tried also activated the option "Stop on first build Error" and the same behaviour continues.

     

    1. I think this a characteristic from CCE. All files inside the project folder will be exhibited, but you can exclude a particular file from build. Go to C/C++ Project view and select the file that you want to exclude, then active the context menu and select the option "Exclude File(s) from Build". Also you can use filters to hide files by type.

     

    1. When you choose the option add files, the file will appear at the C/C++ Project view? Over the file icon will appear a arrow telling you that is a linked file. I have tested and the project builds ok. Can you give more info about this problem?

     

    Best Regards

    AES

     

  • Hi AES!

    It's been a while... I have been on another project.

    About the "remember my decision" stuff, it is clearly a bug, right? Will it be fixed anytime soon?

    As far as I remember, this bug existed in CCE1 as well, and I suppose I'm not the only who noticed.

     

    About the path setting problem:

    First, is there a tutorial showing how to share a folder among several projects?

    If not, here is what I did (I have restarted from scratch):

    1. I have made a new workspace. To be accurate how it looks first:

    (+ means down one level in the file system +MyTest.c means is Workspace/ProjectFolder/MyTest.c in the filesystem.

    ------------------

    Workspace

    +.metadata

    +CommonSources

    +ProjectFolder

    ++[files generated by CCE, .ccsproject, .cdtproject, etc...]

    ++MyTest.c

    ------------------

    Now, MyTest.c includes files located in CommonSources.

    1. I have tried to link files (adding files copies them, which is not good because I will end with many versions).

    At this point, the compilation fails. "Could not open xxx.h", xxx.h is located in Workspace/CommonSources.

    2. I have tried to edit paths in the project->properties:

    I browsed to the CommonSources project location and added its path. No effect, I get the same error

    3. I have tried to add a path entry (open preferences, select C/C++/Path entry variables). I don't understand

    why, but it is not possible to set a folder as a path entry. Probably it has another meaning. I tried

    to add "CommonSources" path by choosing "folder" in the popup called by "new" button. I still have the same

    error.

    Could anybody explain me what's wrong?

    Just in case: I have CCEPro 3, updated to SP2.

    Thanks for any hint!

    Pascal

     

  • I have much the same problem but haven't a clue how I started it.  I've been working with the simple program for blinking the light and expanding it in various directions.  Everything has been fine for about a week or two but suddenly I'm getting:

    "Exception occured during launch.

    Reason: Program file does not exist."

     

    Checking the details from this requester brings up the line:

    "C:/Users/Larry/workspace3/NowLED.out  not found."

    Meanwhile the console says:

    ">>compilation failure

    C:/Program Files/Texas Instruments/CC Essentials v3/utils/qmake/qmake: *** [msp430x2xx_fet_1.obj] error1

    C:/Program Files/Texas Instruments/CC Essentials v3/utils/qmake/qmake: Target 'all' not remade because of errors.

    Build complete for project NowLED

     

    The project now refuses to launch, complaining of the missing file, but I don't know why it's gone missing or where it went or why the program has suddenly decided to ditch the file because I'm not aware that I clicked on anything that could change that and stop the launching process.  Things were really going great until this curiosity stopped everything.

    A related problem is how to understand just what program the build process will work on.  I keep telling the program to build one program and it finishes and tells me it had errors building the other project that shares the folder with this project and seems to refuse to build the one I want it to.  What is the combination of projects and folders that will get the builder to build what I want?

    Larry

     

     

     

  • Tuatha De/Larry Grant

    On the failure described in my previous letter:

    I've gone through both the settings described on P.21 of  SLAU157H  and Brandon's 'Get Started with the New Code Composer Essentials Version 3'

    and nothing has changed.

    Curiously where I do find a .out file is in:

    'Select Project - Properties - TI Debug Settings below C/C++ Applications.

    Hope that helps.

  • A couple of more notes on this problem:

    The problem appears to be in linking with the following console message:

    <Linking>

     undefined first referenced

       symbol        in  file

    -------------   ---------------------

    main            C:/Program Files/Texas Instruments/CC Essentials

    v3/tools/compiler/MSP430/lib/rts430.lib<args_main.obj>

    error: unresolved symbols remain

    error: errors encountered during linking; "LED2.out" not built

     

    Is this referring to the 'main' used at the start of programs as in      void main(void)?  Or is it referring to some other use.  I've checked the 'main' on the program start and it is still just  void main(void).  Curiously none of the programs I've been working with (several variants on LED blinker) and everything comes back with this same failure statement now, none of the several variations will build and complete through to debug.  This is a tiny blinker program, there isn't much to do wrong.

    Larry

  • One other odd thing is that at some point my original title for the program has been unaccountably changed and now reads

    *msp430x2xx_fet_1.c

    I don't know how that happened or when but when clicked on now under  file - open  it comes up with a program I've been working on.

    Clicking on it loads the program but it will not build.

    I suppose that is the missing file that needs to have 430 stuff in it, not my program.

     

    Larry

     

  • Larry,

    The linker error "undefined symbol main" means that the linker could not find a definition for "main" in the project code. The C startup code in the runtime library, after performing its initialization calls "main" and if the linker cannot find this function in your project code it will generate the error. You may want to ensure that the source file which defines main is not excluded from build by mistake, and/or that the correct source file is added to the project (since you mention below that the file name seems to have changed).

     

  • Hi Aarti:

     

    If it would not be too much trouble could you explain to me how to 'ensure that the source file which defines main is not excluded from build?'

    I suspect this is the problem but I'm not familiar with CCE enough to be sure I'm doing it right.  The changed title suggests that I may have screwed up a file, is there any way to uninstall CCE so I can re-install it, hopefully with the files intact?  Or a way to find that file and check to see if it has been inadvertantly changed?

    Thanks very much for your time and effort.

     

    Larry

  • In the CCE C/C++ Projects view, the source files will be listed under each Project. If a particular file is "excluded from build" (which is done by right-clicking on the file name the selecting "Exclude File from Build"), it will display it on that pane.

    If your workspace that contains your projects is in a different folder when the CCE installation area, then you can uninstall and reinstall CCE without affecting your project files. To get a clean install of CCE, make sure to first uninstall the existing CCE using Windows Add/Remove Programs, then delete the directory where it was installed (as some files may be left behind) and reinstall.

     

  • Aarti:

    I had inadvertantly turned off a file and had not checked the pane you described.  Everything works fine again.

    Thanks for your help!

     

    Larry

**Attention** This is a public forum