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.

EK-TM4C1294XL s2e Example Code

Other Parts Discussed in Thread: EK-TM4C1294XL

Hello,

I am attempting to use a EK-TM4C1294XL and run the s2e example provided here. The example uses FreeRTOS and lwIP. I am able to successfully program the microcontroller and connect to the webpage using the IP address provided.  I noticed that the IP address would return a "webpage not available error" after about 60 minutes. I pinged the IP address every 60 seconds. After 87 minutes, I received the "destination host unreachable" message. I didn't notice any sort of timeout in the code. Am I missing something? In the end, I'd like to remove or extend this timeout (if there is one). 

CamK

  • Hello Cam

    The post has been assigned to App Note writer.

    Regards
    Amit
  • Amit,

    While awaiting App Note writer's response, I noticed this recent thread. Could this be related? The s2e example uses the lwIP stack as well and seems to display the same disconnection issue. 

    Regards,

    Cam K

  • Hello Cam,

    It may be or it may be not. The thread seems to be using the older version of TivaWare where we did find the memory leak and subsequently fixed it.

    Regards
    Amit
  • Any word from the app note writer or any possibly the writer could be pinged again?
  • Hello CamK,

    Will ping him again. Sorry for the delay.

    Regards
    Amit
  • Hello CamK,

    Sorry for the delay in addressing your post.

    lwIP port on TivaWare 2.1.0 had a memory leak issue. It was fixed in TivaWare version 2.1.1. If you are using v2.1.1 then I will have to investigate. Could you let me know what version of TivaWare you are using?

    Thanks,
    Sai
  • Hello Sai,

    Thank you for responding. I had heard mention of this memory leak issue on other posts and figured it may be related. I am using TivaWare C Series 2.1.1.71. Looking at the includes for the project, I am including lwIP 1.4.1 (.../TivaWare_C_Series-2.1.1.71/third_party/lwip-1.4.1).

    Are you able to repeat the results? I am using the TM4C1294 launchpad and consistently see the same results shortly after about an hour/hour and a half.
  • Hello CamK,

    I am not able to reproduce the issue. The following are the steps I used:
    1. Download "spma072.zip" file from www.ti.com/.../spma072
    2. Extract the zip file and copy "enet_s2e" folder into EK-TM4C1294XL board's folder in TivaWare 2.1.1. The default location for this folder is: "c:/ti/TivaWare_C_Series-2.1.1.71/examples/boards/ek-tm4c1294xl"
    3. Launch CCS and import the "enet_s2e" project from the location in step 2.
    4. Build.
    5. Program and Run using the debugger.
    6. Get the IP Address from the UART console.
    7. Input the IP address into a web browser. This should display a webpage.
    8. Open "Command Prompt" and run ping with packet size 1024 bytes, roughly one packet per second, transmitted continuously until stopped. I used the following command:

    ping <IP Address> -t -l 1024

    I ran the above mentioned ping command for 3+ hours and still able to browse the website and ping the board.

    The error you described is exactly what would happen if TivaWare 2.1.0 or older is used. Can you ensure that your project is picking up TivaWare 2.1.1?

    Thanks,
    Sai

  • Sai,

    I re-downloaded the example, placed it in the appropriate folder, and imported the project. I have had the connection up and running for ~20 hours with no interruption so far. I will keep you updated.

    Thanks for the help,
    Cam