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.

CCS/TMS570LS1227: HALCoGen EMAC driver with lwIP demo fails

Part Number: TMS570LS1227
Other Parts Discussed in Thread: HALCOGEN, , DP83640

Tool/software: Code Composer Studio

Hello everyone, I am using the HALCoGen EMAC Driver with lwIP Demonstration of TMS570LS1227 to develop network communication functions.

The following is my hardware and software configuration:

i.    MCU:TMS570LS1227;

ii.   PHY:DP83640 ,using MII interface;

iii.  Development demo:HALCoGen EMAC Driver with lwIP Demonstration,v00.03.00 ;

iv.  Here is part of my sch;

v.   I am change lwip_main.c for using static IP !

vi.   I downloaded the program to the chip, connected the target board and PC with the network cable, and after the system was powered on. The target board cannot respond to the ping command of the PC!The following is the output information of the system!

I suspect that the LWIP stack is not running after the network interface is initialized!!!

and I suspect that HALCoGen EMAC Driver with lwIP Demonstration (v00.03.00) does not implement the sys_now( )  function to handle ARP timeouts and TCP timeouts operations.

Anyone who help me solve this problem?

Thank you very much for your reply!

  • Hi Lancell,

    The LWIP V00.03.00 demo code we provided on wiki page does not supports device LS1227. Have you changed the device configuration in this demo for LS1227 device?
  • Hi Lancell,

    I recommend to add s strong pull-up to MII_RXD[3:2] signals which are used as PHY address signals during boot. The PHY device has week pull-down resistor for those 2 signals, abut MCU device has internal pull-up. If there is no external pull-up, the PHY address used in your code may not be correct.
  • Hi Wang,

    i.    my IDE is Code Composer Studio . Version: 8.2.0.00007. The following is my project configuration, I am sure that LS1227 configurationthis is used in my project.

    ii.  Follow your recommended method, I used external pull-up  to MII_RXD[3:2],  But the phenomenon of failure still has not been eliminated.

    iii.   In the above picture, the initialization phase can sometimes be successful, but the LWIP stack is not running! I don't think the ping response error is related to the PHY address error.

           I suspect that HALCoGen EMAC Driver with lwIP Demonstration (v00.03.00) does not implement the sys_now( )  function to handle ARP timeouts and TCP timeouts operations.

    v.   Do you have a TCP client exampes for with the LWIP stack used Hercules MCU? Can you provide it to me?

    Thank you very much for your reply!

  • Hi Lancell,

    I just tested the demo code on LS1227 HDK, it works without any issue. Please double check your HW settings.