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.

how can i use the stellaris example(any) as a new project

Other Parts Discussed in Thread: CONTROLSUITE

hi all,

I being new to stellaris and ccs, facing some problems.

i am working on the ethernet part of lm3s9b96 for which i am taking the reference of enet_io code of it. But i have some queries for the same:

1) i have created the workspace in a new project folder and have also copied the enet_io code in it. when i open ccs and try to import this copied code, i could not open the files and get an error instead saying "error retrieving content description for resource enet_io/cgifuncs.c"

2) and else if i create a workspace and i import the project directly from stellarisware/boards/lm3s9b96/enet_io and if i check the the option "copy project in workspace" i can import the project properly but when i try to build it i get many errors which is because it cannot find some of the files

so i would like to know how to create a new project folder where in i only have to keep the library files and other .c files related only to enet_io so that it can work independently of stellarisware folder.

 

  • Hi Saki,

    please have a look here at this wiki topic on linking and adding files to a project.   If you still have issues just let us know.

    http://processors.wiki.ti.com/index.php/Portable_Projects

    Best Regards,
    Lisa

  • saki ss said:
    and else if i create a workspace and i import the project directly from stellarisware/boards/lm3s9b96/enet_io and if i check the the option "copy project in workspace" i can import the project properly but when i try to build it i get many errors which is because it cannot find some of the files



    It is not recommended to "copy project to workspace" when importing Stellarisware examples because they have links to sources and libraries in other directories within the Stellarisware tree, which in turn will result in build errors.

    This article describes how to make copies of Stellarisware example projects: http://processors.wiki.ti.com/index.php/Creating_copy_of_example_project

  • hi all,,,

     

    i tired to go torguh the suggested links.. and follow those steps...but it was in vain..:(

    i have to create the folder in not the same directory level..but at a different directory level inside stellaris ware..(enet io code is in stellarsware/boards/9b96/enet_io and i would want it to be in boards/enet_io along with the drievrlib and other folders) I have understood somewhat i have to change in include options and with macros...but could not reach to the point....

    please if any1 can help out....

  • Hi Saki,

    Yes if you want to start making that level of modification to the project structure then there will be some further steps, including probable changes to the macros.ini as you seem to realise.

    Did you notice this tip from that wiki page?  Have you tried modifying the install root for your case (obviously the below is specific to the C2000 example)?   The same basic idea applies to the stellaris examples as well with their install root.  In this way you should be able to "correct" the directory level. 

    Tip: To determine which root level to make a copy of, go into the project folder, open the file macros.ini and find the root level that the macro there resolves to. For example, the macros.ini within C:\ti\controlSUITE\device_support\f2833x\v132\DSP2833x_examples_ccsv4\adc_soc sets INSTALLROOT_2833X_V132 = ../../, which sets the root to C:\ti\controlSUITE\device_support\f2833x\v132, so you would make a copy of v132 folder.

    I hope this helps a bit further.

    Cheers,
    Lisa