Basic EMAC lwIP Project 1.4

Purpose

This project implements the webserver example of the lwIP TCP/IP stack. It enables the device to act as a web server, sending a very short page when accessed through a browser.

Hardware Requirements

This application will work on the following evaluation kits:

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:

Description

Please refer to the lwIP documentation (included in the package) for more information about the TCP/IP stack and the webserver example.

Usage

  1. 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.
  2. Optionally, on the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with thesesettings:
  3. 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.
  4. Start the application. It will display the following message on the DBGU:
    -- Basic EMAC lwIP Project 1.4 --
    - MAC 23:45:56:78:9a:bc
    - Host IP 10.159.245.156
    - Gateway IP 10.159.245.157
    - Net Mask 255.255.254.0
  5. Type the IP address (Host IP in the debug log) of the device in a web browser. The page generated by lwIP will appear.
Atmel Corporation ©2008