Hello,
I trying to develop a project with ethernet. I took the example code of enet_io and changed the code to use a static ip as follows
Added the following code
uint32_t gStaticIPaddr;
uint32_t gNetMask;
uint32_t gWGaddr;
//setting the ip address to 192.168.100.9
gStaticIPaddr= 0xC0A86409; //192-->0xc0, 168-->A8,100--64 192.168.100.9
gNetMask=0xFFFFFF00;
gWGaddr=0;;
gNetMask=0xFFFFFF00;
gWGaddr=0;;
//
// Initialze the lwIP library, using DHCP.
//
lwIPInit(g_ui32SysClock, pui8MACArray, gStaticIPaddr, gNetMask, gWGaddr, IPADDR_USE_STATIC);
// Initialze the lwIP library, using DHCP.
//
lwIPInit(g_ui32SysClock, pui8MACArray, gStaticIPaddr, gNetMask, gWGaddr, IPADDR_USE_STATIC);
However the code stuck in 'Waitng for IP address'
Appreciate your help
Regards,
Ramesh