I am using evmomapl138, 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 adress 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