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.

error in ethernet connection

Other Parts Discussed in Thread: OMAPL138

I am using evmomaqpl138, spectrum digital sd560v2 and starterware 01.10.03.03 ethernet examples.

I have a switch where I have connected  the network, and a hub where I have connected the evm and the host pc. I am trying to get the ipaddress in the code using a static ip address, staitc gateway and static netmask but  the ip gets a value of 0. In the if:

if(!((MDIOPhyAliveStatusGet(sitaraif->mdio_base)

>> sitaraif->

phy_addr) & 0x01 )) {

return ERR_CONN;

}

 in the sitaraif.c file it returns true making an error in the connection, as if there was no link. I changed the mac address and the staic ip in the lwipopts.h file. I've tried different arrangements in the switch and hub and has not made a difference. The first time I tried it, it worked and I was able to see in Teraterm the ip thru UART but have have not been able to do so since.

If anyone has any ides plase let me know. thanks in advanced.

Regards,

Michelle

  • Hi Michelle,

    Whether OMAPL138 EVM (Your board) Ethernet interface is working fine before . Have you tested the Ethernet interface by some other software u-boot/Linux or etc?

    Whether you are doubting the evm board's ethernet interface or Starterware software for your configuration or your test setup?

    Please specify the above details and give more details on this.

    -Thanks

    N. Balaji

     

  • Hello,

    When I said it worked fine the first time I meant just one time, (on the first run). After that, when tried again it did not work. I tried with two different evm's and still I was getting an ip of 0, so I don't think it's the board. I did not change anything to starterware's example source code exccept for the mac address to be that of the board and the static ip address. I don't understand why it would work once and then with the same configuration and setup it would stop working.

    Thank you,

    Michelle