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.

TM4C1294NCPDT: Looking for config.cgi file for enet_s2e project

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

We are implimenting a LAN interface based in the example enet_s2e.  I found that the form for setting the port configurations send parameter to a file config.cgi. However there is no such file in the example folders for the project.

Here is the code from the file config1.shtm:

  <form name="config" action="config.cgi" method="get">
              <input name="port" value="0" type="hidden">
              <table width="100%" border="0" cellpadding="2" cellspacing="2">
                <tbody>

The path to this code is:
C:\ti\TivaWare_C_Series-2.1.1.71\examples\boards\ek-tm4c1294xl\enet_s2e\fs

Perhaps I am misunderstanding something here.
Any ideas?

  • FYI, form creates the following GET command in the URL of my browser:

    10.1.10.130/config.cgi
  • I found an additional case of missing file. The form for S2E Miscelanious Settings reeres to a file name "ip.cgi" which Is not in the project example files.
  • More information. I found in the file config.c a function "ConfigIPCGIHandler" which ! Performs processing for the URI ``/ip.cgi''.
    So maybe the URL which is not a file in the FS folder but rather something handled in the HTML server.

    If so then changes I made to the form ( I eliminated the fields for the serial port as I did not want it changed for our application.) may have broken the CGI processing and given me the file not found error.

    I will have more to read about tomorrow no doubt...
  • Hi Forrest,

    I don't have much experience with enet_s2e. However, here is the enet_s2e project that is build for the latest TivaWare 2.1.4.178. Not sure if your problem is because of the TivaWare version you are using.  Please separate install the latest TivaWare and try with this enet_s2e.

    5381.enet_s2e.zip

  • Hello Charles,

    I have made progress and discovered the problem was my understanding.
    I deleted some Form elements which passed variables to the CGI argument in the URL after you press the Submit button which broke the CGI processing.

    Now that I have restored the Form elements it works again. I have temporarily hard coded the Form elements to limit the input to fixed values, example baud rate 115200 which solves the problem of preventing users from setting a baud rate which breaks the system.

    A better fix will be to change the CGI handling to work with fewer arguments. Time permitting I will look into that.

    I will make this as resolved since it was my misunderstanding at the root cause not a missing file.

    Good evening to you.
  • Charles,
    I though I would see of the problem remained in the file you sent but I have run into the problem that I can not get the project to load in CCS7.

    I unzipped the file to:


    C:\Users\Lee\Documents\Tiva\5381.enet_s2e\enet_s2e
    I opened CCS7 and tried to make a new workspace at the same location.
    I then had an empty workspace.
    I tried importing the CSS project and navigated to the same folder. The import dialog let me select the project.
    I then chose "Finish" for the import.

    I got the following error details:

    See details below.
    Invalid project description.
    C:\Users\Lee\Documents\Tiva\5381.enet_s2e\enet_s2e overlaps the workspace location: C:\Users\Lee\Documents\Tiva\5381.enet_s2e\enet_s2e

    I had to cancel the import to leave the dialog.

    Is there something about importing projects in a new workspace I am missing?
  • Hi Forrest,

     I'm not sure what is wrong with the import process. I created a new workspace and I can import it just fine using either CCS7 or CCS8. I have the "copy projects into workspace" checked. What if first unzip the zip file and import by "select search-directory"?

  • Hi Forrest,
    I have not heard back from you. I assume you are able to resolve the compile issue. I will close the thread for now. If you have new question please open a new thread or update this thread if your issue is not resolved.