SAMV71 Xplained Ultra Software Package 1.5

GMAC lwIP Example

Purpose

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

Requirements

This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained board.

Description

Please refer to the lwIP documentation for more information about the TCP/IP stack and the webserver example.

By default, the example does not use DHCP. If you want to use DHCP, please open file lwipopts.h and define "LWIP_DHCP" and "LWIP_UDP" to 1.

Usage

  1. Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rate
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  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 terminal:
        -- GMAC lwIP Example xxx --
        -- xxxxxx-xx
        -- Compiled: xxx xx xxxx xx:xx:xx --
          MAC 3a:1f:34:08:54:54
        - Host IP  192.168.1.3
        - Gateway IP 192.168.1.2
        - Net Mask 255.255.255.0
    

Type the IP address (Host IP in the debug log) of the device in a web browser, like this:

    http://192.168.1.3

The page generated by lwIP will appear in the web browser, like below:

    Small test page.#
Note:
Make sure the IP address of the device and the computer are in the same network.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines