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.

Looking for a working HTML demo - all attempts at TivaWare demos not working

Other Parts Discussed in Thread: EK-TM4C1294XL

(interim update) - I just now realized that there is specific setup and notes for makefsfile in 'SW-EK-TM4C1294XL-UG-2.1.3.156.pdf'. Most specifically I see that there are command line options there which I did not use (e.g. -h)! I will thus hold this question until I have finished going through this and trying it out too! :)

Problem

Is there any HTML server demos available within TivaWare, from TI or elsewhere? I have spent hours this morning attempting modification of the enet_fsdata.h in the TivaWare enet_lwip demo code, with the makefsfile utility and nothing is working.

Question

I could debug my current code to attempt towards success but instead I pause, take a deep breath and ask - has TI done this before, and provided a demo for you to use? :)

Goal

The ultimate goal is to get my hands into HTML serving of an index.html, hopefully streaming some type of content (e.g. data) ultimately.

  • Hello Justin,

    Have you taken a look at the enet_io example under the EKTM4C129XL board examples? This is an example of the TM4C hosting a web server. It uses 2 different methods to provide the web pages (C:\ti\TivaWare_C_Series-2.1.3.156\examples\boards\ek-tm4c1294xl\enet_io).  Section 2.17 of the userguide SW-EK-TM4C129EXL-UG-2.1.3.156.pdf has a more detailed explanation of what it does.

    Also, I've attached a PDF of a section of a training where the enet_io was used as an exercise for the class. The slides walk through the project setup, import and some customization potential in a step by step manner. Note that these are old slides so some references are old (for example they mention CCS5.5 as the IDE).

    0243.Enet_IO Step by Step Example Slides.pdf

  • Well thank you Chuck, again for helping me solve my problems and come to conclusion!! :)!

    See the attached final_example_makefsfile.zip for clear and detailed illustration of how I solved this by working example. See the two other ZIPs for pre and post solution!

    Thank you Chuck!!

    Procedure (also found in final_example_makefsfile.zip/procedure.txt)

    1. Update the contents of /html to hold your webpage
       
    2. Make sure no copy of enet_fsdata.h is present in this directory

    3. Run demo.bat. A new enet_fsdata.h is generated from the contents of /html into this directory

    4. Take the generated enet_fs_data.h and paste it into the project, overwriting the pre-existing file

    5. Clean your CCS Project

    6. Build your CCS Project

    7. Open PuTTy, connect to Tiva

    8. Launch CCS Debug session on your project. Wait until "Open a browser and enter the IP address." appears in PuTTy

    9. Open a web browser and navigate to the IP Address delivered in PuTTy (e.g. 192.168.1.55/ for my test)

    10. Validate you see the page, that the sub pages work, that the image works and that the video works

    Complete! :)

    final_example_makefsfile.zipti_enet_lwip-orig.zipti_enet_lwip-newHtml.zip

  • Hello Justin,

    Very glad I could help point you in the right direction and we very much appreciate you following up with a post of the working solution. This helps add depth to the information exchanged on the forum and is much appreciated!!
  • Hey Chuck,

     Here is my stored example code :)

    8877.ti_enet_lwip-newHtml.zip