NicheLite-for-STM32F107

所属分类:处理器开发
开发工具:C/C++
文件大小:862KB
下载次数:13
上传日期:2014-11-10 10:28:52
上 传 者
说明:  STM32F107的nichelite开发程序,供用户使用
(STM32F107 nichelite development process, for use by the user)

文件列表:
NicheLite for STM32F107\Libraries (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS\Core (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3 (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\core_cm3.c (17206, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\core_cm3.h (46533, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\arm (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_cl.s (15600, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_hd.s (15872, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_ld.s (12164, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_md.s (12564, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\gcc (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_cl.c (16220, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c (16449, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_ld.c (12703, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_md.c (13104, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\iar (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_cl.s (16309, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_hd.s (16709, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_ld.s (12333, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_md.s (12594, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\stm32f10x.h (593248, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\system_stm32f10x.c (30360, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\CM3\system_stm32f10x.h (2182, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\Core\Documentation (0, 2009-06-18)
NicheLite for STM32F107\Libraries\CMSIS\Core\Documentation\CMSIS_Core.htm (52463, 2009-06-17)
NicheLite for STM32F107\Libraries\CMSIS\License.doc (39936, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver (0, 2009-06-18)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc (0, 2009-06-18)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\misc.h (8722, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h (21431, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h (7456, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h (20493, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h (2063, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h (13765, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h (3124, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h (20563, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_exti.h (6672, 2009-06-17)
NicheLite for STM32F107\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_flash.h (19518, 2009-06-17)
... ...

/******************** (C) COPYRIGHT 2009 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application/Tools Team * Version : V1.0.0 * Date : 06/19/2009 * Description : Description of the STM32 Connectivity line Ethernet * demonstration package with NicheLite TCP/IP Stack. ******************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Package Description =================== The STM32 Connectivity line Ethernet demonstration package is based on NicheLite stack from Interniche and it represents a set of protocols implementation: - DHCP Client: the Board once connected to a DHCP server will get its IP address and display it on LCD - Ping App: the Ping application is available to check that the STM32 board is responding to the ping requests. - HTTP: this module is used to display a html page once the STM32 Evalboard IP address (given by the DHCP) is typed in the web browser. this html page include a presentation of the embedded protocols in the NicheLite stack (used in this Demo) and a Status bar displaying instantaneously the STM32 evalboard potentiometer (RV1) analog input conversion. The user can modify the potentiometer position and the status bar shape will be updated accordignly. - TFTP client: this part of the Demo, let the user to PUT and GET file from the STM32 board to the remote PC - TFTP server: this part of the Demo, let the user to PUT and GET file from the remote PC to the STM32 board - NicheFile VFS: is used as virtual File system to manage transfered files - UDP/TCP Client/Server : Is a simple example based on minimum of two STM3210C-EVAL Boards. One board is Server and all others are Clients. It provides source code examples for UDP and TCP connexions. All Demo applications are managed with the embedded Nichetask OS. These applications are based on embedded sub-layers protocols which are (ARP, ICMP, UDP, TCP). For more description about NicheLite available demos and implementation for STM32 Connectivity line and, please refer to AN3000: "NicheLite TCPIP stack use for STM32F107" available from www.st.com. Notes ----- - This package contain an optimized version of STM32 Connectivity line Ethernet driver to be used with NicheLite TCP/IP Stack: no copy, the DMA directly uses Stack packets. - The Demo could be tested on local network with a DHCP server, or with a single connection to a remote PC with a pre-installed software DHCP server (Exemple: DHCP turbo). - LEDs 1 to 3 are always toggling which inform that the stack is running. - LED 4 is used for UDP/TCP Client/Server example where Clients toggles Server Led 4 every time STM3210C-EVAL Client Key (B3) button is pressed. For more details about the stack, please check NicheLite document given with the Demo. NicheLite for ST Cortex-M3 Overview =================================== The NicheLite for ST Cortex-M3 demonstration software consists of the following components: 1. NicheLite TCP/IP stack 2. DHCP Client 3. Simple HTTP Server 4. TFTP Client and Server 5. Virtual File System 6. NicheTask OS Kernel 7. Simple UDP/TCP Client/Server example based on STM3210C-EVAL Board The software distribution includes project files for building the demonstation software, using the IAR Embedded Workbench for ARM IDE and RealView Microcontroller Development Kit(RVMDK). The demonstation software can be downloaded and run on the STMicroelectronics STM3210C-EVAL board. The NicheLite software implements a TCP/IPv4 network stack which supports packet transmission using unicast and broadcast IP addresses. Application programming is through a "lite" sockets API. The stack supports a single Ethernet network interface. The DHCP Client module attempts to obtain an IP address from a DHCP Server. If a DHCP Server is not available, the IP address defaults to 10.0.0.197. The current IP address is displayed on the LCD display. The default IP address can be changed by editing 'target/in_stubs.c'. The DHCP Client can be disabled by not defining DHCP_CLIENT in 'h/ipport.h'. After the DHCP negotiations have completed, a 'ping' application can be run from another network node to verify that the STM3210C-EVAL board is correctly configured. Users can connect to the Simple HTTP Server using a Web Browser application, and setting the URL to the IP address of NicheLite; for example, "http://10.0.0.197". If the connection is established, a page of HTML data will be displayed on the Web Browser. The TFTP Client and Server modules allow users to transfer files between the NicheLite Virtual File System (VFS) and another node on the network, such as a Host PC. The TFTP Server is enabled by the command on the NicheLite console: INET> tfsr tftp server ON INET> Refer to the InterNiche TFTP Technical Note (tftp_tn.pdf) for a description of the TFTP commands. The Virtual File System contains six files; mem512K, mem1M, mem2M, favicon.ico, index.html and null. The files can be used in conjunction with TFTP to investigate data transfer speeds of the network. The 'mem*' files can source various amounts of random data, and the 'null' file can accept any amount of data. favicon.ico and index.html are used for Simple HTTP Server example. favico.ico is the ST icon Web Browser can ask for when it connects to the STM3210C-EVAL board. It will be visible before "http://". index.html is html source code sent to Web Browser application by Simple HTTP Server example. A typical usage for a TFTP Client running on a Host PC would be: C:\> tftp -i 10.0.0.197 GET mem2M mem2M C:\> tftp -i 10.0.0.197 PUT mem2M null Directory contents ================== + NicheLite_docs: NicheLite html documentation. + NicheLite_src : NicheLite C code source files. allports\ h\ mip\ misclib\ mtcp\ net\ target\ tftp\ vfs\ + STM3210C_EVAL: contains LCD driver for STM3210C_EVAL board + Project: contains the Demos source files and preconfigured projects for EWARMv5 (IAR) and RVMDK (Keil) toolchains. + Libraries \STM32_ETH_Driver: contains the C source Ethernet driver files. \CMSIS: contains the STM32F10x CMSIS files \STM32F10x_StdPeriph_Driver: contains C sources for Standard Peripherals drivers Hardware environment ==================== 1. These demos run on STMicroelectronics STM3210C-EVAL board: - For Client/Server example, at least 2 STM3210C-EVAL boards are needed. To configure a board as server, the PE13 pin should be connected to the ground. - For other examples, only one STM3210C-EVAL board is required. See "Project\STM3210C-EVAL Board Config.pdf" for hardware STM3210C-EVAL board configuration. 2. Connection for the RJ45 Ethernet connector depends on the selected way to run the Demo: - STM3210C_EVAL board connected to an internal network with a DHCP server: + simple Ethernet cable is needed to connect the board to the network - STM3210C_EVAL board connected to a remote PC (single connection) with a software DHCP server pre-installed: + crossover Ethernet cable is needed to connect the board to the PC - For UDP/TCP Client/Server example: + STM3210C-EVAL boards should be connected to an internal network with a DHCP server whith simple Ethernet cables. 3. A null-modem female/female RS232 cable is needed to connect the board to the user PC, this allow to display application messages and edit commands in a serial interface tool on this PC. How to use the Demo package ============================ The demo software distribution includes project files for the IAR EWARM IDE, version 5.30 (or later) and the KEIL vision3 V3.50 (or later) It is assumed that the user is familiar with the basic software development process using the IAR Embedded Workbench IDE or KEIL vision3. To build and download the demo project: 1. Install Workbench IDE on the Host PC. 2. Start the IDE. 3. Select 'Project\EWARMv5\project.eww' or 'Project\RVMDK\project.Uv2' 4. Select "Project->Rebuild All" The file, 'NicheLite_src\h\ipport.h' contains the definitions for the demo software configuration. 5. Power on the STM3210C-EVAL Board. 6. Connect a JTAG interface, serial cable (UART2 remapped), Ethernet cable, and power cable to the STM3210C-EVAL board. Start a terminal emulator application, such as HyperTerminal or Tera Term Pro, on the Host PC to communicate with UART2 remapped. The terminal emulator application should be configured for: 115200 baud, 8-bits, 1 stop bit, no parity, no flowcontrol 7. Select "Project->Debug" to download the demo software to the STM3210C-EVAL board. 8. Select "Debug-Go" to start program execution. When the demo software begins, status messages are displayed on the terminal emulator window, the LCD Display shows the board's IP address, and the LEDs (1,2 and 3) blink. When the "INET>" prompt is displayed on the terminal emulator, commands can be entered to display NicheLite stack status and data structure contents. LCD Display gives SERVER or CLIENT setting info depending on PE13 connexion. 9. For UDP/TCP CLIENT/SERVER demo. Take care that boards don't have the same MAC address (MAC_ADDR5 in Project\stm32.c file must be different) CLIENT must boot AFTER SERVER. Then, CLIENT ask for SERVER address (UDP broadcast message) CLIENT writes the SERVER IP address on LCD. You can SET/RESET SERVER LED4 by pushing Key (B3) CLIENT button. ******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者