Purpose
This example uses the Gigabit Ethernet MAC (GMAC) and the on-board Ethernet transceiver available on Atmel evaluation kits. It enables the device to respond to a ping command sent by a host computer.
Requirements
This package can be used with SAM V71 Xplained Ultra board.
Description
Upon startup, the program will configure the GMAC with a default IP and MAC address and then ask the transceiver to auto-negotiate the best mode of operation. Once this is done, it will start to monitor incoming packets and processing them whenever appropriate.
The basic will only answer to two kinds of packets:
- It will reply to ARP requests with its MAC address,
- and to ICMP ECHO request so the device can be PING'ed.
Usage
- Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
- 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
- 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:
-- GMAC Example xxx --
-- SAMxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --
MAC 3a 1f 34 08 54 54
IP 192, 168, 1, 3
- The program will then auto-negotiate the mode of operation and start receiving packets, displaying feedback on the DBGU. To display additional information, press any key in the terminal application.
- Note:
- Make sure the IP address of the device(EK board) and the computer are in the same network.
References