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.

EMAC Initiate problem about the TMS570 without the Ethernet cable

Other Parts Discussed in Thread: DP83640, TMS570LS3137

Hi,

I'm using the TMS570ls3137 HDK board ,When I initialize the Ethernet function using the DP83640, if then the cable is linked, the initialization will be ok, but if the cable is not linked already, the initialization will be in a dead cycle in the MDIOPhyRegRead() function which is generated by the HCG in the mdio.c.

While, the application here need the board to control other can nodes, so it should be initialized with or without the ethernet cable linked, the requirement is that with or without the ethernet cable linked to the net, the board should do program work so that the can connection between the nodes would be ok once the board is powered.

At that circumstance, how can I change the Initialization of the Ethernet function in the demo?

Regards,

yong

  • Yong,

     We will forward your query to our expert who will provide an response

    Hercules forum support

  • Yong,

    As I understand it, the application is hanging, waiting for the link to be setup. Is that correct? The initialization in the present Ethernet + lwIP Demo is supposed to give an error message in case a link cannot be established. Could you post some of your code so that we can get more information to recreate the problem?

    Also, I wanted to confirm what your requirement was - You are trying to separate the initialization of Ethernet such that the application can start running as soon as the Ethernet link is established. Do correct me if i'm wrong.

    Please upload some code and more information. I'll do my best to resolve it.

    Regards,

    Chaitanya

  • Hi,Chaitanya

    what you understand is correct. Can you give me your email, I'll send the code and more information to you.

    Regards,

    yong

  • The program code is stopped(of course without the ethernet cable insert, when insert the cable, the program runs properly) in the  MDIOPhyRegRead() function which is generated by the HCG, shows below:

    the function is called in the Dp83640LinkStatusGet() function and the Dp83640AutoNegotiate() function which are in the phy_dp83640.c file, the function above is essential for the intialization, I don't know how to modify it to meet my requirements(the program should run other codes(other parts except the Ethernet function) even if the Ethernet cable is not insert, the function I need about the Ethernet is just to receive or send UDP packets), so can you help me with the modification of the hardware initialization?

    Regards,

    yong

  • Yong,

    I tried out the demo without the cable and it exits the init, stating there's an error in initializing hardware. Please send me your code, I will look into it.

    Regards,

    Chaitanya