Description
Graph
basic-emac-uip-helloworld-project
Purpose
This project implements two examples of the
uIP TCP/IP stack:
- web-server. Example enables the device to act as a web server, displaying network information through an HTML browser.
- hello-world. Example makes the device responds to telnet connections on port 1000.
Hardware requirements
The system reset signal NRST is connected to both the Ethernet PHY and the JTAG/ICE interface. This prevents the project from working properly when a JTAG probe is connected. To disconnect NRST from the ICE interface, the following modifications must be performed:
- AT91SAM7X/XC-EK: cut strap S2.
- AT91SAM9XE-EK: remove resistor R14
- AT91SAM9260-EK: remove resistor R14
- AT91SAM9263-EK: remove resistor R18
See
- emac: EMAC interface driver
- dm9161: PHY interface driver
Description
Please refer to the
uIP documentation for more information about the TCP/IP stack, the hello-world and the webserver examples.
If yo don't want to use DHCP, please open file uip-conf.h and comment the line define UIP_DHCP_on
Usage
- Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
- On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
- 115200 bauds
- 8 bits of data
- No parity
- 1 stop bit
- No flow control
- Connect an Ethernet cable between the evaluation board and the network. The board may be connected directly to a computer; in this case, make sure to use a cross/twisted wired cable such as the one provided with the evaluation kit.
- Start the application. It will display the following message on the DBGU:
-- Basic EMAC uIP Project xxx --
-- AT91xxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --
- MAC 00:45:56:78:9a:bc
- Host IP 10.159.245.156
- Router IP 10.159.245.157
- Net Mask 255.255.254.0
|
- For the webserver example, type the IP address (Host IP in the debug log) of the device in a web browser. The page generated by lwIP will appear.
- For the hello-world example, connect to the device IP address using telnet on port 1000. A greeting message will appear.
Source
The documentation for this Directory was generated from the following files:
main.c