Wiznet W7200-EVB User Manual Download Page 15

 

 

 

 

 

 

 

 

 

 
© Copyright 2011 WIZnet Co., Inc. All rights reserved.                                                  Ver. 1.1               

 

15

 

 

W7200-EVB User

’s

 Guide 

socket.c, socket.h 

Socket APIs for W5200 

loopback.c, loopback.h 

TCP, UDP Loopback Apps implementation 

SPI1.c STM32F103x SPI Interface initialization 

util.c, util.h 

Utilities 

dhcp.c, dhcp.h 

DHCP App implementation 

md5.c, md5.h 

md5 hash algorithm implementation for PPPoE 

stm32f10x_it.c 

Main Interrupt Service Routines 

system_stm32f10x.c Cortex-M3 

Device Peripheral Access Layer System 

CMSIS core_cm3.c 

Cortex™ Microcontroller Software Interface 

Standard 

EWARMv5.4 

startup_stm32f10x_md.s 

STM32F10x Medium Density Devices vector table 

EWARMv5.4/ 

StdPeriph_Driver 

misc.c 

miscellaneous firmware functions 

stm32f10x_bkp.c 

BKP firmware functions 

stm32f10x_flash.c 

FLASH firmware functions 

stm32f10x_gpio.c 

GPIO firmware functions 

stm32f10x_rcc.c 

RCC firmware functions 

stm32f10x_spi.c SPI 

firmware 

functions 

stm32f10x_tim.c 

TIM firmware functions 

stm32f10xusart.c 

USART firmware functions 

 

8.3

 

Firmware Functions 

Table 5 Functions in main.c 

Function 

Description 

RCC_Configuration Configure the system clocks 

NVIC_Configuration Nested 

Vectored Interrupt Controller configuration 

GPIO_Configuration Configure 

the General Purpose I/O Pin 

Reset_W5200 W5200 

Reset 

Function 

UART1_Init 

UART Interface Initialization 

WIZ_SPI_Init 

W5200 SPI Interface Initialization 

Timer_Configuration Timer 

Configuration 

LED3_onoff/LED4_onoff  USER LED n Control Function 

Set_network 

Configure Network In formations for W5200 

WIZ_Config 

Configure Network In formations 

 

 

Summary of Contents for W7200-EVB

Page 1: ...2011 WIZnet Co Inc All rights reserved Ver 1 1 1 W7200 EVB User s Guide W7200 EVB User s Guide Version 1 1 2011 WIZnet Co Inc All Rights Reserved For more information visit our website at http www wi...

Page 2: ...face IC Driver 10 7 W7200 SPI 12 8 Reference Firmware 14 8 1 W7200 Socket API 14 8 2 Firmware Structure 14 8 3 Firmware Functions 15 8 4 Firmware Build and Upload 17 8 4 1 Build IAR Embedded Workbench...

Page 3: ...e 3 Download Flash loader Demonstrator 10 Figure 4 Currently Supported VCP Drivers 16DEC2011 11 Figure 5 W7200 SPI Interface 12 Figure 6 TCP Server Client 14 Figure 7 Compile on IAR Embedded Workbench...

Page 4: ...cols such as TCP UDP IPv4 ICMP ARP IGMP PPPoE and etc The USB to UART interface IC in W7200 EVB can be used for UART communication And the extension pin header total of 40 pins allows the user for eas...

Page 5: ...Item Description Remark MCU W7200 STM32F103CB W5200 USB to Serial Converter On board USB to UART interface IC USB bus power FT232RQ Ethernet On board RJ 45 which is integrated transformer LED User LED...

Page 6: ...User s Guide 3 W7200 EVB Block Diagram The block diagram is shown below Cortex M3 W7200 USB to UART interface IC PROG Switch RESET Switch USER LED 1 2 UART GPIO RJ 45 Mini USB B type Power Programming...

Page 7: ...Table 2 Hardware Description Symbols Description Symbols Description W5200 Hardwired TCP IP Core STM32F103C8 Cortex M3 MCU RESET S W Reset Switch User LED1 User LED2 User LED 2Ea PROG S W Enable Progr...

Page 8: ...pin header Table 3 Expanded pin header J1 Alternative Functions Shared by J2 Alternative Functions Shared by PA0 WKUP USART2_CTS ADC12_IN0 TIM_CH1_ETR PB0 ADC12_IN8 TIM3_CH3 LED3 PA1 USART2_RTS ADC12...

