stm32-TCPclient
所属分类:处理器开发
开发工具:C/C++
文件大小:9052KB
下载次数:70
上传日期:2014-06-24 11:57:44
上 传 者:
LXRHY198308
说明: stm32f407 lwip client
文件列表:
14-0528以太网TCPclient\Libraries\CMSIS\CMSIS END USER LICENCE AGREEMENT.pdf (51511, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h (530690, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h (2096, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Release_Notes.html (17827, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\arm\startup_stm32f4xx.s (29511, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\gcc_ride7\startup_stm32f4xx.s (23970, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\iar\startup_stm32f4xx.s (24546, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c (21726, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\TASKING\cstart_thumb2.asm (3672, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\TrueSTUDIO\startup_stm32f4xx.s (24040, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Documentation\CMSIS-SVD_Schema_1_0.xsd (13643, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Documentation\CMSIS_CM4_SIMD.htm (127419, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Documentation\CMSIS_Core.htm (65406, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Documentation\CMSIS_DebugSupport.htm (9956, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Documentation\CMSIS_History.htm (17863, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Documentation\CMSIS_Logo_Final.jpg (123676, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Documentation\CMSIS_System_View_Description.htm (67286, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Include\arm_common_tables.h (1120, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Include\arm_math.h (240326, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Include\core_cm0.h (31948, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Include\core_cm3.h (69722, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Include\core_cm4.h (79281, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Include\core_cm4_simd.h (23979, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Include\core_cmFunc.h (15691, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\Include\core_cmInstr.h (16108, 2011-11-14)
14-0528以太网TCPclient\Libraries\CMSIS\index.htm (5417, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4x7_ETH_Driver\inc\stm32f4x7_eth.h (100066, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4x7_ETH_Driver\inc\stm32f4x7_eth_conf_template.h (4028, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4x7_ETH_Driver\Release_Notes.html (37869, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4x7_ETH_Driver\src\stm32f4x7_eth.c (101588, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\misc.h (6792, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_adc.h (32417, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_can.h (27186, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_crc.h (2284, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_cryp.h (12528, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dac.h (14814, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dbgmcu.h (4164, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dcmi.h (12845, 2011-11-14)
14-0528以太网TCPclient\Libraries\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_dma.h (28750, 2011-11-14)
... ...
/**
@page tftp server demonstration Readme file
@verbatim
******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
* @file tftpserver/readme.txt
* @author MCD Application Team
* @version V1.0.0
* @date 31-October-2011
* @brief Description of the STM32F4x7 tftp server demonstration.
******************************************************************************
* 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.
******************************************************************************
@endverbatim
@par Description
This directory contains a set of sources files that implement a tftp server
demonstration for STM32F4x7 devices.
Please note that for tftp server demonstration, LwIP v1.3.2 is used as the TCP/IP stack.
@par Project Directory contents
- "inc": contains the demonstration firmware header files
- inc/main.h main config file
- inc/stm32f4x7_eth_bsp.h header for stm32f4x7_eth_bsp.c
- inc/netconf.h header for netconf.c
- inc/lwipopts.h LwIP stack configuration options
- inc/stm32f4xx_conf.h library Configuration file
- inc/stm32f4x7_eth_conf.h STM32 Ethernet driver Configuration file
- inc/stm32f4xx_it.h header for stm32f4xx_it.c
- inc/tftpserver.h header for tftpserver.c
- inc/tftputils.h header for tftputils.c
- inc/serial_debug.h header for serial_debug.c
- "src": contains the demonstration firmware source files
- src/main.c main program file
- src/stm32f4x7_eth_bsp.c STM32F4x7 Ethernet hardware configuration
- src/netconf.c LwIP stack initializations
- src/system_stm32f4xx.c STM32 system clock configuration file
- src/stm32f4xx_it.c STM32 Interrupt handlers
- src/tftpserver.c tftp server application
- src/tftputils.c tftp server utilities functions
- src/serial_debug.c retarget the printf function to the USART
- "EWARM": contains preconfigured project for EWARM toolchain
- "MDK-ARM": contains preconfigured project for MDK-ARM toolchain
- "RIDE": contains preconfigured project for RIDE toolchain
- "TASKING": contains preconfigured project for TASKING toolchain
- "TrueSTUDIO": contains preconfigured project for TrueSTUDIO toolchain
@par Hardware and Software environment
- This example has been tested with the following environments:
- STM324xG-EVAL board
- TFTP client: PC utility TFTPD32 (http://tftpd32.jounin.net/) is used as
a DHCP server and a TFTP client
- STM324xG-EVAL Set-up
- Connect STM324xG-EVAL board to remote PC (through a crossover ethernet cable)
or to your local network (through a straight ethernet cable)
- STM324xG-EVAL jumpers setting
+==========================================================================================+
+ Jumper | MII mode configuration | RMII mode configuration(*) +
+==========================================================================================+
+ JP5 | 2-3 provide 25MHz clock by MCO(PA8) | Not fitted +
+ | 1-2 provide 25MHz clock by ext. Crystal | +
+ -----------------------------------------------------------------------------------------+
+ JP6 | 2-3 | 1-2 +
+ -----------------------------------------------------------------------------------------+
+ JP8 | Open | Close +
+ -----------------------------------------------------------------------------------------+
+ JP22 | 1-2: RS232 is enabled +
+==========================================================================================+
(*) User have to provide the 50 MHz clock by soldering a 50 MHz oscillator (ref SM7745HEV-50.0M or
equivalent) on the U3 footprint located under CN3 and also removing jumper on JP5. This oscillator
is not provided with the board.
For more details, please refer to STM3240G-EVAL evaluation board User manual (UM1461).
@Note: the default setting is MII mode, to change it to RMII mode refer to main.h file.
@par How to use it ?
In order to make the program work, you must do the following:
1. Load the demonstration code in the STM32F4x7 Flash memory (see below)
2. Refer to "AN3966 LwIP TCP/IP stack demonstration for STM32F4x7xx microcontrollers"
to know how to use the demonstration
In order to load the demonstration code, you have do the following:
- EWARM
- Open the Project.eww workspace
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
- RIDE
- Open the Project.rprj project
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
- MDK-ARM
- Open the Project.uvproj project
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
- TASKING
- Open TASKING toolchain.
- Click on File->Import, select General->'Existing Projects into Workspace'
and then click "Next".
- Browse to TASKING workspace directory and select the project:
- STM324xG_EVAL: to configure the project for STM32F4xx devices.
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Select the project in the "Project explorer" window then click
Run->Debug (F11)
- TrueSTUDO
- Open the TrueSTUDIO toolchain.
- Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace directory.
- Click on File->Import, select General->'Existing Projects into Workspace' and then click "Next".
- Browse to the TrueSTUDIO workspace directory, select the project:
- STM324xG_EVAL: to configure the project for STM32F4xx devices
- Rebuild all project files: Select the project in the "Project explorer"
window then click on Project->build project menu.
- Run program: Run->Debug (F11)
*
© COPYRIGHT 2011 STMicroelectronics
*/
近期下载者:
相关文件:
收藏者: