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.

TI-RTOS HTTP Example, EK-TM4C1294XL

Other Parts Discussed in Thread: EK-TM4C1294XL

Hi,

I'm following the TI-RTOS HTTP Example from here:

I'm attempting to use a static IP address (192.168.1.2) but I'm unable to ping the EK-TM4C1294XL. I have my PC configured to a static IP address (192.168.1.3) on the same subnet. (IP mask or subnet mask is 255.255.255.0 for both my network adapter and TM4C).

I also  tried to ping the EK-TM4C1294XL both with and without a Gateway IP address. (Slide 15 shows only the IP address & IP mask being configured, but CCS gives a message saying that a Gateway IP address is required for static IP addresses.)

Is there another step not called out in the slides for static IP addresses?

Has anyone else had this problem?

FYI - I am connected to the TM4C with a switch as opposed to a crossover cable direct.

Thanks,

Spencer

  • Spencer,

    Maybe it is a configuration issue. Here is a forum thread which mentions configuration of the oscillator and the CRC error register. Maybe you can check your TM4C1294 to see if you have any errors.

    Are you using TI-RTOS 2.16?

    ~Ramsey

  • Hi Ramsey,

    Yes, I'm using TI-RTOS 2.16.

    I'm having issues on the EK-TM4C1294XL board. The thread you linked appears to be a hardware error with the crystal tolerance being too large on a PCB designed by another user.

    I can't check the CRC error register as I'm not using a debugger but instead using the LM Flash Programmer to program then run the code. 

    In the meantime, I will try to run another Ethernet example to see if that helps.

    Thanks,

    Spencer

  • I imported the example project TCP Echo from the TI Resource Explorer
    EK-TM4C1294NCPDT/EK-TM4C1294XL Evaluation Kit/Network Examples/TI Network Examples/Ethernet Examples/TCP Echo.

    The only change I made was to the tcpEcho.cfg file to make the device have a static IP address instead of the predefined dynamic.
    Ip address: 192.168.1.2
    IP mask: 255.255.254.0
    Gateway IP Address: 0.0.0.0
    Note: These were the defaults when I unchecked obtain IP address automatically.

    Good new, I could ping the EK-TM4C1294XL when running TCP Echo. Next, I tried to update my httpServer project to have the same IP settings.

    I opened httpServer and updated the IP and Gateway settings in empty.cfg [TI-RTOS] (I'm following the power point "Making a HTTP Server with TI-RTOS (and a DHCP Server too)" by Todd Mullanix - March 18, 2016)

    I'm still unable to ping the EK-TM4C1294XL when running httpServer. Nothing changed on the PC side so I'm confident it's not a PC or interface issue but instead an issue with the code.

    Any other ideas?

    Thanks,
    Spencer
  • Fixed.

    I'm now able to ping.

    I made two changes.

    1. I found I had changed the System (Hwi and Swi) stack size to 22528 instead of the Heap size
    2. I removed the "//" from #include <ti/drivers/EMAC.h> in empty.c

    Spencer
  • Sorry for not responding sooner. I'm glad you worked it out and posted your results to share with the community.
    Thank you