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.

LwIP RM57 DEMO does not work if Ethernet cable is not plugged

Hi there,

I got the demo to work and was just testing its behavior among different scenarios. One of them is starting the system without an ethernet cable plugged in the ethernet port.

In this configuration, the demo serial output is:

DEBUG - Getting PHY ID....SUCCESS
DEBUG - Getting PHY Alive Status...SUCCESS
DEBUG - Getting PHY Link Status...!!! ERROR !!!..DONE


-------- ERROR INITIALIZING HARDWARE --------

NOTE: if I connect the ethernet cable to a PC with the wrong IP and network/netmask, it is still able to initialize the hardware.

Is this how it is supposeto work? Or the demo doesn't have the feature to initialize the interface without an actual connection?

Best regards,

Julio

  • That's what it is supposed to do. The LINK cannot be established if the cable isn't plugged in.

    It would take a lot more work to make the demo dynamically sense link up/down and you can do this work but the demo doesn't show how. My understanding from talking to a colleague is that the is a timer routine in lwIP that you can do things like periodically check the link state in, but we don't show that in this demo...

    It's one reason why this demo is not really something you would just plan to use as-is in a real product.
    If you are on a tight timeline a commercially available TCP/IP stack might be the way to go because we can't provide much support for lwIP here. You'll need to self support based on the lwIP community.