Page 9: ...PB10 I2C2_SCL USART3_TX PA13 JTMS SWDIO PB11 I2C2_SDA USART3_RX PA14 JTCK SWCLK PB12 SPI2_NSS I2C2_SMBAI USART3_CK TIM1_BKIN PA15 JTDI PB13 SPI2_SCK USART3_CTS TIM1_CH1N MDC PB14 SPI2_MISO USART3_RTS...

Page 10: ...ut STM32F103xx Flash Loader demonstrator Download UM0462 Flash loader demonstrator http www st com internet mcu product 216817 jsp Click Design Support SW DEMOS Bottom end of page Figure 3 Download Fl...

Page 11: ...Copyright 2011 WIZnet Co Inc All rights reserved Ver 1 1 11 W7200 EVB User s Guide Figure 4 Currently Supported VCP Drivers 16DEC2011...

Page 12: ...ce define data_read_command 0x00 uint16 addr address 16bits int16 data_len data_length 15bits uint8 data_buf array for data SpiSendData send data from MCU to W5200 SpiRecvData Receive data from W5200...

Page 13: ...for data SpiSendData send data from MCU to W5200 SpiRecvData Receive data from W5200 to MCU Pseudo Code for Read data of 8bit per packet SpiSendData send data from MCU to W5200 ISR_DISABLE Interrupt S...

Page 14: ...0 supports both server mode and client mode user can select one and use for its application The difference between server mode and client mode are shown below Figure 6 TCP Server Client 8 1 W7200 Sock...

Page 15: ...firmware functions stm32f10x_bkp c BKP firmware functions stm32f10x_flash c FLASH firmware functions stm32f10x_gpio c GPIO firmware functions stm32f10x_rcc c RCC firmware functions stm32f10x_spi c SP...

Page 16: ...ub Note MAC address should be defined even if DHCP mode Table 7 Functions in Loopback c Function Description Example Code Location loopback c loopback_tcps TCP Loopback server mode ch socket number 0...

Page 17: ...ts reserved Ver 1 1 17 W7200 EVB User s Guide 8 4 Firmware Build and Upload 8 4 1 Build IAR Embedded Workbench IDE To build and link you project choose Make form the Project menu or press F7 Figure 7...

Page 18: ...s reserved Ver 1 1 18 W7200 EVB User s Guide 8 4 2 Upload Flash Loader Demonstrator Upload 1 Select the Communication port and set setting Note PROG S W should be selected PROG to connect to W7200 EVB...

Page 19: ...Co Inc All rights reserved Ver 1 1 19 W7200 EVB User s Guide Upload 3 Select device in the target Upload 4 Choose Binary image file in work project Note Binary image file s location Work App Debug Ex...

Page 20: ...l rights reserved Ver 1 1 20 W7200 EVB User s Guide Upload 5 Select 0x08000000 in memory address list Upload 6 Select Next to upload the binart image file Note After finishing Download PROG S W should...

Page 21: ...nd Prompt W7200 EVB Windows OS Figure 8 Flow Chart of Demonstration 9 2 Ping TEST A ping test determines whether your test PC can communicate with the W7200 EVB over the network 9 2 1 Network configur...

Page 22: ...nternet Protocol Properties 9 2 2 Ping Test at Command Prompt 1 Access the Start in the menu click Run 2 Enter cmd in the Open field 3 Type ping 192 168 11 4 W7200 EVB IP address in Command Prompt win...

Page 23: ...Copyright 2011 WIZnet Co Inc All rights reserved Ver 1 1 23 W7200 EVB User s Guide Run 1 Input W7200 EVB IP and Port Run 2 Check Connected message...

Page 24: ...Copyright 2011 WIZnet Co Inc All rights reserved Ver 1 1 24 W7200 EVB User s Guide Run 3 Set Data format size and base value Run 4 Check the status message in dialog window...

Page 25: ...Znet Co Inc All rights reserved Ver 1 1 25 W7200 EVB User s Guide 10 Physical Specification a b g f e d d c Figure 11 W7200 EVB Board Dimension Symbols Dimensions mm a 28 00 b 25 40 c 52 00 d 1 30 e 1...

Page 26: ...Copyright 2011 WIZnet Co Inc All rights reserved Ver 1 1 26 W7200 EVB User s Guide 11 Schematic W7200 EVB schematic can be downloading at WIZnet Homepage www wiznet co kr...

Page 27: ...nformation Version Date Descriptions Ver 1 0 Dec 2011 Release Ver 1 1 Dec 2011 Modify the figures Copyright Notice Copyright 2011 WIZnet Inc All Rights Reserved For more information visit our website...

Reviews: