详细说明:菲利普ARM7下的商业TCP/IP协议栈,带有Keil ARM 开发环境September 2006
-------------- NicheLite for LPC Overview
--------
This document describes the NicheLite for LPC product. The product consists
of the following files: readme.txt - this document
lpc_30src.zip - source files
lpc_30doc.zip - documentationNicheLite for LPC is an implementation of the InterNiche Lightweight
TCP/IP stack for the NXP LPC23xx processor family. The product
includes the following functionality: TFTP client and server
DHCP client
DNS client
Simple Web Server
Virtual File System
Command-line user interfaceRefer to the NicheLite documentation for a detailed product description. Installation
------------The NicheLite for LPC product is targeted for the Keil MCB23xx Evaluation
Board, using the ARM RealView 2.2 toolchain and RealView ICE-ME interface.
Install the RealView software and review the ARM component documentation
that is included in the installation.The ARM RealView 2.2 toolchain does not support the MCB23xx Evaluation Board
directly; there is not device entry for the LPC23xx processor family. Instead,
when connecting to the target board, select the LPC2148 device entry.The source ZIP file contains a pre-built executable (./lpc_30src/Release/nxplite.axf) which can be downloaded to Flash memory on the target board.To download the NicheLite for LPC application: 1. Connect the RealView ICE to the MCB23xx board and a Host USB port.
2. Connect a USB cable to the MCB23xx board and a Host USB port.
3. Start the RealView Debugger on the Host computer.
4. Open the Connection Control dialog box
Target -> Connect to Target...
Expand the LPC2148 Entry
Check the ARM7TDMI... selection
Close the dialog box
5. Open the NicheLite for LPC project
Project -> Open Project...
Browse to lpc_30src/nxplite.prj
Click 'Open' button
6. Open the Flash Memory Control dialog box
Target -> Load Image...
Browse to lpc_30src/Release/nxplite.axf
Click 'Open' button
7. Write philips.axf to Flash memory
Uncheck 'Erase Block before Write'
Clock Frequence is '12MHz'
Click 'Erase' button
In the RVDEBUG window, Debug -> Reset Target Processor
In the RVDEBUG Register pane, select LPC2148 Tab and
set the MemoryMode to 'User Flash'
In the Flash Memory Control dialog box, click 'Write' button
Close the Flash Memory Control dialog boxRefer to the RealView documentation set for additional information on
the download process.To run the NicheLite for LPC application: 1. Connect an ethernet cable to the MCB23xx.
2. Connect a serial cable between a Host COM port and the MCB23xx COM0 port.
3. Start a terminal emulator program on the Host.
Configure the PC COM port: 115200 baud, 8-bit, 1 stop, no parity,
no hardware handshack.
4. Apply power and press the RESET button on the MCB23xx.Start-up messages will be displayed through the serial port connection.
As configured, when the NicheLite for LPC application is started, DHCP is
used to acquire a network IP address. The web server can be accessed
through a browser using the URL: http://xxx.xxx.xxx.xxx, where
xxx.xxx.xxx.xxx is the IP address returned by the DHCP server and displayed
on the MCB23xx board's LCD. NicheTool commands can be entered through the
terminal emulator.The software attempts to obtain an IP address, using DHCP. There are
also two additional IP addresses that are available; 10.0.0.161 and
192.168.0.161. Pressing the INT0 button cycles through the three IP
choices. The LCD displays the current IP address.
Build
-----Software development is performed using the ARM RealView 2.2 toolchain.
Install the RealView software and review the ARM component documentation
that is included in the installation.To build the NicheLite for LPC product: 1. Unzip the NicheLite lpc_30src.zip file.
2. Start the RealView Debugger (RVDEBUG) module.
3. Connect to the LPC23xx device. If the device is not in the list of
supported devices, use the LPC2148 device.
4. Open the project: ./lpc_30src/nxplite.prj
5. Make any desired source code changes.
6. Select "Rebuild All"
7. Select "(Re)Load Image to Target" to download the software
to the MCB23xx, as decribed above.
8. Select "Set PC to Entry Point"
9. Select "Run".NicheLite functionality can be selected/deselected through options in the
file: ./lpc_30src/h/ipport.h. The network IP address can be set to a static
address in the file: ./lpc_30src/lpc23xx/in_stubs.c.Refer to the NicheLite documentation for additional configuration information.
LED Display
-----------If a fatal error occurs during software execution, the LEDs display an
error code: 0x8z Program exit, exit code is 'z'.
0xE1 Illegal instruction
0xE2 Unknown software interrupt
0xE3 Instruction access error
0xE4 Data access errorP0.23 .. P0.16 are bits 7..0, respectively.
Support
-------For questions regarding the NicheLite for LPC software, contact
InterNiche Support: support@iniche.com.
猜您喜欢
推荐内容
开源项目推荐 更多
热门活动
热门器件
用户搜过
随便看看
热门下载
热门文章
热门标签
评论