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.

TIVA C Serial to Ethernet Converter“Static IP”option.

Hi,

The Serial to Ethernet Converter for TM4C129x application note mentions
that with "S2E Miscellaneous Settings Page" we can change the “Static IP Address".
With TM4C129x launchpad, I tried to update the settings to "Static IP" but it won't change.
The Finder Utility always displays the older IP address even after changing the address.
Please let me know what is the proper procedure to change the IP address.

Best Regards
Kummi

  • Hello Kummi,

    I have forwarded your post to one of our S2E experts. They should be able to provide assistance shortly.
  • Hello Kummi,

    Can you place a breakpoint in the function "ConfigUpdateIPAddress" in the file "config.c" and see if the execution stops there? Also can you check which conditions is being executed, if or else?

    Thanks,
    Sai
  • Hi Sai,

    Thank you.

    I tried to put the breakpoint at ConfigUpdateIPAddress and changed the IP address to
    static in the S2E Miscellaneous Settings, the code doesn't stop at the ConfigUpdateIPAddres.
    It seems ConfigUpdateIPAddres is not even executed.
    You can easily re-produce this issue with TM4C129x launchpad.

    Meanwhile please let me know if there is a sample example or the reference on how to
    change the IP address to Static in the program instead of using the Miscellaneous Settings.,

    Best Regards
    Kummi
  • Hi BB,

    Thank you.

    Hi Sai,

    Just in case we would like to know what is wrong in the the Miscellaneous Settings?

    Best Regards
    Kummi
  • Sorry to revive an old topic, but I was having issues with this and came across your post. I uncovered a couple of things that may be helpful to others in the future.

    1. In 'idle_task.c', the function vApplicationIdleHook() declares and initializes a local variable bFirst. When updating the IP address of the board, the function is called and bFirst is declared and initialized to true. This happens every time vApplicationIdleHook() is called, so bFirst is always true. I think this is a bug. This prevents the following if-statement from ever being true because both ui32CurrentTick and ui32InitialTick are always the same value when bFirst is true:

    if((ui32CurrentTick - ui32InitialTick) > 2000 / portTICK_RATE_MS)
    

    This prevents ConfigUpdateIPAddress() from ever being called. I remedied this by declaring bFirst as a static bool variable.

    2. I also noticed that in lwIPTaskInitFunction() in 'lwip_task.c', lwIPInit() is always called with the IPADDR_USE_DHCP parameter. I added an if-statement as a check:

    if((g_sParameters.ui8Flags & CONFIG_FLAG_STATICIP) == CONFIG_FLAG_STATICIP)
        	lwIPInit(sysClk, pui8MAC, g_sParameters.ui32StaticIP, g_sParameters.ui32SubnetMask, g_sParameters.ui32GatewayIP, IPADDR_USE_STATIC);
    else
            lwIPInit(sysClk, pui8MAC, 0, 0, 0, IPADDR_USE_DHCP);

    I struggled with this for a bit and wanted to present this information in case anyone else runs into similar issues.