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.

File locations in CCS4.1

Hello again,

By default CCS4.1 keeps source files and output files within the Eclipse workspace directory structure. Because of our need to keep the source in subversion, swap between different machines of team members and run builds on a build server it is necessary to keep our files outside of the Eclipse workspace. I now have a CCS4 project that references the source files by means of links to the actual file locations and this works fine except for the following two problems.

1. Because of special memory layout needs we have a custom linker file. This is specified at project creation time or may be specified via the Properties->CCS Build->General tab dialog. However, when a file is selected via the browse button it is copied from the source location to the Eclipse workspace from where it is used.

My question is how can I get the project to use a link top the linker file rather than the copy in the workspace?

2. There is a similar problem with the linker output. While the output file name and extentions may be set in the project properties dialogs the .out and .map files are always placed in the Eclipse workspace. Again for similar reason above we need then to be in our external directory structure where the source is.

How can I direct the output files away from the eclipse workspace directory structure?

Hope you can help,

Regards,

John

  • The project wizard makes a copy of the linker command file (.cmd) in the project.  However you can "link" a .cmd file just like a source file.  Make note of the name of the .cmd file that the wizard copied in.  Delete it from your project (if this is a custom cmd file copy it somewhere first).  Right click on your project and select "link files to project".   If you are using MSP430 the file will be in \ccsv4\msp430\include, similarly for C2000 it would be in \ccsv4\c2000\include.  Or you could copy the file wherever you want it and then link it from that location.

    To specify a different location for the map file go into the "basic options" group for the linker build options.  For the option that specifies the map file name you can insert a path in front of it.   Same story for the .out file.

    Have you thought about having the whole project outside of the workspace folder, i.e. the project itself is in subversion. 

     

    Regards,

    John

     

  • I share the need also in addition I can't even change the compiler/linker out file name..  I can only change the debugger file name once.. Once I change it the access I used to changed it does not appear any more.. 

     

    Dave

  • Dave,

    Are you looking to have the project outside of your workspace?  If so you can do that when you create the project, just uncheck the box to "Use default location" in the project wizard and specify a different folder.

    To change the name of the .out file go to the build options, select the Build settings tab.  You can change the artifact name there which is the program name.

     

    Regards,

    John

     

  • John

     

    Thanks for getting back to me quickly. When you said 'Build Options' I take it you mean 'Build Properties'. If  there is a 'Build Option' I need help yo locate it ;-)

    The only thing I see under the Build Properties are ' C/C++ Build' and 'CSS Build'

     

    ' C/C++ Build'  Provide a blank screen with non cleared images from the previous screen

     

     

    CSS Build does not provide anything that is even close to changing a file name

     

    Thanks

    Dave

  • Dave,

    Sorry about that.  Right click on your project and select "Build Properties".   "C/C++ Build" should be highlighted in the tree on the left.  Then click on the "Build Settings" tab on the right.

    If you are having dialog drawing issues try resizing the dialog (try both the dialog itself as well as the splitter between the tree and the tabs).  There is an issue on some 64bit machines with the SWT library that our version of Eclipse uses that causes some dialogs to not draw properly.  I am running Win7 64bit and have never seen it but I know of others who have. 

     

    John

  • John,

     

    It appears this SWT library issue has me in a few areas.  When I'm in the debug properties form I have he same problem, but now with dragging the one form control and resizing I get ALL the controls without ant SWT error message box. The BAD news is that  with the Build Properties frame, dragging/resizing a control does provide 'some' of the missing controls and an error message box, shown below.

     

    The BAD is that the information in the Tabs are NOT shown.

     

    Is there a file (i.e XML) I can edit to permit me to change the output file name?

     

    Dave

  • Hi Dave,

    I have a newer SWT plugin for CCS4.x, please accept my friend request and I'll send it to. The new plugin helps to resolve the redraw issue for Win7 64bits.

    Regards,
    Patrick

  • Dave,

    Is everything working now?

     

    Posting the instructions from Patrick below for others who might have the same problem:

    1. Backup the 2 files that start with org.eclipse.swt that are present in \ccsv4\eclipse\plugins
    2. Go to this link and download the zip http://e2e.ti.com/members/4199/files/org.eclipse.swt.win32_5F00_3.4.0v3448f.zip.aspx
    3. Extract the 2 files and drop them into the directory above
    4. Open a Windows command prompt and to into \ccsv4\eclipse and run "eclipse -clean"

    Limitation: Some windows like Cache Tag Ram View and the MMU page table view will not function (these issues will be fixed later this year)

     

    John