首页|嵌入式系统|显示技术|模拟IC/电源|元件与制造|其他IC/制程|消费类电子|无线/通信|汽车电子|工业控制|医疗电子|测试测量
首页 > 分享下载 > 无线/通信 > 基于NXPLPC23xx系列CPU的小型TCPIP协议栈及其应用源码

基于NXPLPC23xx系列CPU的小型TCPIP协议栈及其应用源码

资料介绍

详细说明:基于NXP LPC23xx系列CPU的小型TCPIP协议栈及其应用源码。支持的网络功能包括TFTP服务器端和客户端,DHCP, DNS,简易WEB服务器,虚拟文件系统等。

文件列表:
TCPIP_Nichelite.for.LPC
.......................\LPC_30doc
.......................\.........\index.htm
.......................\.........\nliteuser_c0.htm
.......................\.........\nliteuser_c1.htm
.......................\.........\nliteuser_c2.htm
.......................\.........\nliteuser_c3.htm
.......................\.........\nliteuser_c4.htm
.......................\.........\nliteuser_c5.htm
.......................\.........\nliteuser_c6.htm
.......................\.........\print.css
.......................\.........\refdoc.css
.......................\LPC_30src
.......................\.........\allports
.......................\.........\........\allports.c
.......................\.........\........\timeouts.c
.......................\.........\........\tk_misc.c
.......................\.........\Driver
.......................\.........\......\IAR
.......................\.........\......\...\asmdefs.h
.......................\.........\......\...\hw_adc.h
.......................\.........\......\...\hw_can.h
.......................\.........\......\...\hw_comp.h
.......................\.........\......\...\hw_ethernet.h
.......................\.........\......\...\hw_flash.h
.......................\.........\......\...\hw_gpio.h
.......................\.........\......\...\hw_i2c.h
.......................\.........\......\...\hw_ints.h
.......................\.........\......\...\hw_memmap.h
.......................\.........\......\...\hw_nvic.h
.......................\.........\......\...\hw_pwm.h
.......................\.........\......\...\hw_qei.h
.......................\.........\......\...\hw_ssi.h
.......................\.........\......\...\hw_sysctl.h
.......................\.........\......\...\hw_timer.h
.......................\.........\......\...\hw_types.h
.......................\.........\......\...\hw_uart.h
.......................\.........\......\...\hw_watchdog.h
.......................\.........\......\...\src
.......................\.........\......\...\...\adc.c
.......................\.........\......\...\...\adc.h
.......................\.........\......\...\...\can.c
.......................\.........\......\...\...\can.h
.......................\.........\......\...\...\comp.c
.......................\.........\......\...\...\comp.h
.......................\.........\......\...\...\cpu.h
.......................\.........\......\...\...\debug.h
.......................\.........\......\...\...\ethernet.c
.......................\.........\......\...\...\ethernet.h
.......................\.........\......\...\...\flash.c
.......................\.........\......\...\...\flash.h
.......................\.........\......\...\...\gpio.c
.......................\.........\......\...\...\gpio.h
.......................\.........\......\...\...\i2c.c
.......................\.........\......\...\...\i2c.h
.......................\.........\......\...\...\interrupt.c
.......................\.........\......\...\...\interrupt.h
.......................\.........\......\...\...\osram
.......................\.........\......\...\...\.....\osram128x64x4.c
.......................\.........\......\...\...\.....\osram128x64x4.h
.......................\.........\......\...\...\pwm.c
.......................\.........\......\...\...\pwm.h
.......................\.........\......\...\...\qei.c
.......................\.........\......\...\...\qei.h
.......................\.........\......\...\...\ssi.c
.......................\.........\......\...\...\ssi.h
.......................\.........\......\...\...\sysctl.c
.......................\.........\......\...\...\sysctl.h
.......................\.........\......\...\...\systick.c
.......................\.........\......\...\...\systick.h
.......................\.........\......\...\...\timer.c
.......................\.........\......\...\...\timer.h
.......................\.........\......\...\...\uart.c
.......................\.........\......\...\...\uart.h
.......................\.........\......\...\...\watchdog.c
.......................\.........\......\...\...\watchdog.h
.......................\.........\h
.......................\.........\.\app_ping.h
.......................\.........\.\arp.h
.......................\.........\.\bsdsock.h
.......................\.........\.\ce.h
.......................\.........\.\comline.h
.......................\.........\.\cryptodef.h
.......................\.........\.\crypt_api.h
.......................\.........\.\crypt_port.h
.......................\.........\.\cu_srv.h
.......................\.........\.\dhcpclnt.h
.......................\.........\.\dns.h
.......................\.........\.\ether.h
.......................\.........\.\genlist.h
.......................\.........\.\htcmptab.h
.......................\.........\.\icmp.h
.......................\.........\.\icmp6.h
.......................\.........\.\ifmap.h
.......................\.........\.\intimers.h
.......................\.........\.\in_utils.h
.......................\.........\.\ip.h
.......................\.........\.\ip6.h
.......................\.........\.\ip6mibs.h
.......................\.........\.\ipport.h

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 - documentation

NicheLite 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 interface

Refer 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 -gt; Connect to Target...
Expand the LPC2148 Entry
Check the ARM7TDMI... selection
Close the dialog box
5. Open the NicheLite for LPC project
Project -gt; Open Project...
Browse to lpc_30src/nxplite.prj
Click 'Open' button
6. Open the Flash Memory Control dialog box
Target -gt; 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 -gt; 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 box

Refer 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 error

P0.23 .. P0.16 are bits 7..0, respectively.


Support
-------

For questions regarding the NicheLite for LPC software, contact
InterNiche Support: support@iniche.com.

基于NXPLPC23xx系列CPU的小型TCPIP协议栈及其应用源码
本地下载

评论