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.

CCS/TM4C129ENCPDT: TIVA Webpage Implementation

Part Number: TM4C129ENCPDT

Tool/software: Code Composer Studio

Hi,

I am using TM4C129EXL Evaluation kit with CCS 7.0

I have a requirement to establish a webpage from my TI Evaluation Kit and pass data between the controller and web page. For that, I have imported the "enet_io" example program from its example program.

directory. I am new to web server-based applications. 

The webpages are stored as .html format inside the program directory under a file name called "fs". I opened a html page in note pad and edited the heading and some content of the page. I opened the edited html page in chrome to confirm whether the modified items are updated as webpage. It got updated.

But if I upload the firmware into the controller and enter with the ip address, the modified web page is not getting updated. Only the old unmodified version appears. 

It seems that even if I modify the webpage html files inside the 'fs' folder, while updating the firmware it is not getting into the controller.

Kindly say where I am wrong? 

 Thank You!

  • Hi,
    No, that is not the way to do it. You will need to rebuild the io_fsdata.h. Think of it that you need to convert the modified image into the C code. The webserver doesn't reload an external html file on the fly during runtime. See the example instruction. Here is the snippet of the example instruction.

    Source files for the internal file system image can be found in the “fs” directory. If any of these
    files are changed, the file system image (io_fsdata.h) should be rebuilt by running the following
    command from the enet_io directory:
    ../../../../tools/bin/makefsfile -i fs -o io_fsdata.h -r -h -q
  • Thanks, Charles.

    I tried running the command and it worked. I should have read the example instructions first.

    And the enet_io example has two methods to perform data transfer and control the micro controller board - Using HTTP Request and Another using SSI/CGI tags.
    As mentioned in the description HTTP Request method does not reload the page after every data transfer while the SSI/CGI tag method does. That method looks good. And I can understand the js and html coding part for it.

    But on the server (TIVA microcontroller) side, the firmware coding goes deep into many layers. But it also looks interesting and I'm really excited to understand that part of embedded coding completely.

    Is there any detailed documentation for the lwip and httpserver functions? Or any other documentation that can help me understand the functions in http server layer of 'enet_io' program.

    Thank You for your time!
  • Hi,
    Glad that it works for you now. As far as the turning on the LWIP debug I have answered you in your new thread. e2e.ti.com/.../792505. I will close this thread here.