nobody wrote on Tuesday, July 18, 2006:
I have not been able to connect to the HTTP server in the lwIP demo. I suspect that the root of the problem is ‘operator error’ (*ahem*), so I’ll list what I’ve been trying and perhaps someone can help me see what I’m doing wrong.
-----
I’m using the AT91SAM7x256-EK with the CrossConnect programmer. The way I understand it, this is the same hardware setup as the one Richard describes on the page for the lwIP demo.
I connected the programmer’s USB cable from the board to a USB port on the back of my Windows PC and connected a crossover ethernet cable from the ethernet port on the board to the ethernet port on a second ethernet card installed in my PC.
I edited SAM7_EMAC.h so that:
* The ethernet address is the default address (0, 0xbd, 0x33, 0x06, 0x68, and 0x22)
* The IP address used by the board is 192.168.0.49
* The gateway address is 192.168.0.3 (this is a BS address, as I’m not interested in talking to different networks)
* The net mask is 255.255.255.0
In SAM7_EMAC.c, I did not edit the value of USE_RMII_INTERFACE (meaning that it is still 0).
As I alluded to earlier, my PC has two ethernet interfaces. One connects to the real network, and the other I use for projects like this. On that second ethernet card, I used the IP address 192.168.0.50, the subnet mask 255.255.255.0, and the gateway address 192.168.0.50 (which shouldn’t signify anything special, if I understand correctly. I haven’t gone out of my way to set up the interface to forward traffic or anything).
I loaded the rtosdemo.hzp file in Rowley CrossStudio and built it. It built with no errors. Then, I connected to the target using the CrossConnect, and selected ‘build and run’. The code built (again), was uploaded to the device, and verified, all with no errors.
I opened HyperTerminal and established a connection with the board (it was COM3 for me) and see the alphabet stream by like it should. The DS1-DS4 LEDs blinked as described on the page for the demo project. The DS6 LED (‘FULL DUPLEX’) was orange, and the DS7 and DS8 LEDs (‘SPEED 100’ and ‘LINK & ACT’) were solid green. When I entered ‘http://192.168.0.49’ into my browser, the DS8 LED blinked once immmediately, and then began blinking rapidly shortly thereafter. The browser timed out and did not bring up a page at all.
I tried examining the ‘status’ of the ethernet connection on the computer, and it (the Windows dialog generated from clicking ‘View status of this connection’) confirmed that packets were being sent and that none were being received. I checked the crossover cable to make sure it was wired correctly. It was. I tried disabling the primary ethernet address (for the real network), and trying again. Still no luck. I tried changing the first segment of the ethernet address to 0x08, and had no success. I tried changing USE_RMII_INTERFACE to 1, but that just made DS6-8 blink simultaneously and intermittently, so I’m guessing that was the board’s way of telling me that I want USE_RMII_INTERFACE set to 0.
The 192.168.x.x network is just the board and my PC, so there shouldn’t be any address conflicts. I also tried using a ‘straight’ cable to connect the board to a hub and using another straight cable to connect the hub to the PC (neither one in the ‘Uplink’ port).
I’m sure that I’m just doing something stupid, or that I’ve overlooked something simple. Either way, I’m out of ideas and would appreciate any input.
Thanks a bunch!
Mike Sheffler