?? basic-emac-lwip-project.html
字號:
?<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Atmel Corporation - Basic EMAC lwIP 1.4</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<h1>Basic EMAC lwIP Project 1.4</h1>
<div id="breadcrumb">
<a href="../index.html">Main</a> >
<a href="examples.html">Examples</a> >
EMAC-lwIP
</div>
<h2>Purpose</h2>
<p>
This project implements the webserver example of the <a href="http://www.sics.se/~adam/lwip/index.html">lwIP TCP/IP stack</a>.
It enables the device to act as a web server, sending a very short page when accessed through a browser.
</p>
<h2>Hardware Requirements</h2>
<div class="requirements">
<p>
This application will work on the following evaluation kits:
<ul>
<li>AT91SAM7X-EK</li>
<li>AT91SAM7XC-EK</li>
<li>AT91SAM9260-EK</li>
<li>AT91SAM9263-EK</li>
<li>AT91SAM9XE-EK</li>
</ul>
</p>
</div>
<p>
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:
<ul>
<li>AT91SAM7X/XC-EK: cut strap S2.</li>
<li>AT91SAM9XE-EK: remove resistor R14</li>
<li>AT91SAM9260-EK: remove resistor R14</li>
<li>AT91SAM9263-EK: remove resistor R18</li>
</ul>
</p>
<h2>Description</h2>
<p>
Please refer to the lwIP documentation (included in the package) for more information about the TCP/IP stack
and the webserver example.
</p>
<h2>Usage</h2>
<ol>
<li>
Build the program and download it inside the evaluation board. Please refer
to the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6132.pdf">SAM-BA User Guide</a>,
the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6310.pdf">GNU-Based Software Development</a>
application note or to the <a href="http://www.iar.se/website1/1.0.1.0/78/1/index.php?">IAR EWARM User Guide</a>,
depending on your chosen solution.
</li>
<li>
<strong>Optionally</strong>, on the computer, open and configure a terminal application
(e.g. HyperTerminal on Microsoft Windows) with thesesettings:
<ul>
<li>115200 bauds</li>
<li>8 bits of data</li>
<li>No parity</li>
<li>1 stop bit</li>
<li>No flow control</li>
</ul>
</li>
<li>
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.
</li>
<li>
Start the application. It will display the following message on the DBGU:
<blockquote>
<code>
-- Basic EMAC lwIP Project 1.4 --<br />
- MAC 23:45:56:78:9a:bc<br />
- Host IP 10.159.245.156<br />
- Gateway IP 10.159.245.157<br />
- Net Mask 255.255.254.0<br />
</code>
</blockquote>
</li>
<li>
Type the IP address (Host IP in the debug log) of the device in a web browser.
The page generated by lwIP will appear.
</li>
</ol>
<h6>Atmel Corporation ?2008</h6>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -