EmbDev.net

Forum: ARM programming with GCC/GNU tools Cannot connect to LPC2129 uIP server


von Javier R. (fjrg76)


Rate this post
useful
not useful
Hi!!

I've been trying for a while to connect to the OLIMEX LPC2129 board,
however I haven't. The server is up and running (I guess so) in both
stand alone and within the freertos port.

Obviuosly the IP address is wrong, but I'm not TCP expert by far, so
I've tried some addresses but none work. This is my net configuration:

1. Router is at 192.168.2.254
2. Net addresses range from 100 to 200,
3. This PC is at 192.168.2.100, my laptop is at 192.168.2.101
4. uIP server is (or I try to be) 192.168.2.102

an extract from the uipopt.h file is like this (without all the stuff)

#define UIP_FIXEDADDR    1

#define UIP_PINGADDRCONF 0

#if 0
#define UIP_IPADDR0     192U
#define UIP_IPADDR1     168U
#define UIP_IPADDR2     2U
#define UIP_IPADDR3     102U

#define UIP_NETMASK0    255
#define UIP_NETMASK1    255
#define UIP_NETMASK2    255
#define UIP_NETMASK3    0

#define UIP_DRIPADDR0   192
#define UIP_DRIPADDR1   168
#define UIP_DRIPADDR2   2
#define UIP_DRIPADDR3   254

#else

#define UIP_IPADDR0     192U
#define UIP_IPADDR1     168U
#define UIP_IPADDR2     2U
#define UIP_IPADDR3     102U

#define UIP_NETMASK0    255
#define UIP_NETMASK1    255
#define UIP_NETMASK2    255
#define UIP_NETMASK3    0

#define UIP_DRIPADDR0   192
#define UIP_DRIPADDR1   168
#define UIP_DRIPADDR2   2
#define UIP_DRIPADDR3   254

#endif


Am I missing something?? Do I need to change to some other ip address??
Thanks to everybody!!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.