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.

I am starting an Ethernet based project



Hi All,

I am looking for a good starting point for a project for the TM4c1294 processor, starting with a demo board.


I figured that I would start with an Ethernet base demo project and then add my code to it.  I decided to use use "enet_weather" and it compiled with a single tweak.  So then I created a new CCS project in the same project directory and copied the enet_weather source [*.c and *.h] across.  I needed to change some file names and copy my link path environment paths across.  That part I could understand.

Now I have 53 errors and most of these relate to a Packed_struct from what I can see.  And some basic things like constant names in an include file are now not known for some mysterious reason.

So I have seen this before while trying to get the ethernet stuff to compile.  So I do not think that I will resolve this by throwing time at it.

So can you suggest a better route to start a new project with?

Thanks.

  • Rather than create a new project, I would recommend simply copying the existing project (enet_weather), giving it a new name, and then editing the files as needed.

    There are properties (compiler flags, defines, include paths, etc.) that are part of projects that we provide in Tivaware that are not included in a CCS project that is created new with the CCS Wizard.  Some of the TivaWare content will not compile correctly without these flags and settings.

    --Bobby

  • Hi Bobby,

    I can understand now why I have had so much trouble trying to copy.  Thanks for explaining it.

    I created a new folder in my Projects directory, copied all of the enet_weather folder also in my Projects directory into this new folder.  I then renamed the enet_weather .c and .h files I could find.  When I went to import existing CCS Eclipse project I get : "enet_weather [G:\Project\Env_Monitor]" and a check box that does not check.

    So I renamed the file names I changed back to the old names and I get the same response.

    After some trying I see that CCS does not want to import the same project more than once.

    So could you expand a little more on "simply copy the project"

    I did import another project into CCS to see if I can change its name, but no luck.

    ++Wade

  • My apologies for the delay.

    I have setup a workspace using CCS 6.0 to ensure that I give you accurate steps.  The first thing I did was to import the library projects (driverlib, grlib, sensorlib, and usblib) into the CCS workspace.  Second, I imported the enet_weather app.  Once these were imported, I rebuilt each library/application, to ensure that I had a valid setup.

    To copy I project, I should have been more clear and stated that this copy should be done within the CCS environment.  To this, simply right-click on the project you wish to copy from (e.g. enet_weather) in the Project Explorer and select the "copy" option.  Next, right-click in the Project Explorer and select "paste"  This will bring up a Copy Project dialog/prompt.  Give the project a new name (e.g. my_enet_weather).  Leave the "Use Default Location" box checked.  Then press OK.

    You then have a duplicate copy of the enet_weather app, with copies of all of the application source files, and all of the appropriate project configuration settings.  You can then edit/rename/etc within that project and things should still build with all of the appropriate flags/settings/references.

    --Bobby

  • Hi,


    I followed these directions indeed it works just like you say.  It "even" compiled unlike many previous attempts, so this ends well.  I may now continue.

    For data I used CCS Ver 5.4.0 and the examples under TivaWare_C_Series-2.1.0.12573.  I say again, there were no issues.


    Thanks,

    Wade