Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lwIP Raw HTTP basic example

Purpose

This documents data structures, functions, variables, defines, enums, and typedefs in the software for the lwIP Raw HTTP basic example.

The given example is a lwIP example using the current lwIP stack and MAC driver.

Requirements

This package can be used on SAMD21 Xplained Pro and SAMR21 Xplained Pro with the Ethernet1 Xplained Pro extention board on EXT1.

Description

This example features a simple lwIP web server.

  • Plug the Ethernet cable directly into the evaluation kit to connect to the PC.
  • Configuring the PC network port to local mode to setup a 'point to point' network.
  • Start the example.
  • Launch your favorite web browser.
  • Type the WEB server example IP address in your browser's address bar.

Usage

  1. Build the program and download it into the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or the IAR EWARM User and reference guides, depending on the solutions that users choose.
  2. 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
  3. In the terminal window, the following text should appear (if DHCP mode is not enabled):
    * Network up IP==xxx.xxx.xxx.xxx
    * Static IP Address Assigned
    *