Forum Discussion
Altera_Forum
Honored Contributor
9 years agoi think you don't understand what you are doing there. If you disable tse how could your ethernet link work?
In your case, you have to put IP address directly like this (network_utilities.c) : (i'm not sure since i use dhcp)
int get_ip_addr(alt_iniche_dev *p_dev,
ip_addr* ipaddr,
ip_addr* netmask,
ip_addr* gw,
int* use_dhcp)
{
IP4_ADDR(*ipaddr, 192, 168, 1, 100);
IP4_ADDR(*gw, 192, 168, 1, 254);
IP4_ADDR(*netmask, 255, 255, 255, 0);
/* Non-standard API: return 1 for success */
return 1;
}
and yes you should replace the section of code i gave to you, and this one above too. please read this before trying to continue your project, you need some basis ftp://ftp.altera.com/up/pub/altera_material/12.0/tutorials/de4/using_triple_speed_ethernet.pdf