Home

DevKit1207 Evaluation Kit User Manual

image

Contents

1. 8 Configure com port that connected to DevKit1207 board in the same way Page 130 of 155 ae Embest Technology Co LTD __ hittp Awww armkits com 9 Communication test Try sending some characters with the HyperTerminal of virtual serial port the other HyperTerminal COMS3 will receive these characters V CO COMS3 HyperTerminal HOR Sel File Edit View Call Transfer Help File Edit ie Call Transfer Helg be S 08 E jos 3 me Connected 0 01 30 Auto detect 115200 8 N 1 F Connected 0 00 47 Auto detect 115200 8 N 1 Figure 6 30 Message from VCP COM to True COM Both the two HyperTerminals can send or receive data As shown below ex True COM1 HyperTerminal DOR File Edt View Call Transfer Help True_COM1 to VP COM J VCP_COM3 to True_COM1 Connected 0 02 39 Auto detect 115200 8 N 1 St F Connected 0 01 56 Auto detect 115200 8 N 1 Figure 6 31 Message from True COM to VCP COM 6 3 USB_Host example This folder contains three examples when USB works in host mode gt DualCore gt HID Page 131 of 155 ae Embest Technology Co LTD l _http www armkits com gt MSC As shown in the above figure the USB host library is composed of two main parts the library core and the class drivers Application module Ta PP Application User callbacks USB library module core USB host core USB class module USB enumeration Class layer USB control transfer Channels HID audio MSC
2. D GGG Gi iii ii Gi GI Gi Gi 3 QHAHRKHDHAKDHAHDAHKHAKRAA Statistics Received 15 Corupted 60 ZK Figure 5 22 UDP echo server demo 5 3 FreeRTOS demos 5 3 1 HTTP server netconn demo The HTTP server netconn demo shows an implementation of a web server application based on the netconn API This demo is used to connect the Devkit1207 board with a web browser and to load HTML pages This demo has two HTML pages The first one contains general information about STM32F2x7 microcontrollers the demonstration package and the stack LwIP The second one contains the list of running tasks and their status This page is automatically updated every second In order to test the HTTP server netconn demo please follow the below steps 1 Plug in 5V power supply to DevKit1207 Connect a crossover cable between DevkKit1207 RJ45 CON1 and PC Ethernet port 2 Configure IP address The default Static IP address of evaluation board modify the relevant macro in main h file as per your requirement as shown below Page 108 of 155 ae Embest Technology Co inh 052 define MAC ADDRS 0 053 054 Stati pL im H ADDRO IP_ADDR1 IP_ADDR2 IP_ADDR3 055 ge Tine IP ADDRO 192 define IP _ADDR1 168 define IP_ADDR2 define IP_ADDR3 D r http Mwww armkits com Figure 5 23 Configure IP address of DevKit1207 3 Rebuild the demo and then download the program into Flash 4 Atpower
3. gt CRC_Example CRC_Example 1 2 Purpose This example shows how to use CRC cyclic redundancy check calculation unit to get a CRC code of a given buffer of data word 32 bit based on a fixed generator polynomial 0x4C11DB7 Description The CRC cyclic redundancy check calculation unit is used to get a CRC code from a 32 bit data word and a fixed generator polynomial In this example CRC 32 Ethernet polynomial is 0x4C11DB7 X32 X26 X23 X22 X16 X12 X11 X10 X8 X7 X5 X4 X2 X 1 Page 91 of 155 gi Embest Technology Co LTD d http www armkits com 4 23 RNG_Touch example The RNG folder contains one example 1 2 gt RNG_MultiRNG Purpose This example shows how to use the RNG peripheral to generate Random 32bit numbers Description In this example an interactive human interface is developed to allow user to display 8 arbitrary value which can be updated by user random 32bit numbers using the evaluation board LCD and or USART COM1 with PC HyperTerminal Numbers can be displayed on LCD and or PC Hyperteminal by using PRINT_ON_LCD and PRINT_ON_USART defined in main c file After startup user is asked to press USER1 button The 8 Random 32bit numbers are displayed as soon as the USER1 button is pressed Note Make sure that jumpers JP7 and JP8 are fitted Connect a null modem female female RS232 cable between the DB9 connector COM1 USART3 and PC serial port
4. E ade hex Erase necessary pag No Erase C Global Eras CR z Jump to the user progr E Optimize Remove some FFs Iw Verify after download gt Apply option by E C Upload from device ep to file E C ee a Figure 3 53 Select download file 11 Click Next to download the hex file to target device Flash Loader Demonstrator Targei STM32F2_1024K Map STM32F2_1024K STmap Operatio DOWNLOAD File E ade hex File 35 83 KB 36692 bytes Status 7 86 KB 8052 bytes of 35 83 KB 36692 bytes Time 00 00 02 ES Downloading data 22 Figure 3 54 Start to download 12 Finish downloading and there will be a message as following figure shown Page 59 of 155 i http www armkits com STM32F2_1024K STM32F2_1024K STmap Operatio DOWNLOAD File E adc hex File 35 83 KB 36692 bytes Status 35 83 KB 36692 bytes of 35 83 KB 36692 bytes Time 00 00 11 Download operation finished successfully Figure 3 55 Download operation finished successfully 13 Click Close Remove jumpers from JP1 and JP2 Press RESET key then MCU start to run Page 60 of 155 L Embest Technology Co LTD Chapter 4 Peripheral s Examples The STM32F2xx Standard Peripherals library provides a rich set of examples covering the main features of each peripheral Peripheral s examples are located in the folder code STM32F2xx
5. Remove Figure 3 45 Add files to group Add Files User O ADC_example e fa eg ES mee EI stm32f2xx_conf h stm32f2xx_it c E stm32 2xx_it h system_stm3Zf2xx c My Recent Documents GI My Documents 98 My Network Places File name system_stm32f2xx c main c stm32fi v File type Source Files Der cppi cc h hp Y Cancel Figure 3 46 Add selected files to group 9 Add files to the group of CMSIS STM32F2xxStdPeriph_Driver STM32_EVAL User EWARM same as done in step 8 amp The files need to be added to group CMSIS are located in code STM32F2xx_StdPeriph_Demo Libraries CMSIS CM3 CoreSupport Note Only core_cm3 c need to be added to group of CMSIS The files need to be added to group of STM32F2xxSidPeriph_Driver are located in code STM32F2xx_SidPeriph_Demo Libraries S TM32F2xx_SitdPeriph_Driver src Note Only some files need to be added If unsure which file should be added Page 52 of 155 i Embest Technology Co LTD http www armkits com all files can be added However it will increase compile time and code size The files need to be added to group STM32_EVAL are located in code STM32F2xx_SitdPeriph_Demo Utilities STM32_EVAL STM322xG_EVAL Note Only stm322xg_eval c and stm322xg_eval_Icd c need to be added to group of STM32_EVAL in this example The files need to be added to group MDK ARM are located in code STM32F2xx_StdPeriph_Dem
6. Technical support service Embest provides one year free technical support service for all products Technical support service covers Embest embedded platform products software hardware materials Assist customers compile and run the source code we offer Solve the problems occurs on embedded software hardware platform if users follow the instructions in the documentation we offer Judge whether the product failure exists Special explanation the situations listed below are not included in the range of our free technical support service and Embest will handle the situation with discretion Software Hardware issues user meet during the self develop process Page 152 of 155 Lamm Embest Technology Co LTD http www armkits com Issues happen when users compile run the embedded OS which is tailored by users themselves User s own applications Problems happen during the modification of our software source code Maintenance service clause 1 The products except LCD which are not used properly will take the warranty since the day of the sale PCB Provide 12 months free maintenance service 2 The situations listed below are not included in the range of our free maintenance service Embest will charge the service fees with discretion a Cant provide valid Proof of Purchase the identification label is torn up or illegible the identification label is altered or doesn t accord with the actual
7. Y Ports COM amp LPT ZY Communications Port COM d Communications Port COM2 d ECP Printer Port LPT1 g Processors amp SCSI and RAID controllers B Sound video and game controllers System devices BA Universal Serial Bus controllers Figure 6 27 DevKit1207 have been enumerated as VCP device 7 Configure the virtual com port as below Start HyperTerminal by clicking on Start gt Programs gt Accessories gt Communications gt HyperTerminal The Connect To dialog box appears Ignore the first three boxes these are used with dial up modem services In the last box Connect using select the COM port that you will be using and press OK Page 129 of 155 ae Embest Technology Co LTD N http www armkits com Connect To DB vcp com3 Enter details for the phone number that you want to dial Country region Area code Phone number Connect using v Figure 6 28 Create HyperTerminal for the virtual com port In the following COM properties dialog box you can set up the communication parameters for the COM port Set for 115200 bits per second 8 data bits no parity 1 stop bit and no flow control Press OK when done COMS3 Properties Port Settings Bits per second 115200 Data bits Parity Stop bits Flow control Restore Defaults Figure 6 29 VCP port settings
8. 10 C 70 C Humidity Range 20 90 Page 13 of 155 http Awww armkits com L Embest Technology Co LTD 1 3 Getting Started Quickly http www armkits com _ This section will tell the user how to understand and use DevkKit1207 better and faster For more information please refer to the listed document and location For hardware development Hardware system CPU Datasheet Introduce CPU expanded chip and hardware interface Know principle and configuration of STM32F2xx User Manual gt 2 Hardware System CD gt HW design datasheet CPU Schematic diagram of Devkit1 207 Dimensional drawing of Devkit1 207 Know hardware principle of DevK1207 Refer to the actual length and height of DevKit1207 to bring convenience for opening die CD gt HW design schematic User Manual gt 2 3 Hardware Dimensions For software development Establish developing and compilation environment Software development Building and instructions for MDK ARM IDE Standard peripherals driver example and how to proceed User Manual gt 3 Software Development User Manual gt 4 Peripheral s Examples Introduction for Ethernet drivers and applications Introductions for USB applications and development User Manual gt 5 Ethernet Demonstration User Manual gt 6 USB Examples Introduction for migration and development of uCos ll amp ucgui Introductions for G Sensor
9. w ia 8 4 oF SZ Seel vid le x lt 00 0 ones k enl enai Fe pea db SUMO own Gest iden Figure 4 3 Direction of LIS33DE The values of X Y Z axis are printed on Hyperterminal using USART3 All transfers are managed in DMA mode 4 19 12S example The 12S folder contains one example gt Audio Audio example 1 Purpose This example demonstrates the basic of audio features It allows playing an audio file through the 12S peripheral and using the external codec implemented on the DevkKit1207 board 2 Description In this example the 12S input clock provided by a dedicated PLL PLLI2S is configured to have an audio sampling frequency at 48 KHz with Master clock enabled This example uses an audio codec driver which consists of three independent layers Codec Hardware layer which controls and communicates with the audio codec Page 88 of 155 Lag Embest Technology Co LTD http www armkits com CS42L52 implemented on the evaluation board MAL Media Access Layer which controls and interfaces with storage media storing or providing the audio file stream The high layer which implements overall control and interfacing API allowing to perform basic audio operations Init Play Pause Resume Stop Volume control and audio file pointer management In this example the audio file is stored in the internal flash memory Stereo 16 bit 48 KHz The analog output device is automatically
10. 5 Select item 1 fromf the menu to test MSC host demo Please refer to the Section 6 3 1 USB MSC host example 6 Select item 2 from the menu to test MSC host demo Please refer to the Page 140 of 155 Lag Embest Technology Co LTD 7 http www armkits com Section 6 3 2 USB HID host example 6 4 USB_Host_Device example This folder contains one example when USB works in OTG mode gt DRD This example show how to use the USB OTG Device Host peripheral on the STM32F2xx devices In device mode The STM32 is enumerated as an USB Mass storage Device that uses the embedded microSD as storage media In Host mode the STM32 behave as a mass storage Host that can enumerate show content and display the supported BMP image in the attached USB flash disk This example works in High Speed and Full Speed modes Users can select High Speed Full Speed mode by modifying the relevant macro in MDK as shown below Y Options for Target SIN322xG EVAL_USBD HS Device Target Output Listing User C C Asm Linker Debug Utilities Preprocessor Symbols lees Define USE_STDPERIPH_DRIVER STM32F2 amp x USE_STM322xG_E VAVA AE ULP PH e _ Undefine Language Code Generation Strict ANSI C warnings Optimization Level 3 03 7 Enum Container always int AllWamings v Optimize for Time I Plain Char is Signed I Split Load and Store Multiple F Read Only Position Independent Iw One ELF Section per Fu
11. High Speed Full Speed mode by modifying the relevant macro in MDK as shown below Y Options for Target SIN322xG EVAL_USBD HS Device Target Output Listing User C C Asm Linker Debug Utilities Preprocessor Symbols Define USE_STDPERIPH_DRIVER STM32F2XX USE_STM322xG_EVA Undefine Language Code Generation Strict ANSI C Warnings Optimization Level 3 03 7 Enum Container always int AllWamings v Optimize for Time I Plain Char is Signed I Split Load and Store Multiple F Read Only Position Independent Iw One ELF Section per Function F Read Write Position Independent ee A Mine 4 4 4 SLibraries CMSIS CM3 D eviceS upport S T STM32F iw AAA Libraries S T M32F d Misc Ree Controls c cpu Cortex M3 D__MICROLIB g 03 apes interwork split_sections JA I ine LAAA SLibraries CMSIS CM 34D eviceS upport S T STM32F 2xx Compiler control string L Figure 6 6 Select USB FS HS mode for DFU device demo If Preprocessor Symbols includes USE_USB_OTG_FS the demo will work in Page 116 of 155 Ga Embest Technology Co LTD http www arm kits com Full Speed mode If Preprocessor Symbols includes USE_USB_OTG_HS the DEMO will work in High Speed mode Note USE_USB_OTG_FS and USE_USB_OTG_HS should not be included in Preprocessor Symbols at the same time DFU device information is located in usbd_desc c as shown below 051 define
12. Trace Flash Download Download Function RAM for Algorithm Loan Erase Full Chip jw Program e Erase Sectors V Verify Start 0x20000000 Size 0x0800 DonotErase J Reset and Run Programming Algorithm Deseinion __ _Davies Tepe Device Size Address Range STM32F2xx Flash On chip Flash O8000000H O80FFFFFH Start 0x08000000 Size 0x00100000 Remove Figure 3 12 Finish target option setup 9 Click Build or Rebuild to build or rebuild the project File Edit View Project Flash Debug Peripherals Tools SVCS Window D ES i jf CHE s S A Figure 3 13 Build or Rebuild the project 10 Click Download to download program to MCU File Edit View Project Flash Debug Peripherals Tools SVCS Window SEIT d e ZS GI EY g P Target 2 se ZS d Figure 3 14 Download program 11 If you have selected Reset and Run option in step 6 MCU will reset and run automatically after downloading If haven t you just need to press the Reset key on the Evaluation board to run the MCU Page 35 of 155 L Embest Technology Co LTD http www armkits com 3 1 3 Create a New MDK Project This section shows how to create a new project with MDK ARM 1 Open the directory of code STM32F2xx_SidPeriph_Demo Create a new folder and name it My project Create a new folder in My Project and name it such as ADC_example Copy source files and include files from the specifie
13. USB low level driver module Figure 6 3 USB device library architecture 6 2 1 USB AUDIO device example The Audio device example allows device to communicate with host PC as USB Speaker using isochronous pipe for audio data transfer along with some control commands Mute Next Previous Forward Rewind Start Stop etc Users can switch output target to Headphone or speaker by pressing USER1 button on the evaluation board The Headphone is selected as output by default If you want output target to speaker you need to prepare a Speaker 0 25W 80Q and connect it to CON5 The Audio device works in full speed mode only so only USB_FS CON2 is available for this example Audio device information is located in usbd_desc c as shown below Page 114 of 155 n Embest Technology Co LTD http www armkits com 052 define USBD_VID 0x0483 053 054 ifdef STM32F2XX 055 define USBD_PID Ox5730 056 else 057 define USBD_PID Ox5730 058 endif STM32F2XX 059 060 defgroup USB_String Descriptors 061 RI 062 af 063 define USBD_LANGID_STRING 0x409 064 define USBD_MANUFACTURER_STRING STMicroelectronics 065 066 define USBD_PRODUCT_FS_STRING STM32 AUDIO Streaming in FS Mode 067 068 define USBD_SERIALNUMBER_F3_STRING oo0000000034E 069 070 define USBD_CONFIGURATION_FS_STRING AUDIO Config 071 define USBD_INTERFACE FS_STRING AUDIO Interface Figure 6 4 USB ADUIO device
14. from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 10 DE 10 10 10 10 10 10 10 10 10 10 10 10 10 OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK time time time 33 H 3 time 3 time 3 time 3 time 3 H time time time 3 H time 3 time E time time 3 H H H H 8 H D 6 H H H D H H D D NNNNNNNNNNNNNNN Dm D mi e H D Gi Gi Gi Gi Gi ii Gi Gi Gi Gi Gi Gi Gi E MM o o o o o o o o o o o o A time 3 Statistics Received 15 Corrupted Figure 5 17 TCP echo server demo Page 104 of 155 Lag Embest Technology Co LTD http Awww armkits com 5 2 5 UDP_echo _ client demo This demo is used to test a basic UDP echo connection In this demo the STM32 acts as a UDP client that connects to a UDP server In order to test the UDP echo client demo please follow the below steps 1 Plug in 5V power supply to the DevKit1207 Connect a crossover cable between DevkKit1207 RJ45 CON1 and PC Ethernet port 2 Configure IP address The default Static IP address of evaluation board modify the relevant macro in main h file as per your requirement _ oss Dame define MAC_ADDRS 0 060 dee IP_ADDRESS IP_ADDRO IP ADDR1 IP_ADDR2 I
15. 2 2 Hardware interface sccccescceesceeeeseeeseeeeeeeeeeeeeeeeeaeeeesaeeseaeeeenaeeessaeeneeeeees 17 2 2 1 Power InputJack asneira a E 17 2 2 2 AUDIO OUTPUT Jack siciaruicdesenntstatanatsietnnsiateiaccindasenntaiieontesaiooniaieianetees 18 22 0 SPEAKER and CAN Interface ace 18 224 vonal PONS e a a a er MNE ERE tre 18 2 2 5 Ethernet Interface esseesseesesssseesrresrnesrnnsrnnrennnsnnesnnarrnnrennrennennnasnnanenae 19 226 JTAG eebe 19 2 2 7 MicroSD Card JOISTEN debeeg 20 228 Camera nterface sisie ee e e a e 21 2 2 9 USB OTG FS Interiace sek Nee 22 2 2 10 USB OTG_HS Interface ou cccccccccssseceesssseeeeessseeeeessseeeessseeeeseseees 22 2 2 11 TFT LCD Interface iit a aea eii 23 2212 RE 24 EG NR E GE 25 2 2 14 CAN related JUMPE scii ninaiinninniiiaini n aiei aa aaa 25 2 2 15 BootLoader related Jumpers 26 2 2 16 MicroSD Card RS232 and IrDA related Jumpers 26 2 3 Hardware RENE EE 27 Chapter 3 Software Development cccceccseecseeseeeseeseeeeseeeseeesseeeseeeseeeseenseensenenees 28 3 1 MDKARM ME 28 Page 4 of 155 ate Embest Technology Co LTD i i http www armkits com 3 1 1 MDK ARM niroduUCtiO Massiani aaaea 28 3 1 2 Building an existing MDK ARM Project 30 3 1 3 Create a New MDK Projech cace co 36 3 2 UC EE 45 3 2 1 IAR EWARM Introduction A 45 3 2 2 Building an existing EWARM Proiect AAA 46 3 2 3 Create a New IAR Project sssitesstensnsicassnenduaticnidcnidensdcndianidanitenndeadien
16. 2 Left Left output 3 Right Right output 4 Right Right output 5 Left Left output 2 2 0 SPEAKER and CAN Interface Table 2 3 SPEAKER and CAN Interface CON5 Pin Signal Description 1 CAN1_L Low level CAN bus line 2 CAN1_H High level CAN bus line 3 SPK_OUT PWM Speaker Output positive 4 SPK_OUT PWM Speaker Output negative 2 2 4 Serial Ports Table 2 4 Serial Ports Interface COM Pin Signal Description 1 NC NC 2 RXD Receive data 3 TXD Transit data 4 NC NC 5 GND GND Page 18 of 155 L Embest Technology Co LTD http www armkits com i 6 DSR Data Set Ready 7 NC NC 8 CTS Clear To Send 9 NC NC 2 2 5 Ethernet Interface Table 2 5 Ethernet Interface CON1 Pin Signal Description 1 TX TX output 2 TX TX output 3 VDD3V3 3 3V Power for TX RX 4 485 Connect to Shelter 5 788 Connect to Shelter 6 VDD3V3 3 3V Power for TX RX 7 RX RX input 8 RX RX input 9 LED1 Speed LED 10 VDD3V3 3 3V Power for LED 11 LED2 Link LED 12 VDD3V3 3 3V Power for LED 13 GND GND 14 GND GND 15 NC NC 16 NC NC 2 2 6 JTAG Interface Page 19 of 155 ai Embest Technology Co LTD Table 2 6 JTAG Interface http www armkits com CON12 Pin Signal Description 1 VTREF 3 3V power s
17. LCD parallel interface 8080 6800 modes A STM32F207VF Clock reset and supply management OO STM32F207VG 1 8 to 3 6 application supply and 1 0s POR PDR PYD and BOR eo ae 4 to 25 MHz crystal oscillator Internal 16 MHz factory trimmed RC d STM32F207ZF 32 kHz oscillator for RTC with calibration F STM32F207ZG P on Figure 3 17 Select the MCU model 4 Adialogue box pops up to ask if you want to add Startup code to project The Startup Code performs configuration of the microcontroller device and Page 37 of 155 i Embest Technology Co LTD initialization of the compiler run time system You can select Yes uVision will add it for you or No then you need to add it by yourself Here we select NO and add it later pv ision Copy STM32F2xx Startup Code to Project Folder and Add File to Project Yes Figure 3 18 Add startcode 5 Now add file groups to project Right click on Target select Add Group and name the file group Project Figure 3 19 Add file groups to project Select Manage Components and click icon to create new file group as shown in the figure below Page 38 of 155 L Embest Technology Co LTD http www armkits com Components Environment and Books Project Components Folders Extensi ons Books Project Targets 7 2 TE Grous F FH Files Set as Current Target Add Files Figure 3 20 Add
18. This example shows how to configure an external interrupt line 2 Description In this example EXTI Une is connected to PAO pin EST Line15 is connected to PG15 pin After EXTI configuration a software interrupt is generated on the EXTIO toggles LED1 After that when falling edge is detected on EXTI LineO LED1 toggles and when falling edge is detected on EXTI Line15 LED2 toggles 4 5 DMA example The DMA folder contains one example gt FLASH_RAM FLASH_RAM example Page 67 of 155 P Embest Technology Co LTD http www armkits com 1 2 Purpose This example demonstrates how to use a DMA channel to transfer a word data buffer from FLASH memory to embedded SRAM memory Description DMA2 Stream0 channel is configured to transfer the contents of a 32 word data buffer stored in Flash memory to the reception buffer declared in RAM The start of transfer is triggered by software which enables DMA2 Stream0 channel memory to memory transfer and also enables the source and destination addresses incrementing is also enabled The transfer is started by setting the Channel enable bit for DMA2 StreamO channel0 At the end of the transfer a Transfer Complete interrupt is generated since it is enabled The Transfer Complete Interrupt pending bit is then cleared When the DMA transfer is completed the DMA Stream is disabled by hardware The main application can check on the Stream Enable status to detect the
19. USBD_VID USBD_PID 056 Bdefgroup USB String Descriptors 052 053 define 054 055 057 Hi 058 Mi 059 define 060 define 062 define 063 define 065 define 066 define 068 define 069 define 071 define 072 define fate iat i gt USBD_LANGID_ STRING USBD_MANUFACTURER_STRING USBD_PRODUCT_HS_STRING USBD_SERIALNUMBER_HS_STRING USBD_PRODUCT_FS_STRING USBD_SERIALNUMBER_ FS_STRING USBD_CONFIGURATION _HS_STRING USBD_INTERFACE HS_STRING USBD_CONFIGURATION FS_STRING USBD_INTERFACE FS_STRING 0x0483 OxDF11 0x409 STHicroelectronics DFU in HS mode oooo00g00010B DFU in F3 Mode oooo00000010c DFI Contig DFU Interface DFU Contigs DFU Interface Figure 6 7 USB DFU device information In order to test the USB DFU device example please follow the below steps 1 Install DfuSe_Demo_V3 0 2 software on the PC The software is located in the folder at CD ROM code STM32_F105 07_F2xx_USB Host Device_Lib_V2 0 0 Utilities Third_Party PC _ Software Die Demo_V3 0 2 If your PC is 64 bit please install DfuSe Demo V3 0 2_Setup_amd64 exe 2 Generate DFU upgrade file on the PC Optional Note There is a DFU file for testing the USB DFU example User can skip this step The DFU file is located in following folder code STM32_F105 07_F2xx_USB Host Device_Lib_V2 0 0 Project USB_Device_E Page 117 of 155 a Embest Technology Co LTD http w
20. application User Manual gt 7 uCos ii amp ucgui example User Manual gt 8 G Sensor application Test functionality of interface Documentation and reference manuals for software development Test the interface of the board carrier CD ROM gt STM32F2x_Software_ programing_manual CD ROM gt STM32F2xx_Application note User Manual gt 9 Various Tests senario Page 14 of 155 PATEA Embest Technology Co LTD http www armkits com For marketing Hardware CPU feature board carrier User Manual gt 1 1 Product introduction system interface data User Manual gt 1 2 Features Dimensional Refer to the actual length and User Manual gt 2 3 Hardware drawing of height of DevKit1207 to bring Dimensions Devkit1207 convenience for opening die For learning personnel It is suggested to browse each section in each chapter of this Manual in order Page 15 of 155 P Embest Technology Co LTD http www armkits com Chapter 2 Hardware System 2 1 CPU 2 1 1 CPU Introduction The ARM Cortex M3 based STM32 F2 series is built on ST s advanced 90 nm NVM process technology with the innovative Adaptive Real Time memory accelerator ART Accelerator and the multi layer bus matrix offering an unprecedented price performance trade off 2 1 2 CPU Features STM32F207IGT6 is characterized by a high degree of integration combining 1 Mbyte of Flash memory and 128 Kbytes of SRAM w
21. between DevKit1207 CON2 CONS3 and PC USB port 2 Plugin SD card into CON4 Make sure that jumpers JP5 and JP6 are fitted JP7 JP8 JP10 and JP11 are not fitted 3 Rebuild the demo and then download the program into Flash 4 At power on the LCD displays the following messages Page 122 of 155 aie Embest Technology Co LTD http www armkits com USB OTG FS HS MSC Devices USB Device Library v Figure 6 16 Cable connected display message 5 PC will identify the removable disk automatically Users can use it the same as an U disk as shown below Devices with Removable Storage Removable Disk J Figure 6 17 MSC device displayed on PC Note In this example Kingston s 1GB 2GB microSD card SanDisk s 2GB microSD card pass test It does not guarantee that this example supports all kinds of SD card 6 2 4 USB HID device example This example demonstrates how to use the USB OTG Device peripheral on the STM32F2xx The STM32 device is enumerated as an USB Device Joystick Mouse that uses the native PC Host HID driver The USER1 and USER2 key mounted on the DevkKit1207 boards are used to emulate the Mouse directions The HID device example works in High Speed and Full Speed modes Users can select High Speed Full Speed mode by modifying the relevant macro in MDK as shown below Page 123 of 155 A Embest Technology Co LTD __http www armkits com Y Options for Target SIN322xG EV
22. 115200 baud flow control None Page 93 of 155 i Embest Technology Co LTD http www armkits com Chapter 5 Ethernet Demonstration 5 1 Description of Ethernet Demonstration STM32F2x7xx microcontrollers features a high quality 10 100 Mbit s Ethernet peripheral that supports IEEE 1588v2 protocol both the Media Independent Interface MII and Reduced Media Independent Interface RMII to interface with the Physical Layer PHY The CD ROM provides a demonstration built on top of the LwIP Lightweight IP TCP IP stack which is an open source stack intended for embedded devices This demonstration is located in code STM32F2x7_ETH_LwIP_V1 0 2 folder E Ca STM32F2x7_ETH_LwIP_ 1 0 2 Ca _hteresc a G Libraries lt STM32 Standard libraries 6 Project Ca FreeRTOS FreeRTOS demos D gD Standalone lt Standalone demos Ca Vtilities STM32_EVAL A SI Common SO STM322xG_EVAL Ca Third_Party Si FatFs_vRO 08a a FatFs files D GD FreeRTOS_v6 1 0 4 F reeRTOS files LwIP Stack gt amp leit si 33 2 doc Ca port n LwIP source _____m_y B a code a PC_Software Project workspace DevKitl207 board s dedicated files LwIP application layer and EthernetIntertace files Figure 5 1 Demonstration structure The demonstration contains nine applications running on top of the LwIP stack 1 Applications running in standalone mode without an RTOS gt A Web server gt ATFT
23. ADC3 clock is 30 MHz and sampling time is set to 3 cycles the total conversion time is 0 5 us 2Msps The voltage at ADC3 channel 7 can be varied by using the evaluation board potentiometer RV1 The converted voltage is displayed on the evaluation Board LCD only if the define PRINT_ON_LCD is enabled in main c file 4 7 DAC example The DAC folder contains one example 1 2 gt DAC_SignalsGeneration Purpose This example demonsirates how to use the DAC peripheral to generate several analog signals using DMA controller Description When the user presses the USER1 push button DMA transfers the two selected waveforms to the DAC For each press on USER1 button 2 signals are selected and can be monitored on the two DAC channels Page 70 of 155 a Embest Technology Co LTD http www armkits com Escalator waveform Channel 1 and Sine waveform Channel 2 Noise waveform Channel 1 and Triangle waveform Channel 2 4 8 USART example The UASRT folder contains two examples gt USART_IRDA gt USART_Printf 4 8 1 USART_Printf 1 2 Purpose This example shows how to retarget the C library printf function to the USART This will output the printf message on the Hyperterminal using USART3 Description The USARTS is configured as below BaudRate 115200 baud Word Length 8 Bits One Stop Bit No parity Hardware flow control disabled RTS and CTS signals Receive and transm
24. Bits One Stop Bit No parity Hardware flow control disabled RTS and CTS signals Receive and transmit enabled Page 72 of 155 a Embest Technology Co LTD http www armkits com When the program is executed the sender transmits the data while receiver receives the data with the help of Infrared Transceiver Module The amount of data sent and received will be displayed on LCD 4 9 PWR example The PWR folder contains five examples gt BOR Brown out reset CurrentConsumption PWR Programmable voltage detector STANDBY Vv Vv WV WV STOP BOR example shows how to configure the programmable BOR thresholds using the FLASH option bytes CurrentConsumption example shows how to configure the STM32F2xx system to measure the current consumption in different Low Power Modes PVD example shows how to configure the programmable voltage detector using an external interrupt line STANDBY example shows how to enter the system into STANDBY mode and wake up from this mode using external RESET RTC Alarm A or WKUP pin STOP example shows how to enter the system into STOP mode and wake up from this mode using RTC Wakeup Timer Event connected to EXTI Line 22 Now let s see the STANDBY example in detail STANDBY example 1 Purpose This example shows how to enter the system into STANDBY mode and wake up from this mode using external RESET RTC Alarm A or WKUP pin 2 Description Page 73 of 155 ae
25. CONFIGURATION FS STRING VCP Config 070 define USBD INTERFACE FS STRING JCP Interface Figure 6 24 USB VCP device information In order to facilitate testing a PC plays as two host of VCP ST Evaluation Host PC Board USB Terminali USARI Terminal2 Figure 6 25 One single Host for USB and USART In order to test the USB VCP device example please follow the below steps 1 Install VCP_V1 3 1_Setup exe on the PC The software is located CD ROM at the following location code STM32_F105 07_F2xx_USB Host Device_Lib_V2 0 0 Utilities Third_Party PC _ Software stm32_vcp If your PC is 64 bit please install VCP_V1 3 1_Setup_x64 exe Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male between DevKit1207 CON2 CONS3 and PC USB port Page 128 of 155 gi Embest Technology Co LTD http www armkits com 3 Connect a null modem female female RS232 cable between the DB9 connector COM USARTS and PC serial port Make sure that jumpers JP7 and JP8 are fitted JP5 JP6 JP10 and JP11 are not fitted 4 Rebuild the demo and then download the program into Flash 5 At power on the LCD displays the following messages USB OTG FS HS VCP Devices YCP Interface configured USB Device Library Figure 6 26 USB audio device cable connected display message 6 USB device DevKit1207 is enumerated as serial communication port BB Network adapters
26. Embest Technology Co LTD http www armkits com Main menu 1 Host demo 2 Device demo 3 Credits Mass storage menu 1 Explore flash content 2 Write file to disk 3 Show BMP file 4 Return HID menu 1 Return Figure 6 47 Menu structure 5 Select item 1 from the menu to test host demo Please refer to the Section 6 3 1 USB MSC host example Select item 2 from the menu to test device demo Please refer to the Section 6 2 3 USB MSC host example 6 Select item 3 of the menu the LCD displays the following messages USB Manual DRD demo Board devkitl 207 STM 1 Host demo 2 Device demo Figure 6 48 System information Page 143 of 155 tee Embest Technology Co LTD http www armkits com Chapter 7 uC OS II amp uC GUI Demo This demo is located in the CD ROM at the below following location code uCos ucgui EvalBoards ST Devkit1207 E VAL RVMDK OS Probe This demo shows an implementation of gt uCos ll_v2 86 migration gt ucgui_v3 90a migration gt uCos ll and ucgui demonstration with LED blink and GUI demo tasks In order to test the uCos Il and ucgui demo please follow the below steps 1 Plug in 5V power supply to the DevKit1207 2 Rebuild the demo and then download the program into Flash 3 At power on LED1 LED4 turn on then turn off in an infinite loop LCD displays ucgui demo in an infinite loop Note There is a simple one to one relationsh
27. Embest Technology Co LTD http www armkits com In the associated software The system clock is set to 120 MHz The EXTI_Line15 is configured to generate interrupt on falling edge The EXTI_Line22 connected internally to the RTC Wakeup event is configured to generate an interrupt on rising edge each 4s The SysTick is programmed to generate an interrupt each 250 ms In the SysTick interrupt handler LED2 is toggled this is used to indicate whether the MCU is in STOP or RUN mode When the system enters into STOP mode it will wait for the RTC Wakeup event to be generated each 4s or USER1 push button is pressed When MCU wake up from STOP mode due to the RTC WakeUp event EXTI_Line22 LED1 is toggled If MCU wake up from STOP mode due to the USER1 button EXTI_Line15 LED4 is toggled LEDs are used to monitor the system state as following LED2 toggling system is in RUN mode LED1 toggled system woken up from STOP mode due to RTC WakeUp Interrupt LED4 toggled system woken up from STOP mode due to EXTI_Line15 USER1 push button This behavior is repeated in an infinite loop 4 10 RCC example The RCC folder contains one example gt RCC_Example RCC_Example 1 Purpose This example shows how to use for debug purpose the RCC_GetClocksFreq Page 74 of 155 Lamm Embest Technology Co LTD http www armkits com function to retrieve the current status and frequencies of different on chip clocks 2 D
28. LED2 LED3 and LED4 are toggled with a timing defined by the Delay function 4 13 TIM example The TIM folder contains a set of examples Table 4 1 TIM example TIM 6Steps This example shows how to configure the TIM1 peripheral to generate 6 Steps InputCapture This example shows how to use the TIM peripheral to measure the frequency of an external signal OCActive This example shows how to configure the TIM peripheral to generate four different signals with four different delays OClnactive This example shows how to configure the TIM peripheral in Output Compare Inactive mode with the corresponding Interrupt requests for each channel OCToggle This example shows how to configure the TIM3 peripheral to generate four different signals with four different frequencies OnePulse This example shows how to use the TIM peripheral to generate a One pulse Mode after a Rising edge of an external signal is received at Timer Input pin Parallel_Synchro This example shows how to synchronize TIM peripherals in parallel mode This example shows how to use the TIM peripheral to PWM_Input measure the frequency and duty cycle of an external signal PWM_Ouitput This example shows how to configure the TIM Page 78 of 155 gm Embest Technology Co LTD q http Awww armkits com peripheral in PWM Pulse Width Modulation mode This example shows how
29. LTD http www armkits com gt f you want to download programs with ULINK please select ULINK Cortex Debugger Default Setting As shown in following figure Y Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Configure Flash Menu Command e Use Target Driver for Flash Programming ULINK Cortex Debugger X Settings Je Update Target before Debugging Init File E Edit Use External Tool for Flash Programming Command d Arguments TT Run Independer Cancel Defaults Help Figure 3 8 Select ULINK as program downloader gt If you want to download programs with JLink please select Cortex M R J LINK J Trace Y Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Configure Flash Menu Command Use Target Driver for Flash Programming Cortex M R J LINK J Trace Settings Iw Update Target before Debugging Irit Fil E Edit C Use Extemal Tool for Flash Programming Command SE Arguments TT Run Independent Cancel Defaults Help Figure 3 9 Select JLink as program download tool Page 33 of 155 a Embest Technology Co LTD http www armkits com 6 7 Click Settings to configure Flash download If you want MCU to reset and run automatically after Flash downloading please select Reset and Run
30. Low power supports Sleep Stop and Standby modes WR Supports booting from Flash System memory or SRAM HR Supports ISP and IAP programming External Memory Onboard DC compatible serial interface 2Kbits EEPROM Micro SD card slot Page 11 of 155 Lamm Embest Technology Co LTD http www armkits com Audio interfaces 1 x stereo headphone output jack 1x speaker output jack 1x audio DAC output jack LCD Touch Screen 3 5 inch TFT color LCD 240 x 320 pixel RGB resolution 262000 colors 16 bit 8080 parallel interface brightness control via PWM 4 wire resistive touch screen Data Transfer Interfaces 1x 5 wire RS232 Serial Port 1x USB2 0 OTG Device Host High speed up to 480Mbps 1x USB2 0 OTG Device Host Full speed up to12Mbps 1 x 10 100 Ethernet with IEE 1588v2 RJ45 connector 1x CAN2 0B interface 1x IrDA transceiver Input Interface and Other Facilities 1x Camera interface 1 x Potentiometer A D converter 2x USER buttons 1x RESET button 1x WAKEUP button 20 pin standard JTAG interface RTC battery socket User needs to prepare battery CR1220 model is recommended 1 x LED for Power indicator 2xLEDs for USB OTG FS indicators 2xLEDs for USB OTG HS indicators 4x User LEDs 140 GPIO pins are all brought out Page 12 of 155 m Embest Technology Co LTD Mechanical Parameters Dimensions 160 mm x 115 mm Input Voltage 5V Power consumption 0 4A 5V Working Temp
31. Networks 2 VirtualBox Bridged Networking Driver rie and Printer Sharing for Microsoft Networks Internet Protocol TCPAP Install Uninstall Description Transmission Control Protocolinternet Protocol The default wide area network protocol that provides communication across diverse interconnected networks Show icon in notification area when connected Notify me when this connection has limited or no connectivity Figure 5 3 Local Area Connection Properties 3 Double click TCP IP Options opens a window for TCP IP Properties as shown below Internet Protocol TCPAP Properties p General L You can get IP settings assigned automatically if your network supports this capability Otherwise you need to ask your network administrator for the appropriate IP settings Obtain an IP address automatically Use the following IP address IP address 192 192 192 116 Subnet mask 255 255 255 0 Default gateway 192 192 192 101 Dbtain DNS server address automatically Use the following DNS server addresses Preferred DNS server 202 96 134 133 Alternate DNS server 202 96 128 166 E Figure 5 4 TCP IP Options 4 Double click the Advanced option open a window for Advanced TCP IP settings as shown below Page 96 of 155 L Embest Technology Co LTD http www armkits com Advanced
32. TCPAP Settings IP Settings DNS WINS Options IP addresses IP address Subnet mask 192 192 192 116 255 255 255 0 Add A Remove Default gateways Gateway Metric 192 192 192 101 Automatic Automatic metric Interface metric Figure 5 5 Advanced TCP IP settings 5 Click the Add option open a window for Add TCP IP Enter the IP address and subnet mask and then click Add as shown below Advanced TCP IP Settings IP Settings DNS WINS Options IP addresses TCPAP Address IP address 192 168 0 20 Subnet mask 255 255 255 0 C Dea Gateway Metric 192 192 192 101 Automatic Automatic metric Figure 5 6 Add TCP IP address 6 Click OK to finish network settings Page 97 of 155 Lag Embest Technology Co LTD j i http www armkits com Advanced TCPAP Settings IP Settings DE m Options IP addresses IP adel Brie 192 192 192 116 255 255 255 0 92 168 0 20 255 255 255 0 Default gateways Gateway Metric 192 192 192 101 Automatic Automatic metric Figure 5 7 TCP IP address setup ok 5 2 Standalone demos 5 2 1 HTTP server demo The HTTP server demo shows an implementation of a web server with the following features URL parsing support of CGI Common Gateway Interface support of SSI Server Side Includes dynamic Header genera
33. and PC11tare Group2 JP8 connected to TX and RX pins of MAX3243 JP10 When JP10 and JP11 fitted PC10 and PC11are Group3 JP11 connected to TX and RX pins of TFDU6300 Note There should be just one group of jumpers fitted at the same time If more than one group of jumpers is fitted some device may not work properly Page 26 of 155 http www armkits com Leg Embest Technology Co LTD BR http www armkits com 2 3 Hardware Dimensions The hardware dimensions of DevKit1207 Units mm OCOO000000 OoO00000000 op D e ono Oo oh of OO00000000000 ooo00000000000 DOOO00000H 29000000000 OO OO O o O OO o O Figure 2 2 Hardware Dimensions Diagram Page 27 of 155 P Embest Technology Co LTD d http www armkits com Chapter 3 Software Development There are two main software development environments for STM32F2xx series MCU Keil MDK ARM and IAR EWARM The following sections will give a short description of these software and show how to use them 3 1 MDK ARM 3 1 1 MDK ARM Introduction The MDK ARM is a complete software development environment for Cortex M Cortex R4 ARM7 and ARM9 processor based devices MDK ARM is specifically designed for microcontroller applications it is easy to learn and use yet powerful enough for the most demanding embedded applications Features gt Complete s
34. detail to show how to use CAN peripheral Page 83 of 155 gi Embest Technology Co LTD http www armkits com Networking example 1 Purpose 2 This example shows how to configure the CAN peripheral to send and receive CAN frames in normal mode The sent frames are used to control Leds by pressing key push button Description The CAN serial communication link is a bus to which a number of units may be connected This number has no theoretical limit Practically the total number of units will be limited by delay times and or electrical loads on the bus line This program behaves as follows After reset LED1 is ON By Pressing on USER1 Button LED2 turns ON and all other LEDs are OFF on the N evaluation boards connected to the bus Press on USER1 Button again to send CAN Frame to command LEDn 1 ON all other Leds are OFF on the N evaluation boards This example is tested with a bus of 3 units The same program example is loaded in all units to send and receive frames Any unit in the CAN bus may play the role of sender by pressing USER1 button or receiver Note Make sure that JP9 is fitted It requires two evaluation boards Use cable to connect two evaluation boards As shown in figure below CAN H lt CAN H CAN L lt CANL DevKit1207 DevKit1207 I II Page 84 of 155 ae Embest Technology Co LTD http www armkits com 4
35. detected Speaker or Headphone when the Headphone is plugged unplugged in from the audio jack of the evaluation board The example also manages information display and control interface through push buttons When the application is Playing audio file USER1 Pause USER2 Volume UP Wakeup Volume DOWN When the application is Paused USER1 Play USER2 Switch output target to Headphone Wakeup Switch output target to Speaker Note User needs to prepare a Speaker 0 25W 8Q and connect it to CON5 4 20 SDIO example The SDIO folder contains one example gt uSDCard uSDCard example 1 Purpose This example shows a basic example of how to use the SDIO firmware library and an associate driver to perform read write operations on the SD Card memory SD Card Page 89 of 155 Lag Embest Technology Co LTD http www armkits com V1 0 V1 1 V2 0 and SDHC High Capacity protocol that could be mounted on the board This example also migrate the FatFs R0 08a file system 2 Description The example provides different SD Card transfer states and operations Steps involved in this process are given below The SDIO peripheral and SD Card are initialized using the SD_Init function SD Card Erase Operation SD Card Single Block Operation SD Card Multiple Block Operation Starts a Multiple Write operation Write a multi Blocks using the SD_Write MultiBlocks function Read a multiple Blocks using the SD_Re
36. ei Leave DFU mode Actions Select Target s AvalanteSectors Double Click for more 12 sectors PSPETOIS Upload Action File Choose Ipload z Transferred data size OKB O Bytes of 0 KB O Bytes Iw Verify after download F Optimize Upgrade duration Remove some FFs Operation duration 00 00 00 Upgrade Verify gl See USL File correctly loaded ae Quit Figure 6 12 Upgrade DFU file 9 In order to update the firmware click Upgrade button to start the firmware update Once completed a message will appear to indicate upgrade is successful or not 10 At power on MCU run in the new firmware To go back to the DFU example you have to reset the device using RESET button or software reset while the KEY button is pushed Note In the DFU DEMO the application start address is set to Ox0800C000 as shown below This address represents the DFU code protected against write and erase operations You can modify this address in usbd_conf h but you must make sure that there enough space for DFU code 0x08s000000 application start address Page 120 of 155 L Embest Technology Co LTD l http www armkits com define MAX USED MEI endif STM32F2XX 056 Flash memory address from where user application will e 057 This address represents the DFU code protected against wy 058 ifdef STM32F2XX 059 define APP_DEFAULT_ADD Ox0800C000 The 4 060 elif defined STM
37. end of transfer or can also check on the number of remaining transfers which should be equal to 0 at the end of the transfer A comparison between the source and destination buffers is done to check that all data have been correctly transferred DevKit1207 evaluation board s LEDs can be used to monitor the transfer status LED1 is ON when the program starts LED2 is ON when the configuration phase is done and the transfer is started LED3 is ON when the transfer is complete into the Transfer Complete interrupt routine LED4 is ON when the comparison result between source buffer and destination buffer is passed It is possible to select a different Stream and or channel for the DMA transfer example by modifying defines values in the file main h Note Only DMA2 Streams are able to perform Memory to Memory transfers Page 68 of 155 ai Embest Technology Co LTD q http www armkits com There are many different options to check for the DMA end of transfer By using DMA Transfer Complete interrupt By using DMA enable state the DMA stream is disabled by hardware when transfer is complete By using DMA Stream transfer counter value the counter value is decremented when transfer is ongoing and is equal to 0 at the transfer end By using DMA Transfer Complete flag polling mode In this example methods 1 2 and 3 are used to identify the DMA end of transfer user can select between method 2 and 3 by unco
38. information In order to test the USB AUDIO example please follow the below step Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male between DevkKit1207 USB_FS CON2 and PC USB port Plug in Headphone or connect Speaker to CONS Rebuild the demo and then download the program into Flash At power on the LCD displays the following messages USB OTG FS AUDIO Device USB Device Librar Figure 6 5 USB audio device cable connected display message At power on PC will automatically recognize DevKit1207 as USB Audio Device Open the music player and play any music file on PC then you can hear the music from Headphone or Speaker Note Supported audio sampling rates are from 96 kHz to 24 kHz It is advised to Page 115 of 155 Lag Embest Technology Co LTD P http www armkits com set a high and standard sampling rate in order to get best audio quality i e 96 kHz or 48 kHz Ifa low audio sampling rate is configured define USBD_AUDIO_FREQ below 24 kHz it may result in noise issue at pause resume stop operations 6 2 2 USB DFU device example The DFU Device Firmware Upgrade example allows a device firmware upgrade using the DFU drivers The supported memories for this example are Internal Flash memory for STM32F105 7 and STM32F2xx devices OTP memory for STM32F2xx devices The DFU device example works in High Speed and Full Speed modes Users can select
39. on LCD will display the IP address of the evaluation board 5 On the remote PC open a web client Mozilla Firefox or Internet Explorer and type the board s IP address in a web browser By default the following static IP address is used 192 168 0 163 e STM32F2x7 Microsoft Internet Explorer File Edit View Favorites Tools Help ddress Si http 4M 92 168 0 163 STM32F 2x7 html STM32F2x7 Webserver Demo Based on the wl TCP IP stack STM32 F 2 Series A new generation on STM32 with significant improvernent in features performance More Memory Advanced features Maintain close pin out compatibility Maintain close software compatibility a a a a Complement the existing family with more performance memory and features a Internet Figure 5 24 Home page of the HTTP server netconn demo 6 Click the List of tasks into task status monitor page of FreeRTOS real time system As shown below Page 109 of 155 Lag Embest Technology Co LTD l http www armkits com A STM32F2x7 TASKS Microsoft Internet Explorer DOR Fie Edit View Favorites Tools Help ay Address http 92 168 0 163 STM32F 2x7 TASKS html sc Ejoo op STM32F2x7 List of tasks and their status List of task Number of page hits 67 State Priority Stack Deleted Suspended Internet Figure 5 25 List of tasks page of the HTTP server netconn demo 5 3 2 HTTP server_socket demo The HTTP server socket demo
40. option Cortex JLink JIrace Target Driver Setup Debug Trace m Programming Download Fupch Description L Device Type Device Size Address Range Flash Download RAM for Algorithm i hig M Program e Erase Sectors V Verify Start 0x20000000 Size 040800 C DonotErase Reset and Run Algorithm Start Size Figure 3 10 Flash download settings Click Add to add programming algorithm Select STM32F2xx Flash On chip Flash 1M algorithm and then click Add Add Flash Programming Algorithm RC28F640 3 Dual Flash Ext Flash 32 bit 29JL032H_BOT Flash Ext Flash 16 bit 29JL032H_TOP Flash Ext Flash 16 bit S3FM02G 16kB Data Flash On chip Flash S3FM02G 384kB Prog Flash On chip Flash STM32F 10x XL density Flash On chip Flash STM32F10x Med density Flash On chip Flash STM32F10x Low density Flash On chip Flash STM32F10x High density Flash On chip Flash STM32F10x Connectivity Lin On chip Flash STM32F10x M25P64 SPI Fla Ext Flash SPI STM32F10x Flash Options On chip Flash STM32F2xx Flash On chip Flash STM32L15x Low Power Flash On chip Flash STM32L15x Flash Options On chip Flash TMPM32sFx 1024kB Flash On chip Flash Add Cancel Figure 3 11 Add programming algorithm Page 34 of 155 ate Embest Technology Co LTD http www armkits com 8 Click OK to finish the setup and return to IDE window Cortex JLink JTrace Target Driver Setup Debug
41. products Don t follow the instruction of the manual in order to damage the product Due to the natural disasters unexpected matters or natural attrition of the components or unexpected matters leads to the defects of appearance function Due to the power supply bump leaking of the roof pets moist impurities into the boards all those reasons which lead the defects of appearance function User unauthorized weld or dismantle parts leads the product s bad condition or let other people or institution which are not authorized by Embest to dismantle repair change the product leads the product bad connection or defects of appearance function User unauthorized install the software system or incorrect configuration or computer virus leads the defects Purchase the products through unauthorized channel Page 153 of 155 a Embest Technology Co LTD l http www armkits com h Those commitments which is committed by other institutions should be responsible by the institutions Embest has nothing to do with that During the warranty period the delivery fee which delivery to Embest should be covered by user Embest will pay for the return delivery fee to users when the product is repaired If the warranty period is expired all the delivery fees will be charged by users When the board needs repair please contact technical support department Note Those products are returned without the permission of our technician we
42. shows an implementation of web server application based on the socket API To test this demo please refer to the Section 5 3 1 HTTP server netconn demo 5 3 3 UDP tcp_echo_server_netconn demo This demo provides the echo service application on both TCP and UDP protocols To test the UDP TCP echo server netconn demo in TCP server mode please refer to the Section 5 2 4 TCP echo server demo To test the UDP TCP echo server netconn demo in UDP server mode please refer to the Section 5 2 6 UDP echo server demo Page 110 of 155 P Embest Technology Co LTD i http www armkits com Chapter 6 USB Examples 6 1 Description of USB Examples The STM32F207 embed an USB OTG high speed and an USB OTG full speed device host OTG peripheral with integrated transceivers The USB OTG HS and USB OTG FS peripheral are compliant with the USB 2 0 specification and with the OTG 1 0 specification OTG_FS interface description On chip FS OTG PHY Operates in Full Speed 12 Mbps and Low Speed 1 2 Mbps modes as host Operates in Full Speed 12 Mbps modes as device OTG_HS interface description On chip Full Speed PHY and ULPI UTMI low pin interface interface In Host mode supports high speed 480 Mbps need external High Speed PHY full speed 12 Mbps and low speed 1 5 Mbps transfers In Device mode only supports high speed and full speed transfers The following table gives a brief definition of acronyms and abbrevia
43. the ON and OFF states corresponds to the inserted delay Use the USER1 and USER2 key to change the direction of LEDs Note There is a simple one to one relationship between LED1 LED4 in software and LED6 LEDS9 in hardware 4 3 NVIC example The NVIC folder contains three examples gt DMA_WFIMode gt IRQ_ Priority gt VectorTable_Relocation DMA_WFIMode example shows how to enter into the system WEI mode by enabling DMA transfer and how to wake up from this mode using DMA End of Transfer interrupt IRQ_Priority example demonstrates the use of the Nested Vectored Interrupt Controller NVIC VectorTable_Relocation example describes how to relocate the CortexM3 vector table into a specific address other than the default Flash memory base address Let s discuss IRQ_Priority example in detail to see how to use NVIC IRQ_Priority example 1 Purpose This example demonstrates the use of the Nested Vectored Interrupt Controller Page 65 of 155 Lag Embest Technology Co LTD J http www armkits com NVIC 2 Description In this example Configure 2 EXTI Lines WAKEUP button EXTI Line and USER1 button EXTI Line to generate an interrupt on each falling edge and to use the SysTick interrupt Using following parameters you can configure the above interrupts WAKEUP button EXTI Line PreemptionPriority PreemptionPriorityValue SubPriority 0 USER1 button EXTI Line PreemptionPriority 0 SubPriori
44. the Time Stamp feature 2 Description One from the following clock can be used as RTC clock source uncomment the corresponding define in main c LSE oscillator clock usually delivered by a 32 768 kHz quartz LSI oscillator clock Note Make sure that jumpers JP7 and JP8 are fitted Connect a null modem female female RS232 cable between the DB9 connector COM1 USART3 and PC serial port if you want to display data on the Hyper Terminal Hyperterminal configuration Word Length 8 Bits One Stop Bit No parity BaudRate 115200 baud flow control None The program behaves as follows After startup the program checks the backup data register 0 value BKP_DRO value not correct RTC_BKP_DRO value is not correct or has not yet been programmed when the program is executed for the first time the RTC is configured and the user is asked to set the time and date entered on HyperTerminal BKP_DRO value correct this means that the RTC is configured and the time date and timestamp time and date are displayed on HyperTerminal When an External Reset occurs the BKP domain is not reset and the RTC configuration is not lost When power on reset occurs If a battery is connected to the VBAT pin the BKP domain is not reset and the RTC configuration is not lost If no battery is connected to the VBAT pin the BKP domain is reset and the RTC configuration is lost Page 76 of 155 gi Embest Technology Co LT
45. versions The demo version of MDK4 22a with code limitation is supplied along with the kit in CD ROM User need to purchase or get the license themselves in order to use MDK ARM software without any code limitations All MDK projects under folder MDK ARM in the CD ROM are built with MDK4 22a The sections Building an existing MDK ARM Project and Create a New MDK Project give a short description of how to use the MDK ARM to develop application software For more detail please refer to the relevant documentation Page 29 of 155 L Embest Technology Co LTD http www armkits com 3 1 2Building an existing MDK ARM Project In this section ADC3_DMA as an example has been used to show how to configure an existing MDK project 1 2 3 Open project Open the ADC3_DMA project from the directory as follow code STM32F2xx_SidPeriph_Demo Project STM32F2xx_StdPeriph_Examples ADC ADC3_DMA MDkK ARM Click the icon to configure Target options as show in following picture File Edit View Project Flash Debug Peripherals Tools SVCS Window od d e AE la ew id a Ki D z ff OG e WI Tarzet vL A Figure 3 2 Configure Target options In the opened window select the Device tab and select the MCU from the list as shown below Y Options for Target Target 1 Device Target Output Listing User c Ct Asm Database Vendor STMicroelectronics Device STM32F207IG Tools
46. will not take any responsibility for them Basic notice to protect and maintenance LCD Do not use finger nails or hard sharp object to touch the surface of the LCD otherwise user can t enjoy the above service Embest recommend user to purchase a piece of special wiper to wipe the LCD after long time use please avoid clean the surface with fingers or hands to leave fingerprint Do not clean the surface of the screen with chemicals otherwise user can not enjoy above service Note Embest do not supply maintenance service to LCD We suggest the customer first check the LCD after getting the goods In case the LCD can not run or show no display customer should inform Embest within 7 business days from the moment of getting the goods Value Added Services We will provide following value added services Page 154 of 155 Leg Embest Technology Co LTD http www armkits com Provided services of driver develop based on Embest embedded platform like serial port USB interface devices LCD screen Provided the services of control system transplant BSP drivers development API software development Other value added services like power adapter LCD parts Other OEM ODM services Technically training Please contact Embest to get technical support Support Tel 86 755 25503401 Fax 86 755 25616057 Pre Sale consultation market embedinfo com After Sale consultation support embedinfo com Page 155
47. 155 ate Embest Technology Co LTD http www armkits com BH Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Undefine r Language Code Generation J Strict ANSI C Warnings Optimization Level O o0 I Enum Container always int I Optimize for Time Plain Char is Signed I Split Load and Store Multiple J Read Only Position Independent M One ELF Section per Function I Read Write Position Independent Include Paths l Misc Controls Compiler c cpu Cortex M3 g 00 apes interwork 1 D Program FilesskeitARMSCMSISSInclude control D Program Files keilAAMSINC ST4S TM32F 2xx DUSE_STM322xG_EVAL string J Thumb Mode Cancel Defaults Help Figure 3 27 Add Preprocessor Symbols 11 Add Include Paths Click the icon shown in the figure below Y Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Preprocessor Symbols Define USE_STM322xG_EVAL USE_FULL_ASSERT USE_STDPERIPH_DRIVER Undefine Language Code Generation I Strict ANSI C Warnings Optimization Level0 00 I Enum Container always int X J Optimize for Time I Plain Char is Signed eee I Split Load and Store Multiple Read Only Position Independent I One ELF Section per Function I Read Write Position Independent Include Paths Misc Controls Compil
48. 17 FLASH example The FLASH folder contains two examples gt Program gt Write_Protection Program example provides a description of how to program the STM32F2xx FLASH Write_Protection example provides a description of how to enable and disable the write protection for the STM32F2xx FLASH Now let s discuss Program example in detail to show how to use FLASH Program example 1 Purpose This example provides a description of how to program the STM32F2xx FLASH 2 Description In this example After Reset the Flash memory Program Erase Controller is locked To unlock it the FLASH_Unlock function is used Before programming the desired addresses an erase operation is performed using the flash erase sector feature The erase procedure starts with the calculation of the number of sector to be used Then all these sectors will be erased one by one by calling FLASH_EraseSector function Once this operation is finished the programming operation will be performed by using the FLASH_ProgramWord function The written data is then checked and the result of the programming operation is stored into the MemoryProgramStatus variable 4 18 12C example The 12C folder contains two examples Page 85 of 155 a Embest Technology Co LTD http www armkits com gt EEPROM gt GSensor LIS33DE 4 18 1 EEPROM 1 2 Purpose This firmware provides a basic example of how to use the 12C firmware library and an asso
49. 3 3V 21 XCLKA Clock output a 22 XCLKB NC 23 GND4 GND 24 FLD NC 25 PWR_EN Power Enable 26 RST Reset the camera 27 SDA 12C master serial clock 28 SCL 12C serial bidirectional data 29 GND5 GND 30 VDDIO 3 3V 2 2 9 USB OTG_FS Interface Table 2 9 USB OTG_FS Interface CON2 Pin Signal Description 1 VBUS 5V 2 D USB Data 3 D USB Data 4 ID USB ID 5 GND GND 2 2 10 USB OTG_HS Interface Table 2 10 USB OTG_HS Interface CON3 Pin Signal Description Page 22 of 155 i Embest Technology Co LTD http www armkits com _ 1 VBUS 5V 2 D USB Data 3 D USB Data 4 ID USB ID 5 GND GND 2 2 11 TFT_LCD Interface Table 2 11 TFT_LCD Interface CON7 Pin Signal Description 1 VDD5 5V 2 VDD5 5V 3 GND GND 4 GND GND 5 VDD33 3 3V 6 VDD33 3 3V 7 LCD_PWM LED Dimming Control by PWM Signal 8 I2C_SCL I2C master serial clock 9 I2C_SDA I2C serial bidirectional data 10 TC_INT Touch screen interrupt 11 LCD_RST LCD reset 12 LCD_cs LCD chip select 13 GND GND 14 GND GND 15 GND GND 16 DO 16 bit 8080 parallel interface Data bit 0 17 D1 16 bit 8080 parallel interface Data bit 1 18 D2 16 bit 8080 parallel interface Data bit 2 19 D3 16 bit 8080 parallel interface Data bit 3 Page 23 of 155 ai Embest Technology Co LTD http www ar
50. 3 DeviceSupportS TS TM32F 2xx string v Figure 6 14 Select USB FS HS mode for MSC device demo Page 121 of 155 ae Embest Technology Co LTD http www armkits com If Preprocessor Symbols includes USE_USB_OTG_FS the DEMO will work in Full Speed mode If Preprocessor Symbols includes USE_USB_OTG_HS the DEMO will work in High Speed mode Note USE_USB_OTG_FS and USE_USB_OTG_HS should not be included in Preprocessor Symbols at the same time MSC device information is located in usbd_desc c as shown below 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 define define define define define define define define define define define define 2 ain in F usbd_dese USBD_VID 0x0483 USBD_PID Ox5720 USBD_LANGID_STRING 0x409 USBD_MANUFACTURER_ STRING STMicroelectronics USBD_PRODUCT_HS5_STRING Mass Storage in HS Mode USBD_SERIALNUMBER_HS_STRING oooo0000001i USBD_PRODUCT_FS_STRING Mass Storage in FS Mode USED SERIALNUMBER_FS_ STRING oooo0000001B USBD_CONFIGURATION_HS_ STRING MSC Config USBD_INTERFACE HS_STRING MSC Interface USBD_CONFIGURATION_FS_STRING MSc Config USBD_INTERFACE FS_STRING MSC Interface Figure 6 15 USB MSC device information In order to test the USB MSC device example follow these steps 1 Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male
51. 32F10xX CL 061 define APP DEFAULT ADD Ox08008000 The f 062 endif STM32F2XxX Figure 6 13 Configure start address of application 6 2 3 USB MSC device example The MSC Mass Storage example gives a typical example of how to use the STM32F2xx USB OTG Device peripheral to communicate with a PC Host using the bulk transfer while the microSD card is used as storage media On PC user can open close create delete copy and paste the files stored in the SD card The MSC device example works in High Speed and F Full Speed modes Users can select High Speed Full Speed mode by modifying the relevant macro in MDK as shown below Y Options for Target SIN322xG EVAL_USBD HS E Device Target Output Listing User C C Asm Linker Debug Utilities Preprocessor Symbols Define USE_STDPERIPH_DRIVER STM32F2xx USE_STM322xG_EVAl Undefine Language Code Generation Strict ANSI C warnings Optimization Level 3 03 v I Enum Container always int AllWamings v I Optimize for Time I Plain Char is Signed F Split Load and Store Multiple F Read Only Position Independent Iw One ELF Section per Function F Read Write Position Independent A Mme AAA 4Libraries CMSIS CM3 D eviceS upport S T4S TM32F 2xx 4 4 4 Libraries S TM32F aths Misc E Controls Compiler c cpu Cortex M3 D__MICROLIB g 03 apes interwork split_sections JA 1 inc control LA AA Libraries CMSIS CM
52. 5 of 155 P Embest Technology Co LTD http www armkits com BH Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Select Folder for Objects Name of Executable adc e Create Executable obj ade I Debug Information I Create Batch File IV Create HEX File IV Browse Information Create Library obj ade LIB Figure 3 49 Configure Target Option 5 Create HEX file or BIN file with IAR EWARM Open EWARM project configure Options and select output format Intel extended or binary Rebuild the Project generate hex binary file Options for node ADC3_DNA Sash Oooo Factory Settings General Options C C Compiler Assembler Output Custom Build Build Actions Linker Output format Debugger Simulator Motorola Angel ana Saver age IAR ROM monitor ROCs J Link J Trace TI Stellaris Macraigor PE micro RDI ITAGjet ST LINK Third Party Driver TI XD5100 Generate additional output Page 56 of 155 http www armkits com 6 Open the Flash Loader software configure UART Port Name COM1 Depending on the serial port that used Parity Even or Odd Baud Rate 115200 Echo Disable Data Bits 8 Default Timeout s 10 default Vv Vv Vv VV WV WV Flow None e Flash Loader Demonstrator i II le Select the communication port and set settings then click next to open connection Common fo
53. 68 86 16 4166 received sending udp client message D Gi GIG ii ii Gi ii Gi Gi GI Di II sd Gi Figure 5 20 UDP echo client demo 5 2 6 UDP_echo_ server demo This demo is used to test a basic UDP connection In this demo the STM32 acts as a UDP server that waits for client requests In order to test the UDP echo server demo please follow steps below 1 Plug in 5V power supply to the DevkKit1207 Connect a crossover cable between Devkit1207 RJ45 CON1 and PC Ethernet port 2 Configure IP address The default Static IP address of evaluation board modify the relevant macro in main h file as per your requirement as shown below Page 106 of 155 L Embest Technology Co LTD http www armkits com 0 define MAC_ADDRS 060 Static IP ADDRESS IP_ADDRO IP_ADDR1 IP_ADDR2 IP_ADDR3 Go fie Ip ADDRO define IP_ADDR1 define IP_ADDR2 ene IP ADDR3 Figure 5 21 Configure IP address of DevKit1207 3 Rebuild the demo and then download the program into Flash 4 Atpower on LCD will display the IP address of the evaluation board 5 Onthe remote PC Copy the echotool software to C root directory The echotool software is located in the folder of CD ROM code STM32F2x7_ETH_LwIP_V1 0 2 Utilities Third_Party PC_Software 6 On the remote PC open a command prompt window In Windows select Start gt All Programs gt Accessories gt Command Prompt 7 Atthe command prompt enter C gt echoto
54. 8 JP10 and JP11 are not fitted 5 Rebuild the demo and then download the program into Flash 6 At power on LCD will display the IP address of the evaluation board 7 On the remote PC open the TFTP client for example TFTPD32 and configure the TFTP server address host address in TFTPD32 Tftpd32 by Ph Jounin put the file to be gt received sent on PC side Press this button to get a file from the DevKit1207 s microSD card Press button to configure the tftpd32 tool you should enable the TFTP client Remote File testte Block 52 e Size Bel Ea About Settings Help ate Curent Directory C Program Files Tftpd32 v Browse dispalyed here p Server interface 192 168 020 v Show Dir Type DevKitt207 s Tip Server Tip Client DHCP server Syslog server Log viewer l IP address here gt File browser select ee Host 192 168 0 10 Port the file to be sent ype the directory trom Die l where to get or where to ae Type the directory from where to get or where to put the file to be received sent on Devkit1207 side Press this button to put a file into the DevKit1207 s microSD card Page 101 of 155 Lamm Embest Technology Co LTD http www armkits com Figure 5 13 TFTP tool tftpd32 8 Start transferring files to and from the microSD card located on the DevKit1207 board 5 2 3 TCP_echo_client demo This demo is used to test a basic TCP connection In this demo the
55. AL_USBD HS Device Target Output Listing User CACH Asm Linker Debug Utilities Preprocessor Symbols Define USE_STDPERIPH_DRIVER STM32F2xx USE_STM322xG_EVAl E UL P Undefine m Language Code Generation Strict ANSI C warnings Optimization Level 3 03 J Enum Container always int AllwWamings gt I Optimize for Time 7 Plain Char is Signed F Split Load and Store Multiple F Read Only Position Independent i V One ELF Section per Function F Read Write Position Independent Ingus A Mme AAA 4Libraries CMSIS CM3 D eviceS upport S T4 S TM32F 2xx 4 4 SLibraries S TM32F F Misc N Controls Compiler c cpu Cortex M3 D__MICROLIB g 03 apes interwork split_sections JA I ine control LAAA SLibraries CMSIS CM 34D eviceSupportS TASTM32F 28x string W Figure 6 18 Select USB FS HS mode for HID device demo If Preprocessor Symbols includes USE_USB_OTG_FS the DEMO will work in Full Speed mode If Preprocessor Symbols includes USE_USB_OTG_HS the DEMO will work in High Speed mode Note USE_USB_OTG_FS and USE_USB_OTG_HS should not be included in Preprocessor Symbols at the same time HID device information is located in usbd_desc c as shown below define USBD_VID 0x0483 052 define USBD_PID Ox5710 053 054 define USBD_LANGID_STRING 0x409 055 define USBD_MANUFACTURER_STRING STMicroelectronics 056 057 define USBD_PRODUCT_HS_STRING J
56. D http www armkits com Itconfigures the RTC_AF1 pin TimeStamp to be falling edge and enables the TimeStamp detection On applying a low level on the RTC_AF1 pin PC 13 the calendar is saved in the time stamp registers thanks to the timestamp event detection The example uses HyperTerminal to configure the RTC clock display the current time and timestamp registers contents Pressing USER2 push button the current time and date are saved in RTC TSTR and TSDR registers When pressing WAKEUP push button the TimeStamp Calendar is cleared When pressing USER1 push button the current RTC Calendar Time and date and RTC TimeStamp Calendar Time and date are displayed 4 12 SysTick example The SysTick folder contains one example gt SysTick_Example SysTick_Example 1 Purpose This example shows how to configure the SysTick to generate a time base equal to 1 ms The system clock is set to 120 MHz and the SysTick is clocked by the AHB clock HCLK 2 Description In this example The system tick timer is initialized The system tick timer interrupt is enabled in the NVIC The system tick timer counter starts in free running mode to generate periodical interrupts The system tick timer interrupt is triggered every 1 ms A Delay function is implemented based on the system tick timer end of count Page 77 of 155 P Embest Technology Co LTD d http www armkits com event The four LEDs LED1
57. Devkit1207 Evaluation Kit 120MHz STM32F207IGT6 ARM Cortex M3 32 bit Microcontroller CPU Internal 1MBytes of Flash and 128 4 KBytes of SRAM 1 USB2 0 OTG Full Speed port and 1 USB2 0 OTG High Speed port 3 5 240x320 TFT color LCD with 4 wire Resistive Touch Screen 10 100 Ethernet with IEEE 1588v2 CAN2 0B IrDA TF Audio JTAG Three axis linear accelerometer Supports for uC OS II and FreeRTOS Real time Operating Systems User Manual A Embest Technology Co LTD http www armkits com COPYRIGHT lt DevKit1207 is trademarks of Embest Technology Co LTD lt STM32F207 STM32 F217 are trademarks of STMicroelectronics lt Microsoft MS DOS Windows XP are trademarks of Microsoft Corporation Important Notice Embest has ownership and rights to the use of this document Information in the document is within the protection of copyright Unless specifically allowed any part of this document should not be modified issued or copied in any manner or form without prior written approval of Embest Technology Co LTD Page 1 of 155 Lag Embest Technology Co LTD qa http Awww armkits com Version of update records Rev Date Description V1 0 2011 10 24 Initial version V1 1 2011 12 30 Added Appendix Operation Notes Modified contents of Section 4 14 IWDG Section 4 15 WWDG Section 4 18 2 GSensor LIS33DE to avoid ambiguity V1 2 2012 01 11 Added Appendix II PC Development Platform Ad
58. Embest Technology Co LTD j http www armkits com 3 2 2 Building an existing EWARM Project In this section ADC3_DMA as an example has been used to show how to configure an existing IAR EWARM project 1 Open project Open the ADC3_DMA project from the directory as follow code STM32F2xx_SidPeriph_Demo Project STM32F2xx_StdPeriph_Examples ADC ADC3_DMA EWARM Debug v ft 8 e Ea BR EE EE EE Files om ag EH Commmniaht sC 2010 2012 till Tech Co Ltd Options ADC ADC3 DMA main c Ha A CMSIS sete Ke Ta CIEWARM Make Sage SERGE 2011 10 09 Figure 3 31 Configure options 2 In the opened window select General Options gt Target tab then select the device from the list as shown below Options for node ADC3_DMA Category General Options CiC Compiler Assembler pa Output Converter Target Output I Library Configuration Library Options M P Custom Build Build Actions Linker Debugger O Core Simulator S Angel Device ST STM32F20Txx aT GDB Server TAR ROM monitor J Link J Trace Endian mode TI Stellaris Macraigor PE micro RDI ITAGjet ST LINK Third Party Driver TIxDS100 Processor variant Figure 3 32 Select the MCU model 3 Select General Options gt Library Configuration tab then select Use CMSIS as Page 46 of 155 ate Embest Technology Co LTD http www armkits com shown below Opt
59. M3_ARR 1 100 50 The TIM3 CCR2 register value is equal to 249 so the TIM3 Channel 2 generates a PWM signal with a frequency equal to 30 KHz and a duty cycle equal to 37 5 TIM3 Channel duty cycle TIM3_CCR2 TIM3_ARR 1 100 37 5 The TIM3 CCR3 register value is equal to 166 so the TIM3 Channel 3 generates a PWM signal with a frequency equal to 30 KHz and a duty cycle equal to 25 TIM3 Channel3 duty cycle TIM3_CCR3 TIM3_ARR 1 100 25 The TIM3 CCR4 register value is equal to 83 so the TIM3 Channel 4 generates a PWM signal with a frequency equal to 30 KHz and a duty cycle equal to 12 5 TIM3 Channel4 duty cycle TIM3_CCR4 TIM3_ARR 1 100 12 5 The PWM waveform can be displayed using an oscilloscope 4 13 2 TimeBase 1 Purpose This example shows how to configure the TIM peripheral in Output Compare Timing mode with the corresponding Interrupt requests for each channel in order to generate 4 different time bases 2 Description The TIM3CLK frequency is set to SystemCoreClock 2 Hz to get TIM3 counter clock at 6 MHz The Prescaler is computed as following Prescaler TIM3CLK TIM3 counter clock 1 SystemCoreClock is set to 120MHz for STM32F2xx Devices RevA RevZ and RevB The TIM3 CC1 register value is equal to 40961 CC1 update rate TIM3 counter clock CCR1_Val 146 48 Hz so the TIM3 Channel 1 generates an interrupt each 6 8ms The TIM3 CC2 register is equal to 27309 CC2 updat
60. Mode Vendor ID Vendor ID 0483 olerant Oo SE Upload ST Procuct ID Procuct ID DF11 ds Oo Se marie EI Can Detach Version Version 0200 Leave DFU mode Actions Select Target s TargetId Name Available Sectors Double Click for more 00 Internal Flash 12 sectors 01 OTP Area 2 sectors Upload Action Upgrade or Verify Action File File Vendor ID Targets in file Choose Procuct ID Transferred data size Version OKB O Bytes of 0 KB O Bytes l Verify after download l Optimize Upgrade duration Remove some FFs Operation duration 00 00 00 Choose Figure 6 11 STM Device in DFU mode 7 Select the target area to be programmed as shown in below figure with number 1 8 Select the DFU file to be programmed Click Choose button select the DFU to be upgraded as shown in below figure with number 2 There is a DFU file for USB DFU testing purpose at the folder location code STM32_F105 07_F2xx_USB Host Device_Lib_V2 0 0 Project USB_Device_E Page 119 of 155 a Embest Technology Co LTD d http www armkits com xamples DFU binary_template MDK ARM DfuSe Demo v3 0 2 Available DFU and compatible HID Devices STM Device in DFU Mode D Application Mode DFU Mode Vendor ID Vendor ID 0483 Supports Upload C Manifestation tolerant Supports Download C Accelerated Upload ST Procuct ID Procuct ID DE Can Detach A Version Version 0200 Er
61. P server gt ATCP echo client application gt A TCP echo server application Page 94 of 155 ae Embest Technology Co LTD B http www armkits com gt A UDP echo client application gt A UDP echo server application 2 Applications running with the FreeRTOS operating system gt A Web server based on the netconn API gt A Web server based on the socket API gt A TCP UDP echo server application based on the netconn API Remote PC settings In order to run the demos provided within the CD ROM set up the remote PC network environment Make sure that the PC s IP address and the evaluation board s IP address are on the same network For example to setup a network in Microsoft Windows XP operating system 1 On remote PC select Start gt Control Panel gt Network connections gt Local Area Connection gt Properties as shown below 4 Local Area Connection Status General Support Connection Status Connected Duration 00 41 27 Speed 100 0 Mbps Activity Received Packets Gesi Sat Figure 5 2 Local Area Connection 2 Click Properties this will open the window of Local Area Connection Properties as shown below Page 95 of 155 Leg Embest Technology Co LTDA http www armkits com A Local Area Connection Properties General Advanced Connect using E Realtek RTLS139 310x Family Fast E This connection uses the following items El cient for Microsoft
62. P_ADDR3 f fie Ip ADDRO 19 Beete IP_ADDR1 168 define IP_ ADDR2 0 064 R ine IP ADDR3 16 Figure 5 18 Configure IP address of DevKit1207 3 Configure IP address The default Static IP address of remote PC modify the relevant macro in main h depending on your needs as shown below SERIAL DEBUG DEST_IP_ADDRO DEST_IP_ADDR1 168 DEST_IP_ADDR2 DEST_IP_ADDR3 050 define DEST PORT 7 051 Figure 5 19 Configure IP address of remote PC 4 Rebuild the demo and then download the program into Flash 5 At power on LCD will display the IP address of the evaluation board 6 Onthe remote PC Copy the echotool software to C root directory The echotool software is located in the folder of CD ROM code STM32F2x7_ETH_LwIP_V1 0 2 Utilities Third_Party PC_Software 7 On the remote PC open a command prompt window In Windows select Start gt All Programs gt Accessories gt Command Prompt 8 At the command prompt enter Page 105 of 155 ai Embest Technology Co LTD http www armkits com C gt echotool p udp s where p udp is the protocol UDP protocol s is the actual mode of connection Server mode 9 When the USER1 button on the DevkKit1207 board is pressed the client sends a string and the server echoes back the same string to the client The follow figure shows an example of this command string and the module s response co C WINDOWS system32 cmd ex
63. Page 44 of 155 P Embest Technology Co LTD http www armkits com 3 2 IAR EWARM 3 2 1 ILAR EWARM Introduction IAR Embedded Workbench is a set of highly sophisticated and easy to use development tools for embedded applications It integrates the IAR C C Compiler assembler linker librarian text editor project manager and C SPY Debugger in an integrated development environment IDE With its built in chip specific code optimizer IAR Embedded Workbench generates very efficient and reliable code for ARM devices In addition to this solid technology IAR Systems also provides professional worldwide technical support Feature gt Modular and extensible IDE Extensive device support Highly optimizing C C compiler State of the art C SPY debugger Power debugging C SPY debugger target system support RTOS support IAR assembler IAR ILINK Linker IAR library and library tools Vv Vv VV VV V Y Y WV Comprehensive documentation gt Free evaluation software The STM32F2xx series MCUs require IAR EWARM 6 20 and later versions All IAR projects under folder EWARM in the CD ROM are built with IAR EWARM 6 30 User can download the evaluation edition for free from www iar com The sections Building an existing EWARM Project and Create a New IAR Project give a short description of how to use the IAR EWARM to develop application software For more detail please refer to the relevant documentation Page 45 of 155 ae
64. S II and uC GUI in any commercial application Page 9 of 155 Devkit1207 can be used in the following applications Industrial Control Medical Equipment Home Automation Human Interface Consumer Electronics Test and Measurement Devkit1207 Function Block Diagram www armkits lt Figure 1 1 DevKit1207 Function Block Diagram Page 10 of 155 P Embest Technology Co LTD http www armkits com 1 2 Features Devkit1207 evaluation board is based on STM32F207IGT6 microcontroller and it integrates all the functions and features of this IC s The features of this board are as follows Processor STMicroelectronics STM32F207IGT6 Flash Microcontroller H ARM 32 bit Cortex M3 CPU with ART accelerator frequency up to 120MHz WR Onchip 1Mbytes of Flash memory and 128 4Kbytes of SRAM m Flexible static memory controller that supports Compact Flash SRAM PSRAM Nor and Nand memories m LCD parallel interface 8080 6800 modes m USB 2 0 High Speed Full Speed Device Host OTG m 10 100 Ethernet MAC supports IEEE 1588v2 hardware MII RMII m 2 CAN 2 0B interfaces up to 4 USARTs and 2 UARTs 3 SPI 30Mbit s 2 with muxed 12S H 8 to 14 bit parallel camera interface up to 48Mbytes s WR 1 4 8 bit SD MMC SDIO interface supports up to 32Gbytes storage m Upto 140 I O ports up to 60MHz m Upto 17 timers two 32 bit timers up to 120OMHz H 3x 12 bit A D converters 2 x 12 bit D A converters H Analog true random number generator m
65. STM32 acts as a TCP client that connects to the TCP server The client sends a string and the server echoes back the same string to the client In order to test the TCP echo client demo please follow the below steps 1 Plug in 5V power supply to the DevKit1207 Connect a crossover cable between DevKit1207 RJ45 CON1 and PC Ethernet port 2 Configure IP address The default Static IP address of evaluation board modify the relevant macro in main h file as per your requirement as shown below 0 define MAC_ADDRS 060 Static IP ADDRESS IP_ADDRO IP_ADDR1 IP_ADDR2 IP_ADDR3 fe IP ADDRO 19 define IP_ADDR1 166 define IP_ADDR2 0 064 Btte ine IP ADDR3 10 g Figure 5 14 Configure IP address of DevKit1207 3 Rebuild the demo and then download the program into Flash 4 At power on LCD will display the IP address of the evaluation board 5 On the remote PC Copy the echotool software to C root directory The echotool software is located in the folder of CD ROM code STM32F2x7_ETH_LwIP_V1 0 2 Utilities Third_Party PC_Software 6 On the remote PC open a command prompt window In Windows select Start gt All Programs gt Accessories gt Command Prompt 7 Atthe command prompt enter C gt echotool p tcp s where p tcp is the TCP protocol TCP protocol Page 102 of 155 aie Embest Technology Co LTD http www armkits com s is the actual mode of connection Se
66. StdPeriph_Driver src Note Only related files need to be added If you are unsure what files should be added you can add all files to group of Lib However it will increase compile Page 40 of 155 A Embest Technology Co LTD http www armkits com time and code size The files need to be added to the group STM32_EVAL are located in code STM32F2xx_SidPeriph_Demo Utilities STM32_EVAL STM322xG_EVAL Note Only stm322xg_eval c and stm322xg_eval_Icd c need to be added to group of STM32_EVAL The files need to be added to the group CMSIS are located in code STM32F2xx_StdPeriph_Demo Libraries CMSIS CM3 CoreSupport Note Only core_cm3 c need to be added to group of CMSIS The files need to be added to the group MDK ARM are located in code STM32F2xx_SidPeriph_Demo Libraries CMSIS CM3 DeviceSupport S T STM3 2F2xx startup arm Note Only startup_stm32f2xx s need to be added to group of MDK ARM As the figure shown below required source flies have been added to the groups Project Sy User B main c B stm32f2xx_it c B system_stm32f2xx c CH Lib E misc c B stm32f2xx_ade c B stm32f2xx_dac c B stm32f2xx_flash c B stm32f2xx_dma c E stm3Z2f2xx_exti c B stm32f2xx_gpio c B stm32f2xx_fsme c 2 stm32f2xx_syscfz c E stm32f2xx_pwr c E stm32f2xx_rec c Ea stm32f2xx_sdio c Ea stm32f2xx_usart c Ea stm32f2xx_iZe c CMSIS core_em3 c MIK Eal startu
67. W2 SW5 Key Signal Description SW2 RESET System reset key SW3 WAKE_UP System wake up key SW4 USER1 User defined key 1 SW5 USER2 User defined key 2 2 2 14 CAN related Jumper Table 2 14 CAN related Jumper JP9 Jumper Description To enable the terminal resistor for the selected CAN fit a JP9 jumper on JP9 Default setting Fitted Note JP9 should be fitted in order to enable CAN working properly Page 25 of 155 Lag Embest Technology Co LTD 2 2 15 BootLoader related Jumpers Table 2 15 BootLoader related Jumpers JP1 amp JP2 Jumper Description JP1 Bootloader_BOOTO is managed by pin 6 of COM1 RS 232 DSR signal when JP1 is closed This configuration is used for boot loader application only Default setting Not fitted JP2 Bootloader_RESET is managed by pin 8 of COM1 RS 232 CTS signal when JP2 is fitted This configuration is used for boot loader application only Default setting Not fitted Note JP1 and JP2 should be kept not fitted if you don t use BootLoader function 2 2 16 MicroSD Card RS232 and IrDA related Jumpers Table 2 16 MicroSD Card RS232 and IrDA related Jumpers JP5 amp JP6 JP7 amp JP9 JP10 amp JP11 Jumper Description JP5 When JP5 and JP6 fitted PC10 and PC11are Groupi JP6 connected to DATA2 and DATAS3 pins of MicroSD Card JP7 When JP7 and JP8 fitted PC10
68. _SidPeriph_Demo Project STM32F2xx_StdPeriph_Examples m code E KO STMS2F2xx_StdPeriph_Demo Ki _htmresc E Ki Libraries Si d e STNS2F2xx StdPeriph Examples ze ADC D ga CAN gy CRC a e DAC ei DCMI ze DMA G EXI e FLASH SPIO E KO I2C E Cal 128 a SCH DG D Ki LCH Touch ze Lib_DEBUG a BIC D PYR e RCC D e RNG e RIC IS e SDIO Si SPI EZ Ki SysTick E KO TIM E KO USART E KS WHDG D Ki STMS2F2xx_StdPeriph_Template ze Utilities Figure 4 1 Peripheral s example structure Source files are provided for each example along with MDK ARM projects User can run the selected example on DevkKit1207 evaluation board directly User can also tailor the provided project template to run the selected example using his preferred toolchain Some examples may require additional hardware such as an oscilloscope For further information on the required hardware please refer to the Readme file provided within each example folder Page 61 of 155 Lag Embest Technology Co LTD l http www armkits com 4 1 Description of the Standard Peripherals Library The file structure of the folder code STM32F2xx_SidPeriph_Demo is shown in figure below E Cal code EM OW SINS2F2xx_StdPeriph_Demo Ki htmrese KI Libraries EN Cal CMSIS Di Cal STM32F2xx_StdPeriph_Driver D Ca Project E Ca Utilities B A STM32_EVAL Si Common ze FatFs_vRO 08a Si STN322xG_EVAL Figure 4 2 Standard Peripherals Libra
69. adMultiBlocks function Compare the written Blocks and the read one check if the TransferStatus2 variable is equal to PASSED The program behaves as follows Check the Micro SD TF card is mounted or not Open message vi test if the file exit Create a new Hello txt Read Hello txt create in previous step Open the root directory All data transfers are made by DMA At each operation the SD Card presence and status is checked using the SD_GetStatus function and a global variable Status storing the results of the last operation LCD will display the status when each operation finish 4 21 LCD_Touch example The LCD_Touch folder contains one example gt STMPE811QTR Page 90 of 155 a Embest Technology Co LTD http www armkits com STMPE811QTR example 1 2 Purpose This example shows how to do LCD touch screen calibration Description In this example four points on the corner of touch screen need to be touch to complete calibration The program behaves as follows Click calibration points accurately using a touch pen LCD will give massage whether calibration is OK If calibration is OK then MCU will enter into Calibration _Test_Dispose function In this function LCD will display the value of points touch by the pen Both ADC values and coordinate values are displayed Note User should click calibration points in order 4 22 CRC example The CRC folder contains one example
70. alue You could check this by changing the potentiometer position and check that the ADC value is updated by an automatic refresh of this page with the new converted value ADC Converted Value 0461 mv Figure 5 11 ADC status bar 5 2 2 TFTP server demo The TFTP server is a file transfer application that needs a remote TFTP client The files are transferred to and from the microSD card located on the Devkit1207 evaluation board In order to test the tftpserver demo please follow the steps below 1 Install TFTP Client software on the remote PC The software is located in the folder Page 100 of 155 mm Embest Technology Co LTD http www armkits com code STM32F2x7_ETH_LwIP_V1 0 2 Utilities Third_Party PC_Software 2 Plug in 5V power supply to the DevKit1207 Connect a crossover cable between DevkKit1207 RJ45 CON1 and PC Ethernet port 3 Configure IP address The default Static IP address of evaluation board modify the relevant macro in main h file as per your requirement as shown below B aie define MAC_ADDRS 0 060 Static IP ADDRESS IP_ADDRO IP_ADDR1 IP_ADDR2 IP_ADDR3 D I Go fie Ip ADDRO 06 define IP_ADDR1 168 IP_ADDR2 IP ADDR3 Figure 5 12 Configure IP address of DevkKit1207 4 Devkit1207 settings Plug the microSD card into the dedicated connector CON4 Make sure that jumpers JP5 and JP6 are fitted JP7 JP
71. ample described above in same project and uses the multi core support feature The Mass storage device is connected to the High speed USB connector CONS while the HID is connected to the Full Speed connector CON2 In order to test the USB DualCore device example please follow steps below 1 Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male between DevkKit1207 CON2 and PC USB port Connect another one USB cable Type A Male to Type Mini B Male between CON3 and PC USB port Page 125 of 155 n Embest Technology Co LTD http www armkits com 2 Plugin SD card into CON4 Make sure that jumpers JP5 and JP6 are fitted JP7 JP8 JP10 and JP11 are not fitted 3 Rebuild the demo and then download the program into Flash 4 At power on the LCD displays the following messages USB Dual Devices gt USB de gt HID Devi ER ay USB Device Libra Figure 6 21 DualCore Cable connected display message 5 PC will identify the removable disk automatically Users can use it the same as an U disk as shown below Devices with Removable Storage Removable Disk J Figure 6 22 MSC device displayed on PC Note In this example Kingston s 1GB 2GB microSD card SanDisk s 2GB microSD card pass test It does not guarantee that this example supports all kinds of SD card 6 PC will identify DevKit1207 board as HID device automatically Press USER1 button on DevkK
72. armkits com Right click on project name in workspace window then select Options gt C C Compiler gt Preprocessor and enter the include files paths and define symbols Factory Settings gt one per line PROJ_DIR PROJ_DIR A AUtili ties STM32_EVAL Libraries CMSIS Li br aries STN32 A Utilities STM32 Utili ties STM32 CM3 Devi ceSupport ST S A F2xx_StdPeriph_Driver ir EVALASTN322xG_EVAL EVAL Common J USE_FULL_ASSERT C Preprocessor output to USE_STDPERIPH_DRIVER Cancel Figure 3 48 Set include file paths The include files path for this example as below PROJ_DIR Libraries CMSIS CM3 DeviceSupport ST STM32F2xx PROJ_DIR Libraries STM32F2xx_StdPeriph_Driver inc PROJ_DIR Utilities STM32_EVAL PROJ_DIR Utilities STM32_EVAL STM322xG_EVAL PROJ_DIR Utilities STM32_EVAL Common PROJ_DIR 11 Click OK to finish include paths setup Page 54 of 155 12 For the setting of other tabs please refer to Building an existing EWARM Project a Embest Technology Co LTD http www armkits com 3 3 Flash Loader The STM32F20x and STM32F21xembedded Flash memory can be programmed using incircuit programming or in application programming In application programming IAP can use any communication interface supported by the microcontroller I Os USB CAN UART 12C SPl et
73. c to download programming data into memory With IAP the Flash memory can be reprogrammed while the application is running Nevertheless part of the application has to have been previously programmed in the Flash memory using ICP The in circuit programming ICP method is used to update the entire contents of the Flash memory using the JTAG SWD protocol or the boot loader to load the user application into the microcontroller ICP offers quick and efficient design iterations and eliminates unnecessary package handling or socketing of devices The boot loader is located in system memory It is used to reprogram the Flash memory by using USART1 PA9 PA10 USART3 PC10 PC11 CAN2 PB5 PB13 USB OTG in Device mode PA11 PA12 through DFU device firmware upgrade Now we give a description to show how to downloader program to Flash memory using boot loader through USARTS3 In order to test boot loader please follow these steps 1 Install Flash Loader Demonstration software The software is located in the folder of CD ROM gt Flash_Loader 2 Connect a null modem female female RS232 cable between the DB9 connector COM1 USARTS and PC serial port Make sure that jumpers JP1 JP2 JP7 and JP8 are fitted JP5 JP6 JP10 and JP11are not fitted 3 Plug in 5V power supply 4 Create HEX file with MDK ARM Open MDK ARM project configure Target Option and select Create HEX file Rebuild the Project generate HEX file Page 5
74. ciate IOC EEPROM driver to communicate with an 12C EEPROM device here the example is interfacing with AT24C02 EEPROM Description 12C peripheral is configured in Master transmitter during write operation and in Master receiver during read operation from DC EEPROM The peripheral used is 12C1 but can be configured by modifying the defines values in stm322xg_eval h file The speed is set to 100kHz and can be configured by modifying the relative define in stm322xg_eval_i2c_ee h file For AT24C02 devices all the memory is accessible through the two bytes addressing mode and need to define block addresses In this case only the physical address has to be defined according to the address pins E0 E1 and E2 connection This address is defined in stm322xg_eval_i2c_ee h default is 0xA0 EO E1 and E2 tied to ground The EEPROM addresses where the program start the write and the read operations is defined in the main c file The program behaves as follows First the content of Tx1_Buffer is written to the EEPROM_WriteAddress1 and the written data are read The written and the read buffers data are then compared Following the read operation the program waits that the EEPROM reverts to its Standby state A second write operation is then performed and this time Tx2_Buffer is written Page 86 of 155 a Embest Technology Co LTD d http www armkits com to EEPROM_WriteAddress2 which represents the address just afte
75. d example for example ADC3_DMA to the folder ADC_example created in previous step main c stm32f2xx_it c stm32f2xx_it h system_stm32f2xx c stm32f2xx_cont h 2 Open MDK KEIL uVision4 Click Project gt New uVision Project File Edit View Project Flash Debug Peripherals Tools SVCS Window H LS ld g ew HVision Project 8 is ey New Multi Project Workspace pres Close Project 4 Target 1 E Source Gr Export Figure 3 15 Create New Project Save the project in the folder of ADC_example as ADC_example Page 36 of 155 te Embest Technology Co LTD http www armkits com Create Hew Project Save in Gaceme ck Fe My Recent Documents My Network EE z Save as type Project Files uvproj S Cancel Figure 3 16 Save project 3 Then a dialog box of Select Device for Target of Target will be opened Please select a device for the project Here we select STM32F2071IG Select Device for Target Target 1 CPU Vendor STMicroelectronics Device STM32F2071G Toolset ARM Data base Description STM32F2052F Core CO STM32F2052G ARM 32 bit Cortex M3 CPU CH STM32F2071C 120 MHz maximum frequency 150 DMIPS 1 25 DMIPS MHz OH STM32F2071E Memory protection unit Memories Up to 1 Mbyte of Flash memory Up to 128 4 Kbytes of SRAM Flexible static memory controller supports Compact Flash SRAM PSRAM NOR NAND memories
76. ded step 7 in Section 3 4 Flash Loader V1 3 2012 04 06 Updated Figure 2 1 Devkit1207 Hardware Interface Diagram Figure 2 2 Hardware Dimensions Diagram Figure 3 15 Create New Project Figure 3 19 Add file groups to project Figure 3 21 Finish file groups adding Figure 3 22 Add files to groups and Figure 3 24 Source flies have been added to groups Added Section 3 2 IAR EWARM Added bin file support in Section 3 3 Flash Loader Page 2 of 155 ae Embest Technology Co LTD http www armkits com Contact If you want to order products from Embest please contact Marketing Department Tel 86 755 25635656 25636285 Fax 86 755 25616057 E mail market embedinfo com If you want to get technical assistance from Embest please contact Technical Assistance Department Tel 86 755 25503401 E mail support embedinfo com URL http www armkits com Address Room 509 Luohu Science amp Technology Building 85 Taining Road Shenzhen Guangdong China 518020 Page 3 of 155 Lag Embest Technology Co LTD http www armkits com Contents Chapter 1 e E 9 1 1 Product lait te eene 9 1 2 el 11 1 3 Getting Started Quickly seeaeee eee eet sere eee eee eee mst re stant Sst un tenet Serrete ets 14 Chapter 2 Hardware System crscssccssacssacsassccsascsaccassncasacanncsancsnanssnccaancsnsntnactaansansnaaacnaanta 16 2 1 MS PM ees cess ees cs ca ona tees fuse E eege 16 2 1 1 CPU pe ME eech 16 22 CPU Te a ne ee ee 16
77. demonstration This webserver is a part of a demonstration package developed on the top level of the lwIP TCP IP tc Figure 5 9 Home page of the HTTP server demo 6 Click LED control to get into LED control interface select or cancel LED1 LED2 LED3 LED4 and press Send the LEDs on the board will work accordingly Page 99 of 155 am Embest Technology Co LTD t http www armkits com STM32F2xTLED e C 192 168 0 163 STN32F2x7LED html STM32F2x7 Leds control Led contro ADC status bar This page allows you to control the four LEDs LED1 LED2 LED3 and LED4 located in the STM322xG EVAL board To put on off a LED you have to check uncheck its corresponding checkbox Then you have to click on Send button to submit the new LEDs configuration Finally check in the STM322xG EVAL board that you get the desired LEDs are putted on off STH32 Webserver LEDs Control LILED1 LED2 LED3 LED4 Figure 5 10 Led control page of the HTTP server demo 7 Click ADCstatus bar to get the voltage value of potentiometer RV1 on the board stazr2xTane e 192 168 0 163 STN32F2x7ADC shtml STM32F2x7 ADC Conversion This page allows you to get continuously the ADC 3 Channel 7 analog input converted value This ADC Channel is connected to the STM322xG EVAL board s potentiometer The ADC value is updated automatically each 1s with the last converted ADC Channel 7 v
78. dnet 49 3 3 Flash El ET 55 Chapter 4 Peripherals Examples cccceccsseeceseeeeeseeeesseeeeseeenseeeeseeeenseeeensneeesenees 61 4 1 Description of the Standard Peripherals Library c ccsceeeeeeeeeeeeeeeeees 62 4 1 1 Biel EE 62 44 2 dee E e 63 41 3 Utilities f lde cscs eee 63 4 2 GPIO ex mple sssrinin iiia iii i ii 64 4 3 NVC example n isiiseuieriiisersadseiiieiioioadites iniiaiee iea iaie ieaie 65 4 4 EXT examples horrere oi eet eee ete oe 67 4 5 DMA Ee EEN 67 4 6 ADC 2 e TE 69 4 7 Re 70 4 8 Where Re 71 4 8 1 E TEE 71 Goce WeAnl ie e 72 4 9 PWR example A 73 4 10 Lee 74 4 11 RIC examples ccc tn cc 75 4 12 SysTick EE 77 4 13 UR ll e 78 E Ee eg ss ssseeeeseeseeiesieeiesitetitineinsirsttttrnrinsinerinrensrnnn 79 413 2 TIM BaASC r nian ive iain 80 4 14 IWDG exemple st A obriera rtbh iast 81 Page 5 of 155 Lag Embest Technology Co LTD http www armkits com 4 15 WW DGG Xap eee ee 82 4 16 Kleeder 83 4 17 EE 85 4 18 NNN ege 85 CES a WE ord wo EE ee er ne ip EE EE E E 86 418 2 Gsensor USs3D Ewen 87 4 19 2S example eeanentr ana eer Baer ere va Ener le ane nner ner onr arr Sve ere fier ner eiiie 88 4 20 EEN 89 4 21 LED EE 90 4 22 EE 91 4 23 FING Touch example cae eet eee 92 4 24 Lib DEBUG ce Sa ae cee eZee Pk een Seen ne ete bate nasaian iaa kansansa 92 Chapter 5 Ethernet Demonstration ccccseceeseeeeeeeeneeseeeseeeseeeeeeeseeeseeeseeeseennenenees 94 5 1 Description of Ethernet Dem
79. driver consists of a set of routines and data structures covering all peripheral functionalities The development of each driver is driven by a common API application programming interface which standardizes the driver structure the functions and the parameter names Each peripheral has a source code file stm32f2xx_ppp c and a header file stm32f2xx_ppp h The stm32f2xx_ppp c file contains all the firmware functions required to use the PPP peripheral 4 1 2 Project folder This folder contains the source files of the DevKit1207 firmware applications 1 2 Peripheral_Examples subfolder This subfolder contains a set of examples for some peripherals with preconfigured projects for EWARM and MDK ARM toolchains STM32F2xx_StdPeriph_Template subfolder This subfolder contains a project template that user can get a quick start to run an example 4 1 3 Utilities folder 1 2 This folder contains the abstraction layer for the DevKit1207 hardware and software It provides the following drivers Common This files provides text fonts for DevKit1207 s LCD driver FatFs_vR0 08a Page 63 of 155 Lag Embest Technology Co LTD http www armkits com This file provides FatFs source code FatFs module is an open source software to implement FAT file system into small embedded systems This is a free software and is opened for education purpose research and commercial developments under license policy of following trem
80. e echotool exe p udp s iC gt echotool exe p udp s Waiting for UDP conncetion on port 7 Press any key to exit 7 97 26 from 192 168 6 16 4696 received sending udp client messxge 7 97 21 from 192 168 6 16 4168 received sending udp client 7 97 21 from 192 168 6 16 4166 received sending udp client 7 97 24 from 192 168 6 16 4166 received sending udp client 7 67 24 from 192 168 6 16 4166 received sending udp client 7 97 24 from 192 168 6 16 41686 received sending udp client nessage 7 97 24 from 192 168 6 16 4166 received sending udp client message 7 97 25 from 192 168 6 16 4166 received sending udp client message 7 67 25 from 192 168 6 16 4166 received sending udp client message 7 97 25 from 192 168 6 16 41686 received sending udp client message 7 97 25 from 192 168 6 16 4166 received sending udp client message 7 97 26 from 192 168 6 16 41686 received sending udp client message 7 67 26 from 192 168 6 16 4166 received sending udp client message 7 67 26 from 192 168 6 16 4166 received sending udp client message 7 97 26 from 192 168 6 16 41686 received sending udp client message 7 97 26 from 192 168 6 16 4166 received sending udp client hessage 7 97 30 from 192 168 6 16 41686 received sending udp client message 7 67 36 from 192 168 6 16 4166 received sending udp client message 7 67 32 from 192 168 6 16 4166 received sending udp client message 2 97 32 from 192 168 6 16 4166 received sending udp client mesgage 7 97 35 from 192 1
81. e rate TIM3 counter clock CCR2_Val 219 7 Hz so the Page 80 of 155 Lag Embest Technology Co LTD http www armkits com TIM3 Channel 2 generates an interrupt each 4 55ms The TIM3 CC3 register is equal to 13654 CC3 update rate TIM3 counter clock CCR3_Val 439 40Hz so the TIM3 Channel 3 generates an interrupt each 2 27ms The TIM3 CC4 register is equal to 6826 CC4 update rate TIM3 counter clock CCR4_Val 878 9 Hz so the TIM3 Channel 4 generates an interrupt each 1 13ms When the counter value reaches the Output compare registers values the Output Compare interrupts are generated and in the handler routine 4 pins PC 07 PG 08 PG 06 and PD 12 are toggled with the following frequencies 4 14 PC 07 73 24Hz CC1 PG 08 109 8Hz CC2 PG 06 219 7Hz CC3 PD 12 439 4Hz CC4 IWDG example The IWDG folder contains one example gt IWDG_Example IWDG_Example 1 Purpose This example shows how to update at regular period the IWDG reload counter and how to simulate a software fault generating an MCU IWDG reset on expiry of a programmed time period 2 Description In this example The IWDG timeout is set to 250 ms the timeout may vary due to LSI frequency dispersion The TIM5 timer is configured to measure the LSI frequency as the LSI is Page 81 of 155 a Embest Technology Co LTD http www armkits com internally connected to TIM5 CH4 in order to ad
82. e_Examples USB _Host_Examples 3 Utilities contains the STM32 drivers relatived to the used boards LCD SD card buttons LED etc This folder also contains the FatFs generic file system used for the Host demos Page 112 of 155 mm Embest Technology Co LTD __http www armkits com 4 The following figure gives an overview of the USB host and device libraries Device DRD USB device M to HID mass storage ae orage keyboard mouse CDC virtual COM desen Device MSG FAT FS file system Dual core MSC HID i Drivers s STM32F105 107xx and STM32F2xx USB OTG lowevel driver standard peripheral libraries MS19706V1 Figure 6 2 USB host and device library organization overview The USB host and device libraries are built around the common STM32 USB OTG low level driver and the USB device and host libraries 6 2 USB_Device_Examples This folder contains six examples when USB work in device mode gt AUDIO gt DFU gt DualCore gt HID gt MSC gt VCP As shown below the USB device library is composed of two main parts the library core and the class drivers Page 113 of 155 Leg Embest Technology Co LTD i http www armkits com Application module E Application User callbacks USB library module 8 USB class module USB device core Class layer USB requests HID audio MSC DFU CDC USB I O requests vendor specific DCD DCD ISRs Core interface layer MS19708V1
83. ependent res A Mme AAA 4Libraries CMSIS CM3 D eviceS upport S T4S TM32F 2xx 4 4 SLibraries S TM32F BR Misc e Controls c cpu Cortex M3 D__MICROLIB g 03 apcs interwork split_sections 1 AJ Mme LAAA SLibraries CMSIS CM 3 DeviceSupportS TASTM32F 28x Compiler control string lt Figure 6 23 Select USB FS HS mode for VCP device demo If Preprocessor Symbols includes USE_USB_OTG_FS the DEMO will work in Full Speed mode If Preprocessor Symbols includes USE_USB_OTG_HS the DEMO will work in High Speed mode Note USE_USB_OTG_FS and USE_USB_OTG_HS should not be included in Page 127 of 155 i Embest Technology Co LTD _hittp www armkits com Preprocessor Symbols at the same time VCP device information is located in usbd_desc c as shown below gt 050 define USBD_VID 0x0483 051 052 define USBD_PID ox5740 053 054 defgroup USB String Descriptors 055 Di 056 057 define USBD_LANGID_STRING 0x409 058 define USBD_MANUFACTURER_STRING STMicroelectronics 059 060 define USBD PRODUCT HS STRING STM32 Virtual ComPort in HS mode 061 define USBD_SERIALNUMBER_HS STRING Qoo000000S50B 062 063 define USBD PRODUCT FS STRING STM32 Virtual ComPort in FS Mode 064 define USBD_SERIALNUMBER FS STRING ooooooooosoc 065 066 define USBD CONFIGURATION HS STRING VCP Config 067 define USBD_INTERFACE_HS_STRING ICP Interface 068 069 define USBD
84. er c cpu Cortex M3 g 00 apes interwork 1 D Program Files keilM4AM CMSIS Include I control D Program Files keilSAMMINCSSTSTM32F2xx DUSE_STM322xG_EVAL string Cancel Defaults Help Figure 3 28 Include Paths option In Folder Setup dialog box click icon shown below and add Include Paths Page 43 of 155 E Embest Technology Co LI ID www armkits com D Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Folder Setup ind Setup Compiler Include Paths Misc Controls Compiler control string OK Cancel Defaults Help Figure 3 29 Add Include Paths Include Paths have been setup as figure shown below V Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Folder Setup ing Setup Compiler Include Paths SE Libraries S TM32F2x _StdPeriph_Driver ince A UtilitiesSSTM32_EVAL A Ultilities S TM32_EVAL Common A Utilities S TM32_EVAL STM322xG_EVAL Libraries CMSIS CM3 CoreS upport Libraries CMSIS CM 34D eviceS upportS T S TM32F 2x string OK Cancel Defaults Figure 3 30 Add Include Paths ok 12 Click OK to complete C C setup For setting the Device Output Debug and Utilities tabs please refer to Building an existing MDK ARM Project
85. escription For debug purposes the RCC_GetClocksFreq function is used to retrieve the current status and frequencies of different on chip clocks This example also handles the High Speed External clock HSE failure detection At the time of the HSE clock failure broken or disconnected external Quartz HSE and PLL are disabled but no change on PLL config and HSI is selected as a source for system clock source and an interrupt NMI is generated Once the HSE clock recovers the HSERDY interrupt is generated and the system clock is reconfigured in the RCC ISR routine to its previous state before HSE clock failure HSE clock can be monitored at the MCO1 pin PA8 Four LEDs are toggled with a timing defined by the Delay function 4 11 RTC example The RTC folder contains three examples gt BKP_Domain gt HW_Calendar gt TimeStamp BKP_Domain example demonstrates and explains how to use the peripherals available on Backup Domain HW_Calendar example demonstrates how to setup the RTC peripheral in terms of prescaler and interrupts to be used to keep time and to generate alarm interrupt TimeStamp example provides a short description of how to use the RTC peripheral and the Time Stamp feature Now let s see how to use RTC peripheral using TimeStamp example TimeStamp Page 75 of 155 P Embest Technology Co LTD d http www armkits com 1 Purpose This example shows how to use the RTC peripheral and
86. et ARM Linker Debug Utilities 1 STM32F205ZE OO STM32F2052F OO STM32F2052G OO STM32F2071C OO STM32F2071E OH STM32F207VF 1 STM32F207VG OO STM32F2072C OO STM32F207ZE OO STM32F207ZF CH STM32F2N77A Cancel Defaults Figure 3 3 Select the MCU model Core ARM 32 bit Cortex M3 CPU 120 MHz maximum frequency 150 DMIPS 1 25 DMIPS MHz Memory protection unit Memories Up to 1 Mbyte of Flash memory Up to 128 4 Kbytes of SRAM Flexible static memory controller supports Compact Flash SRAM PSRAM NOR NAND memories LCD parallel interface 8080 6800 modes Clock reset and supply management 1 8 to 3 6 Y application supply and I Os POR PDR PVD and BOR 4 to 25 MHz crystal oscillator Internal 16 MHz factory trimmed RC 32 kHz oscillator for RTC with calibration s Help Select the Output tab if you want to MDK output HEX file and select Create HEX File Page 30 of 155 ate Embest Technology Co LTD http Awww armkits com Y Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Select Folder for Objects Name of xecutable aD C3_DMa e Create Executable WADC3_DMA I Debug Information I Create Batch File Iw Create HEX File Iw Browse Information C Create Library WADC3_DMA LIB Figure 3 4 Select output file 4 Select the Debug tab to choose Debug tool gt Ifyou wa
87. file groups to project with Manage Components 6 Create 5 file groups as shown User Lib STM32_EVAL CMSIS and MDK ARM As shown below Project E Target 1 User Lib ag CMSIS 1 7 MDK ARM 99 STM32_EVAL Figure 3 21 Finish file groups adding Note File groups are used to manage files of project User Group manage source files that user create Lib Group manage STM32F2xx Standard Peripherals Library STM32_EVAI manage board driver CMSIS manage CMSIS files MDK ARM manage StartUp code 7 Add files to groups Right Click on group of User select Add files to Group User Page 39 of 155 mge Embest Technology Co LTD http Awww armkits com Target 1 G Lib A Options for Group User Alt F7 CO OST MDK Gy sm Rebuild all target files L I Build target 4 Manage Components Figure 3 22 Add files to groups Add files from the created folder My Project ADC_example to the group of User Add Files to Group User B ADC_example we des fa E Eg File name cystem_stm32f2xx c main c stm32f2xx_it c File type C Source file D cl e Close Figure 3 23 Add selected files to group 8 Add files to the group of Lib STM32_EVAL CMSIS and MDK ARM same as done in step 7 The files need to be added to the group of Lib are located in code STM32F2xx_SidPeriph_Demo Libraries S TM32F2xx_
88. if you want to display data on the Hyper Terminal Hyperterminal configuration Word Length 8 Bits One Stop Bit No parity BaudRate 115200 baud flow control None 4 24 Lib DEBUG example The Lib_ DEBUG folder contains one example 1 2 Purpose This example demonstrates how to declare a dynamic peripherals pointers used for Debug mode Description Page 92 of 155 Lag Embest Technology Co LTD http www armkits com To use Debug mode user have to add the stm32f2xx_ip_dbg c file to your application This creates a pointer to the peripheral structure in SRAM Debugging consequently becomes easier and all register settings can be obtained by dumping a peripheral variable When the USE_FULL_ASSERT label is uncommented in stm32f2xx_conf h file the assert_param macro is expanded and run time checking is enabled in the firmware library code The run time checking allows checking that all the library functions input value lies within the parameter allowed values The associated program simulates wrong parameter passed to library function and the source of the error is printed on Hyperterminal through USART Note Make sure that jumpers JP7 and JP8 are fitted Connect a null modem female female RS232 cable between the DB9 connector COM1 USART3 and PC serial port if you want to display data on the Hyper Terminal Hyperterminal configuration Word Length 8 Bits One Stop Bit No parity BaudRate
89. ion Settings M Breakpoints MV Toolbox MV Breakpoints Iw Toolbox Je Watch Windows amp Performance Analyzer IV Watch Windows M Memory Display IV Memory Display CPU DLL Parameter Driver DLL Parameter SARMCM3 DLL MPU SARMCM3 DLL MPU Dialog DLL Parameter Dialog DLL Parameter DARMSTM DLL SES ene TARMSTM DLL pSTM32F2071G Cancel Defaults Help Figure 3 6 Select JLink as Debug tool Click Settings to setup JLink The Max Clock is suggested to be lower than 2MHz Click OK return to Debug window Cortex JLink JIrace Target Driver Setup Debug Trace Flash Download J Link J Trace Adapter JTAG Device Chain SN Re S sejo IDCODE Device Name Die Device J Link ARM TOO oM ARM CoreSight JTAG DP Ip HW V700 di V428 DR Unknown JTAG device Fw f Link ARM Y7 compiled Feb Port Max Clock Lag gt Em Auto Ck r Debug r Connect amp Reset Options Cache Options Download Options Reset Normal z IV Cache Code Verify Code Download I Download to Flash IV Reset after Connect IV Cache Memory Interface TCP IP gt Misc USB C TCPAP r Network Settings e IP Address Port Auto 0 _Autodetect Link Infe sn e SES Ping Link Cma State ready Figure 3 7 JLink settings 5 Select Utilities tab to setup Flash Programming Page 32 of 155 a Embest Technology Co
90. ions for node ADCH DRAT Category General Options C C Compiler Assembler Zeg ee ve SSS Output Converter Target Output Library Configuration Library Options M d Custom Build Library Descriptio Build Actions w Use the full configuration of the Linker C C runtime library Full locale Debugger interface C locale file descriptor support multibytes in printf and res scanf and hex floats in strtod GDB Server IAR ROM monitor J Link J Trace TI Stellaris Library low level interface implementati onCMSIS Macraigor Hone stdout stderr PE micro Semihosted Via semihosting RDI EE Via SHO ITAGiet ZC D 7 ST LINK Third Party Driver TI XDS100 Use CMSIS _ DSP library Figure 3 33 Select Use CMSIS 4 Select Linker gt Config tab then select the path of linker configuration file icf The file is under specific project folder by default Options for node AC DRAT Category Factory Settings General Options C C Compiler Assembler Output Converter Config Library Input Optimizations Advanced Output Jk Custom Build Linker configuration file Build Actions Override default Linker PROJ_DIRS stm32 2xx flash icf Debugger L Angel GDB Server Configuration file symbol definitions one per line IAR ROM monitor SE J Link J Trace TI Stellaris Macraigor PE micro RDI ITAGjet ST LINK Third Party Driver TI
91. ip between LED1 LED4 in software and LED6 LED9 in hardware Page 144 of 155 P Embest Technology Co LTD d http www armkits com Chapter 8 G Sensor Demonstration This demo is located in the CD ROM at the below following location code G Sensor_image rotation_App This demo shows an implementation of gt detecting acceleration on X Y Z axes gt detecting angle on X Y Z axes reference to horizon flat gt flipping BMP picture according to the angle detected in step 2 Note This demo can detect the acceleration on X Y Z axes Pictures can also be flipped according to acceleration This demo does not provide this functionality yet You can try it yourself In order to test the G Sensor demo please follow the below steps 1 Plug in 5V power supply to the DevKit1207 2 Plug in SD card into CON4 Make sure that jumpers JP5 and JP6 are fitted JP7 JP8 JP10 and JP11 are not fitted 3 Prepare BMP files for testing purpose There are two BMP pictures in the folder code G Sensor_image rotation_App Utilities image Copy these files to the root of the MicroSD card User can use other pictures as well the supported BMP file formats are shown below Width 320 Height 240 BPP 16 Compression RGB bitmap with RGB masks 4 Rebuild the demo and then download the program into Flash 5 At power on the LCD displays the following messages LED 6 will turn ON and then turn OFF Page 145 of 155 ai Embest Techn
92. it enabled When the program is executed a message will be printed on the Hyperterminal as follows USART Printf Example retarget the C library printf function to the USART Try to type a character using keyboard the character will be sent to DevKit1207 and printed on the Hyperterminal Note Make sure that jumpers JP7 and JP8 are fitted Connect a null modem female female RS232 cable between the DB9 Page 71 of 155 gi Embest Technology Co LTD http www armkits com connector COM1 USART3 and PC serial port if you want to display data on the Hyper Terminal Hyperterminal configuration Word Length 8 Bits One Stop Bit No parity BaudRate 115200 baud flow control None 4 8 2 USART_IRDA 1 2 Purpose This example shows how to implement communication between two devices using Infrared Transceiver Module MCU communicates with Infrared Transceiver Module via USARTS Note This example requires two DevKit1207 evaluation board Make sure that jumpers JP10 and JP11 are fitted Description In this example Infrared Transceiver Module work in simplex mode The program for sender need to be modified as below in main c file define configT YPE SEND_MODE define configT YPE RECV_MODE The program for receiver need to be modified as below in main c file define configT YPE SEND_MODE define configT YPE RECV_MODE The USARTS is configured as follow BaudRate 115200 baud Word Length 8
93. it1207 board mouse will move rightward Press USER2 button mouse will move upward There are no more keys on the board for moving downward and rightward Page 126 of 155 Lag Embest Technology Co LTD http www armkits com 6 2 6 USB VCP device example The VCP example illustrates an implementation of the CDC class following the PSTN subprotocol The VCP example allows the STM32 device to behave as a USB to RS232 bridge Onone side the STM32 communicates with host PC through USB interface in Device mode On the other side the STM32 communicates with other devices same host other host other devices through the USART interface RS232 The support of the VCP interface is managed through the ST Virtual Com Port driver The VCP device example works in High Speed and Full Speed modes Users can select High Speed Full Speed mode by modifying the relevant macro in MDK as shown below RH Options for Target SIN322xG E VAL_USBD HS Device Target Output Listing User C C Asm Linker Debug Utilities Preprocessor Symbols Define USE_STDPERIPH_DRIVER STM32F2xx USE_STM322xG_EVA E_ULPI_PH Undefine Language Code Generation Strict ANSI C Warnings Optimization Level 3 03 v I Enum Container always int AllWamings gt Optimize for Time Plain Char is Signed Split Load and Store Multiple F Read Only Position Independent Iw One ELF Section per Function F Read Write Position Ind
94. ith Ethernet MAC USB 2 0 HS OTG camera interface and hardware encryption support and external memory interface ST s acceleration technology enables STM32 F2 MCUs to achieve up to 150 DMIPS at 120 MHz CPU which is equivalent to zero wait state execution while keeping the dynamic current consumption with 188 A MHZ at an outstandingly low level Page 16 of 155 GB Embest Technology Co LTD j 2 2 Hardware interface http www armkits com f lt ST an E D E iv GD El Zon pow iD SE 56 w lt 2 m e 8 G Je area gw oo UR D d O i H ea A4 Ne By e COOC Fee E Ba gg E 3 Ste SH SR e om E Se L a ag gp J a os oR aD w ag d pane DEDE ema 8 iE Sun qu Bed 1297 11002 VERZ Figure 2 1 DevKit1207 Hardware Interface Diagram The following section gives in detail about the pin numbers and its function description of various different IC s blocks present in DevKit1207 2 2 1 Power Input Jack Table 2 1 Power Input Jack J1 Pin Signal Description 1 GND GND 2 GND GND 3 5V Power supply 5V 2A Type Page 17 of 155 L Embest Technology Co LTD http www armkits com 2 2 2 AUDIO OUTPUT Jack Table 2 2 AUDIO OUTPUT Jack J2 Pin Signal Description 1 GND GND
95. just the IWDG clock The IWDG reload counter is configured to obtain 250 ms according to the measured LSI frequency The IWDG reload counter is refreshed each 240 ms in the main program infinite loop to prevent a IWDG reset LED2 is also toggled each 240 ms indicating that the program is running An EXTI Line is connected to a GPIO pin and configured to generate an interrupt on the rising edge of the signal The EXTI Line is used to simulate a software failure once the EXTI Line event occurs by pressing the USER1 push button the corresponding interrupt is served In the ISR a write to invalid address generates a Hardfault exception containing an infinite loop and preventing to return to main program the IWDG reload counter is not refreshed As a result when the IWDG counter reaches 00h the IWDG reset occurs When the program is executed If the IWDG reset is generated after the system resumes from reset LED turns on If the EXTI Line event does not occur the IWDG counter is indefinitely refreshed in the main program infinite loop and there is no IWDG reset 4 15 WWDG example The WWDG folder contains one example gt WWDG_Example WWDG_Example 1 2 Purpose This example shows how to update at regular period the WWDG counter and how to simulate a software fault generating an MCU WWDG reset on expiry of a programmed time period Description Page 82 of 155 gi Embest Technology Co LTD l http www a
96. l LA AA Libraries CMSIS CM3 DeviceSupportS TS TM32F 2xx string v Figure 6 33 Select USB FS HS mode for MSC host demo If Preprocessor Symbols includes USE_USB_OTG_FS the DEMO will work in Full Speed mode If Preprocessor Symbols includes USE_USB_OTG_HS the DEMO will work in High Speed mode Note USE_USB_OTG_FS and USE_USB_OTG_HS should not be included in Preprocessor Symbols at the same time In order to test the USB MSC host example please follow the below steps 1 Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male between DevkKit1207 CON2 CONS3 and PC USB port 2 Rebuild the demo and then download the program into Flash 3 At power on the LCD displays the following messages Page 133 of 155 age device connected turer USB USB Flash Disk Figure 6 34 USB mass storage host display message Note The contents circled by red color are USB device information It depends on the USB device that plugged in 4 When the user press the USER1 button the application explore the USB flash disk content and the LCD displays the following messages 384 Bytes file 1 file2 Directory 3 Figure 6 35 USB mass storage explorer display message Note The contents circled by red color depend on the USB device that plugged in 5 User has to press the USER1 button to display the whole disk recursion level 2 Below is a screenshot when the en
97. management management vendor specific USB I O requests USB low level driver module HCD ISRs J Core interface layer MS197 10V1 Figure 6 32 USB host library overview 6 3 1 USB MSC host example This example shows how to use the USB OTG host peripheral on the STM32F2xx devices The STM32 behave as a mass storage Host that can enumerate show content and display the supported BMP image in the attached USB flash disk The MSC host example works in High Speed and Full Speed modes Users can select High Speed Full Speed mode by modifying the relevant macro in MDK as shown below Page 132 of 155 Lamm Embest Technology Co LTD http www armkits com Options for Target STN322xG EVAL_USBD HS Device Target Output Listing User C C Asm Linker Debug Utilities Preprocessor Symbols Define USE_STDPERIPH_DRIVER STM32F2xx USE_STM322xG_EVAl E_ULPI_PH Undefine Language Code Generation Strict ANSI C warnings Optimization Level 3 03 v JT Enum Container always int AllWamings v I Optimize for Time F Plain Char is Signed S I Split Load and Store Multiple F Read Only Position Independent Iw One ELF Section per Function F Read Write Position Independent res A Mme AAA 4Libraries CMSIS CM3 D eviceS upport S T4 S TM32F 2xx 4 4 SLibraries S TM32F F Misc N Controls Compiler c cpu Cortex M3 D__MICROLIB g 03 apes interwork split_sections JA I ine contro
98. mkits com 20 D4 16 bit 8080 parallel interface Data bit 4 21 D5 16 bit 8080 parallel interface Data bit 5 22 GND GND 23 D6 16 bit 8080 parallel interface Data bit 6 24 D7 16 bit 8080 parallel interface Data bit 7 25 GND GND 26 D8 16 bit 8080 parallel interface Data bit 8 27 D9 16 bit 8080 parallel interface Data bit 9 28 D10 16 bit 8080 parallel interface Data bit 10 29 D11 16 bit 8080 parallel interface Data bit 11 30 D12 16 bit 8080 parallel interface Data bit 12 31 D13 16 bit 8080 parallel interface Data bit 13 32 D14 16 bit 8080 parallel interface Data bit 14 33 D15 16 bit 8080 parallel interface Data bit 15 34 GND GND 35 GND GND 36 GND GND 37 LCD_DC LCD Parallel Interface 38 LCD_RD Read signal 39 LCD_WR Write signal 40 GND GND 2 2 12 LED Table 2 12 LEDs LED 1 9 LED Signal Description LED1 3V3 3 3V power indicator LED 2 VBUS_FS USB_FS indicator 1 LED 3 3V3 USB_FS indicator 2 Page 24 of 155 a Embest Technology Co LTD http www armkits com LED 4 VBUS_HS USB_HS indicator 1 LED 5 3V3 USB_HS indicator 2 LED 6 PC 07 User defined LED 1 LED 7 PG 08 User defined LED 2 LED 8 PG 06 User defined LED 3 LED 9 PD 12 User defined LED 4 Note There is a simple one to one relationship between LED1 LED4 in software and LED6 LEDS9 in hardware 2 2 13 KEY Table 2 13 KEYs S
99. mmenting relative code in the waiting loop in the main c file 4 6 ADC example The ADC folder contains four examples gt ADC3_DMA gt DualADC_Interleaved_DMAmode3 gt DualADC_RegulSimu_DMAmode1 gt TripleADC_Interleaved_DMAmode2 ADC3_DMA example demonstrates how to use the ADC3 and DMA to transfer continuously converted data from ADC3 to memory DualADC_Interleaved_DMAmode3 example demonstrates how to use the ADC peripheral to convert a regular channel in Dual interleaved mode using DMA in mode 3 with 5Msps DualADC_RegulSimu_DMAmode 1 example demonstrates how to use the ADC peripheral to convert regular channels simultaneously in dual mode using DMA in mode 1 TripleADC_Interleaved_DMAmode2 example demonstrates how to use the ADC peripheral to convert a regular channel in Triple interleaved mode using DMA in mode 2 with 6Msps Page 69 of 155 Lamm Embest Technology Co LTD http www armkits com Let s see how to use ADC with DMA in detail ADC3_DMA example 1 2 Purpose This example shows how to use the ADC3 and DMA to transfer continuously converted data from ADC3 to memory Description The ADC3 is configured to convert continuously channel7 Each time an end of conversion occurs the DMA transfers in circular mode the converted data from ADC3 DR register to the ADC3ConvertedValue variable Inthis example the system clock is 120MHz APB2 60MHz and ADC clock APB2 2 Since
100. monstration ceceeeseeeeeeeseeeseeeseeenseeeseeeeeeeseeeseeeeseensees 145 Chapter 9 Various Other Tests Scenario ccsecceeeeeeeeeeeeeeeeeeeeseeeeseeeseeeseeeneeenneees 147 9 1 LED and Key TeSting eet 147 9 2 ADC Testing sas iii i 147 9 3 Rn srs ee 147 9 4 USART TUM EE 147 9 5 elei ale e WE 147 9 6 CAN TESIR E 147 9 7 2S TeStNG EE 147 9 8 MicroSD Card Testing E 147 9 9 RTC E 2a eee A aie 148 9 10 Ethernet Testing E 148 9 11 e EE 148 9 12 DCD Touch Ten 148 9 13 Camera eege 148 Chapter 10 What s in the BOX ciiciecsccsccscessessecetacsessetscsteseiacstsseisestacscuns usessesdsessesadseadece 149 Appendix Operation Notes cscicsiissidessinetsensdsnscvaccsacienetsenasactsasessecscedesscnatcuancantenansveniennas 150 Appendix Il PC Development Platform ssussunsennennnnnnunnunnennnnnnnnnunnennnnnnnnnnnnnnnnnnnnnna 151 Technical Support amp Warranty Service sussussunsensennnnnnunnunnunnnnnnnnnunnunnnnnnnnnnnnnnnnnnnnn na 152 Technical support service NENNEN 152 Page 7 of 155 a Embest Technology Co G a http www armkits com Maintenance service cause 153 Basic notice to protect and maintenance LCD sssssesssessseeesesseessessenssetes 154 Value Added Gervices annn rrr nenn EEEE EEE Enn EEEE E Enen nenna 154 Page 8 of 155 P Embest Technology Co LTD k http www armkits com Chapter 1 Overview 1 1 Product introduction The STMicroelectronics STM32F207IGT6 flash microc
101. mple Create Hew Project Soe Qaexwle Je r B 4 My Recent Documents My Documents My Computer My Network Save as type Project Files Dr ewp DI Cancel 4 Figure 3 41 Save project 5 Right click on project name in Workspace window select Add gt Add Group Page 50 of 155 L Embest Technology Co LTD http www armkits com IAR Embedded Workbench IDE File Edit View Project Simulator Tools Window Help Dee e Workspace Options Make Compile Rebuild All Clean Stop Build Add gt Add Files Remove Rename Figure 3 42 Add Group 6 Then a dialog box of Add Group ADC_example will be opened Enter Group name in as shown below Add Group ADC example Group name User Cancel Figure 3 43 Add new group 7 Create 5 groups as shown CMSIS EWARM STM32F2xxStdPeriph_Driver User and STM32_EVAL As shown below x Debug v Files en BR EIE JADC_ exam v __ O cmsIS OEWARM 9 STM32_E E STM32F 2x L E User Figure 3 44 Finish groups adding 8 Add files to groups Right Click on group of User select Add gt Add Files Page 51 of 155 http www arm kits com Files en ER amp GADC_exam v GM G EWARM 9 STM32_E O STM32Fex L Options Add gt Add Files Add Group
102. n to IDE window Page 48 of 155 A n Embest Technology Co LTD http www armkits com 8 Click Make to build the project sr El gt lat e rt Figure 3 37 Build the project 9 Click Download amp Debug to download program to MCU A gt PD BE gt Dd e Figure 3 38 Download program 3 2 3 Create a New IAR Project This section shows how to create a new project with IAR EWARM 1 Open the directory of code STM32F2xx_SitdPeriph_Demo Create a new folder and name it My project Create a new folder in My Project and name it such as ADC_example Copy source files include files and icf file from the specified example for example ADC3_DMA to the folder ADC_example created in previous step main c stm32f2xx_it c stm32f2xx_it h system_stm32f2xx c stm32f2xx_conf h stm32f2xx_flash icf 2 Open IAR EWAR M click Project Create New Project ZE IAR Embedded Forkbench IDE File Edit View BZ Tools Window Help CG Import File List a Figure 3 39 Open IAR EWARM Page 49 of 155 P Embest Technology Co LTD l http www armkits com 3 Select Empty Project in the opened window Create New Project Tool chain Project templates 4 asm E C fC Externally built executable Description Creates an empty project Figure 3 40 Create Empty Project 4 Save the project in the folder of ADC_example as ADC_exa
103. nction F Read Write Position Independent Ween A Mme AAA SLibraries CMSIS CM3 D eviceSupportS T STM32F u AAA Libraries S T M32 TI aths Misc Controls Compiler control string c cpu Cortex M3 D__MICROLIB g 03 apes interwork split_sections JA Jl Mne 1 4 4 4 SLibraries CMSIS CM3 DeviceS upport S T S TM32F 2kx lt Figure 6 45 Select USB FS HS mode for OTG demo If Preprocessor Symbols includes USE_USB_OTG_FS the DEMO will work in Full Speed mode If Preprocessor Symbols includes USE_USB_OTG_HS the DEMO Page 141 of 155 ai Embest Technology Co LTD http www armkits com will work in High Speed mode Note USE_USB_OTG_FS and USE_USB_OTG_HS should not be included in Preprocessor Symbols at the same time In order to test the USB_Host_Device example please follow the below steps 1 Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male between DevkKit1207 CON2 CON3 and PC USB port 2 Rebuild the demo and then download the program into Flash 3 At power on the LCD displays the following messages USB Manual DRD demo gt Initializing demo gt Initializing gt Demo Initia gt Use USER amp USER to Select demo Host demo 2 D demo Figure 6 46 USB OTG example 4 User has to use USER2 button to select the item from the menu and USER1 to open it The menu structure is as follows Page 142 of 155 n
104. ne 9 11 USB Testing Please refer to the Section 6 3 1 USB MSC host example 9 12 LCD Touch Testing Please refer to the Section 4 21 LCD Touch example 9 13 Camera Testing DevKit1207 supports camera module now The source code and user manual can be downloaded from Embest website Please visit the website to get more information Page 148 of 155 mm Embest Technology Co LTD http www armkits com Chapter 10 What s in the BOX Devkit1207 development kit is supplied in standard configuration with the following accessories gt Vv Vv Y V V WV WV One Devkit1207 Evaluation board One 3 5 inch LCD with Touch screen One 5V Power adapter One cross serial cable DB9 to DB9 One cross Ethernet cable One USB cable Type A Male to Type Mini B Male One USB cable Type A Female to Type Mini A Male One Product CD including user manual schematic in PDF format datasheet uC OS II BSP FreeRTOS source tree software examples Page 149 of 155 ae Embest Technology Co LTD http Awww armkits com Appendix I Operation Notes In order to protect the LCD module please pay attention to following tips 1 Do not remove the LCD module from Devkit1207 evaluation board if not necessary 2 Do not touch the FPC Flexible Printed Circuit to avoid ESD damage and physical damage LEL ILILILILIL Figure Appendix 1 Flexible Printed Circuit Page 150 of 155 mm Embest Techn
105. nt to use ULINK select ULINK Cortex Debugger Default setting BR Options for Target Target LU Device Target Output Listing User CARTE Asm Linker Debug Utilities Use Simulator Settings Use JULINK Cortex Debugger D Settings l Limit Speed to Real Time MV Load Application at Startup Iw Run to mar Iw Load Application at Startup Tl Run to mar Initialization File Initialization File es wg Restore Debug Session Settings Restore Debug Session Settings IV Breakpoints Iw Toolbox Iw Breakpoints Iw Toolbox IV Watch Windows amp Performance Analyzer Iw Watch Windows Iw Memory Display Je Memory Display CPU DLL Parameter Driver DLL Parameter SARMCM3 DLL MPU SARMCM3 DLL MPU Dialog DLL Parameter Dialog DLL Parameter DARMSTM DLL pSTM32F2071G TARMSTM DLL pSTM32F2071G Cancel Defaults Help Figure 3 5 Select ULINK as Debug tool gt If you want to use JLINK select Cortex M R J LINK J Trace Page 31 of 155 i Embest Technology Co LTD J http www armkits com Y Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Use Simulator Settings Use T teres Settings F Limit Speed to Real Time Iw Load Application at Startup Iw Run to maint Iw Load Application at Startup Tl Run to mar Initialization File Initialization File Restore Debug Session Settings Restore Debug Sess
106. o Libraries CMSIS CM3 DeviceSupport ST STM3 2F2xx startup arm Note Only startup_stm32f2xx s need to be added to group of MDK ARM As the figure shown below required source flies have been added to the groups Debug v Files en ER ES JADC example Debug v Ha 9 CMSIS E core_cm3 c Ha G EWARM Asm startup_stm32f2xx s Ha 9 STM32_EVAL E stm322xg_eval c E stm322xg_eval_Icd c J STM32F2xStdPeriph_D misc c stm32f2xx_ade c H stm32f2xx_dac c stm32f2xx_dma c KH stm32f2xx_exti c E stm32f2xx_flash c E stm32f2xx_fsme c KO stm32f2xx_gpio c Ha E stm32f2xx_i2c c E stm32f2x_pwr c stm32f2xx_rcc c E stm32f2xx_sdio c E strn32f2xx_syscfg c E stm32f2xx_usar c User Ki main c E stm32f2xx_it c KI system_stm32f2x c Output A E DEEN A Figure 3 47 Source flies have been added to groups Page 53 of 155 10 Set include file paths Category General Options 7 C C Compiler Assembler Output Converter Custom Build Build Actions Linker Debugger Simulator Angel GDB Server IAR ROM monitor J Link J Trace TI Stellaris Macraigor PE micro RDI ITAGjet ST LINK Third Party Driver TI xDS100 mm Embest Technology Co LTD Options for node ADC _example Language 1 Language 2 Code C Multi file Compilation Discard Unusec Igore standard include direc Additional include directories Optimizations Output Lis http www
107. of 155
108. ol exe IP_address p udp r 7 I 7 n 15 t 2 d Testing LwIP UDP echo server where IP_address is the actual board s IP address By default the following static IP address is used 192 168 0 10 p udp is the protocol UDP protocol r is the actual remote port on the echo server echo port l is the actual local for the client echo port n is the number of echo requests t is the connection timeout in seconds d is the message to be sent for echo 8 The below screenshot shows an example of this command string and the module s response Page 107 of 155 n Embest Technology Co LTD http www armkits com ct C FINDO S system32 cad exe lof x C gt echotool exe 192 168 00 10 mp udp op 7 1 7 on 15 ot 2 d Testing Lwip udp ec ho server Hostname 192 168 6 16 resolved as 192 168 0 16 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 from 192 168 16 RED 16 16 16 WEE 16 KEE 16 16 WEE 16 KEE 16 ae OK OK OK OK OK OK OK time time time time a 33 E time time time 2333 time time time time time a e E aa a time time time S H F 6 H D 6 RH H RH D H RH 8 BH H H 8 zl d d zl zl zl d d d d d d d d zl e
109. ology Co LTD http www arm kits com Appendix Il PC Development Platform The information of the PC for DevKit1207 software development and testing as below CPU Intel Celeron R D 3 2GHz Memory 1GB Hard Disk 80GB Operation System Windows XP Files System NTFS The recommended PC configuration for user as below CPU Intel Pentium 4 or above Memory 512MB or above Hard Disk 30GB or above Operation System Windows XP Files System NTFS Page 151 of 155 a Embest Technology Co LTD d http www armkits com Technical support amp Warranty Service Embest Technology Co LTD established in March of 2000 is a global provider of embedded hardware and software Embest aims to help customers to reduce time to market with improved quality by providing the most effective total solutions for the embedded industry In the rapidly growing market of high end embedded systems Embest provides comprehensive services to specify develop and produce products and help customers to implement innovative technology and product features Progressing from prototyping to the final product within a short time frame and thus shorten the time to market and to achieve the lowest production costs possible Embest insists on a simple business model to offer customers high performance low cost products with best quality and service The content below is the matters need attention for our products technical support and warranty service
110. ology Co LTD http www armkits com G Sensor app Example pyright c Timll Technology Figure 8 1 G Sensor example 6 User has to press USER1 button to start the demo 7 If user turns the board upside the picture will be displayed in vertically If user turn it downside the picture will be displayed horizontally 8 Press USER1 button once again the demo go back to the initial status as step 5 NOTE In this example Kingston s 1GB 2GB microSD card SanDisk s 2GB microSD card pass test It does not guarantee that this example supports all kinds of SD card Page 146 of 155 P Embest Technology Co LTD l http www armkits com Chapter 9 Various Other Tests Scenario 9 1 LED and Key Testing Please refer to the Section 4 2 GPIO example 9 2 ADC Testing Please refer to the Section 4 6 ADC example 9 3 DAC Testing Please refer to the Section 4 7 DAC example 9 4 USART Testing Please refer to the Section 4 8 1 USART example 9 5 IRDA Testing Please refer to the Section 4 8 2 IRDA example 9 6 CAN Testing Please refer to the Section 4 16 CAN example 9 7 12S Testing Please refer to the Section 4 19 12S example 9 8 MicroSD Card Testing Please refer to the Section 4 20 SDIO example Page 147 of 155 Lag Embest Technology Co LTD http www armkits com 9 9 RTC Testing Please refer to the Section 4 11 RTC example 9 10 Ethernet Testing Please refer to the Section 5 2 1 HTTP server demo Standalo
111. onstratton 94 5 2 Standalone demos Sine crt ete cto cbc ecco eceteceteeteetete 98 5 2 1 HTTP Server ne WEE 98 EEN bel E nl EE 100 5 2 3 TCP_echo_client demo 102 5 2 4 TCP_echo_server demo 103 5 2 5 UDP_echo_client demo 105 5 2 6 UDP echo Server eM teri os n ei te te ee Sis 106 5 3 FreeRTOS Gems eener Een 108 5 3 1 HTTP Server netconn demo ceecceeeeeeeeeeeseneeeeeeeeseaeeeeeeeessneeeseaeeeas 108 5 3 2 HEIP Server SOCKeL deMmO xsi eee 110 5 3 3 UDP tcp_echo_server_netconn demo 110 Chapter 6 USB ExampleSsccsccicescecscssscccescnisocetscstscatscsiaceiuceteseiseaiucsseusdenesueedsessonadnesenes 111 6 1 Description of USB Exaniplesccccu ai 111 6 2 USB Device Exvamples 113 6 2 1 E ee 114 622 USB DFU device exainpl e i c5 ee 116 Page 6 of 155 a Embest Technology Co LTD http www armkits com 6 2 3 USB MSC device example sees 121 6 2 4 USB HID device example ceecesceeececeeeeeseeseeeteeeeeeeeseeseaeeeeeees 123 6 25 USB DualCore device example 50 n 125 6 2 6 USB EREECHEN ee cats desea deta dadidatncetderseewe 127 6 3 USB Host GMa NC sce ee eee ele 131 6 3 1 USB MSC host example succinic 132 6 3 2 USB HID host CxAMOlS ita vecictcncccnstnnsdncniteactnnctnncdeniancdendinmdnedienddenddanded 136 6 3 3 USB DualCore host Gage gereest 139 6 4 USB_Host_Device evample 141 Chapter 7 UC OS Il amp UC GUI Dem eeceeceeeseeeeeeeeeeeneneeeneeseeneeeeseeeseeeneneeseeeeeees 144 Chapter 8 G Sensor De
112. ontroller is from STM32F207xx family which is based on the high performance ARM Cortex M3 32 bit RISC core operating at a frequency of up to 120MHz with high speed embedded memories 1Mbytes of flash memory and 128Kbytes of system SRAM 4Kbytes of backup SRAM 2Kbits EEPROM and powerful peripheral functions including digital camera module interface High speed USB OTG Full speed USB OTG Ethernet MAC CAN2 0B multiple timers ADCs and DACs 12C DG SPI UARTs USARTs SDIO LCD interface RTC and programmable IOs Embest Devkiti207 Evaluation Kit is a complete development platform for STM32F207IGT6 devices which enables engineers to easily and rapidly evaluate prototype and test designs built around the STMicroelectronics STM32F207xx series microcontrollers The DevKit1207 board has exposed a full range of hardware peripherals to support HS FS USB OTG Ethernet CAN Camera Serial port IrDA TF card LCD Touch screen Audio G sensor RTC JTAG etc The kit is provided with an industrial level 3 5 inch LCD screen In addition Embest has ported uC OS II and uC GUI on this board Embest also has ported FreeRTOS real time operating system for LwIP ethernet applications Embest provides the uC OS II BSP FreeRTOS source code and plenty of software examples board schematic and user manual to help customer better understanding this board and make development based on this borad easier Note You are required to purchase a license for use uC O
113. oystick in HS mode 058 define USBD_SERIALNUMBER_HS_ STRING 900000000115 060 define USBD_PRODUCT_FS_STRING Joystick in FS Mode 061 define USBD_SERIALNUMBER_FS_STRING goo00000011c 063 define USBD_CONFIGURATION_HS_ STRING HID Config 064 define USBD_INTERFACE_ HS STRING HID Interface 065 066 define USBD_CONFIGURATION_FS STRING HID Config 067 define USBD_INTERFACE FS STRING HID Interface a a Figure 6 19 Select USB FS HS mode for HID device demo Page 124 of 155 a Embest Technology Co LTD http www armkits com In order to test the USB HID device example please follow steps below 1 Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male between DevkKit1207 CON2 CON3 and PC USB port 2 Rebuild the demo and then download the program into Flash 3 At power on the LCD displays the following messages USB OTG FS HS HID Devices gt USB device library started Device in Suspend Mode gt HID Interface started USB Device Library v Figure 6 20 Cable connected display message 4 PC will identify DevKit1207 board as HID device automatically 5 Press USER1 button on DevKit1207 board mouse will move rightward Press USER2 button mouse will move upward There are no more keys on the board for moving downward and rightward 6 2 5 USB DualCore device example The Dual core USB device example integrates the two mass storage and HID ex
114. p_stm32f2xx s STM32_EVAL EA stm3Z2xz_eval c E stm3Z22xz_eval_led c Figure 3 24 Source flies have been added to groups Page 41 of 155 i Embest Technology Co LTD 9 Setup Target options Click the icon Target Options select C C tab to set C C compiler specific tool options like code optimization or variable allocation File Edit View Project Flash Debug Peripherals Tools SVCS Window LISS A 2 r Figure 3 25 Setup Target options w There are two options we have to set Y Options for Target Target 1 Device Target Output Listing User C C Asm Linker Debug Utilities Preprocessor Symbols ee Language Code Generation I Strict ANSI C Warnings Optimization Level 0 LOD v J Enum Container always int lt unspecified gt D J Optimize for Time Plain Char is Signed J Split Load and Store Multiple Read Only Position Independent One ELF Section per Function Read Write Position Independent Include Paths Mise Controls Compiler c cpu Cortex M3 g 00 apes interwork 1 D Program Files keilNM4AMSCMSIS Include I control D Program Files keilM4AMSINC ST STM32F2kx oo ohnf_browse crf depend d string Cancel Defaults Help Figure 3 26 C C option 10 Add Preprocessor Symbols As several preprocessor symbols have been defined in project we need to add them to the column of Define Page 42 of
115. port the device is enumerated and checked whether it can support HID device or not if the attached device supports HID upon pressing the USER1 button the mouse or the keyboard application will be launched The HID host example works in High Speed and Full Speed modes Users can select High Speed Full Speed mode by modifying the relevant macro in MDK as shown below Page 136 of 155 Lamm Embest Technology Co LTD http www armkits com Options for Target STN322xG EVAL_USBD HS Device Target Output Listing User C C Asm Linker Debug Utilities Preprocessor Symbols Define USE_STDPERIPH_DRIVER STM32F2xx USE_STM322xG_EVAl E_ULPI_PH Undefine Language Code Generation Strict ANSI C warnings Optimization Level 3 03 v JT Enum Container always int AllWamings v I Optimize for Time F Plain Char is Signed S I Split Load and Store Multiple F Read Only Position Independent Iw One ELF Section per Function F Read Write Position Independent res A Mme AAA 4Libraries CMSIS CM3 D eviceS upport S T4 S TM32F 2xx 4 4 SLibraries S TM32F F Misc N Controls Compiler c cpu Cortex M3 D__MICROLIB g 03 apes interwork split_sections JA I ine control LA AA Libraries CMSIS CM3 DeviceSupportS TS TM32F 2xx string v Figure 6 39 Select USB FS HS mode for HID host demo If Preprocessor Symbols includes USE_USB_OTG_FS the DEMO will work in Full Speed mode If Preprocesso
116. r Symbols includes USE_USB_OTG_HS the DEMO will work in High Speed mode Note USE_USB_OTG_FS and USE_USB_OTG_HS should not be included in Preprocessor Symbols at the same time In order to test the USB HID host example please follow steps below 1 Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male DevKit1207 between CON2 CONS3 and PC USB port 2 Rebuild the demo and then download the program into Flash 3 At power on the LCD displays the following messages Page 137 of 155 age device connected ar USB USB Flash Disk Figure 6 40 USB HID Host connected display message Note The contents circled by red color are USB device information It depends on the USB device that plugged in 4 When user presses the USER1 button the application displays the mouse pointer and buttons Product USB Optical Mouse Serial Number N A gt Enumeration completed gt HID Demo Device Mouse Figure 6 41 USB HID Host user key message Moving the mouse will move the pointer in the display rectangle and if a button is pressed the corresponding rectangle will be highlighted in green Page 138 of 155 Lg Embest Technology Co LTD http Awww armkits com USB OTG FS HS HID Host Product USB Optical Mouse Serial Number N A gt Enumeration completed gt HID Demo Device Mouse USB Host Library Figure 6 42 USB HID Host user key pressed 6 3 3 USB D
117. r all families Ze UART Port Name com si Parity Even zi Baud Rate Iso ei Echo Disabled gt Data Bits Ef z Timeout s 10 Flow Contr orr he If Flow control is active By default DTR amp RT Figure 3 50 Configure UART 7 Press RESET button to reset the MCU 8 Click on Next as following figure shown Page 57 of 155 am Embest Technology Co LI D http www armkits com Flash Loader Demonstrator Vi ale lt 3 Target is readable Please click Next to proceed Figure 3 51 Target is readable 9 Click Next and select target MCU model Flash Loader Demonstrator Gr STMicroelectronics _ Please select your device in the target list PID 0 Ger mm o 3 2 Versio Do Flash Name Start a End add Size 8000000 Ox 8003FFF 0x4000 8004000 Ox S007FFF 0x4000 8008000 Ox 800BFFF 0x4000 B00C000 Ox 800FFFF 0x4000 8010000 Ox 801FFFF 0x10000 8020000 Ox 803FFFF 0x20000 8040000 Ox 805FFFF 0x20000 8060000 Ox SOTFFFF 0x20000 8080000 Ox 809FFFF 0x20000 S0A0000 Ox SOBFFFF 0x20000 80C0000 Ox SODFFFF 0x20000 Figure 3 52 Select MCU model 0 Click Next and select the file that crated by step 4 or step 5 Page 58 of 155 am Embest Technology Co ul D http www armkits com Flash Loader Demonstrator Selection Ze Download to device E from file
118. r the last written one in the first write After completion of the second write operation the written data are read The contents of the written and the read buffers are compared All transfers are managed in DMA mode except when 1 byte read write operation is required Once sEE_ReadBuffer or sEE_WriteBuffer function is called the user application may perform other tasks in parallel while Read Write operation is managed by DMA This example provides the option to use the DevKit1207 LCD screen for messages display transfer status Ongoing PASSED FAILED To enable this option user need to uncomment the define ENABLE_LCD_MSG_DISPLAY in the main c file 4 18 2 GSensor LIS33DE 1 2 Purpose This example shows how to configure the MEMS accelerometer to detect acceleration on X Y Z axes Note Make sure that jumpers JP7 and JP8 are fitted Connect a null modem female female RS232 cable between the DB9 connector COM1 USART3 and PC serial port if you want to display data on the Hyper Terminal Hyperterminal configuration Word Length 8 Bits One Stop Bit No parity BaudRate 115200 baud flow control None Description After startup the program checks for the G Sensor MEMS accelerometer status registers and behaves as follows lf the board is moved as shown below the acceleration is detected on the X Y Z axis Page 87 of 155 a Embest Technology Co LTD http www armkits com TS gef
119. rmkits com The WWDG timeout is set to 69 9 ms and the refresh window is set to 80 The WWDG counter is refreshed each 50ms in the main program infinite loop to prevent a WWDG reset LED2 is also toggled each 53 ms indicating that the program is running AnEXTI Line is connected to a GPIO pin and configured to generate an interrupt on the rising edge of the signal The EXTI Line is used to simulate a software failure once the EXTI Line event occurs by pressing the USER1 push button the corresponding interrupt is served In the ISR a write to invalid address generates a Hardfault exception containing an infinite loop and preventing to return to main program the WWDG counter is not refreshed As a result when the WWDG counter falls to 63 the WWDG reset occurs When the program is executed if the WWDG reset is generated after the system resumes from reset LED1 turns on If the EXTI Line event does not occur the WWDG counter is indefinitely refreshed in the main program infinite loop and there is no WWDG reset 4 16 CAN example The CAN folder contains two examples gt LoopBack gt Networking LoopBack example provides a description of how to set a communication with the CAN in loopback mode Networking example shows how to configure the CAN peripheral to send and receive CAN frames in normal mode The sent frames are used to control Leds by pressing key push button Now let s discuss Networking example in
120. rver mode 8 When the USER1 button on the DevkKit1207 board is pressed the client sends a string and the server echoes back the same string to the client The below screenshot shows an example of the command string and the module s response ct C WIRDO WS system32 cad exe echotool exe p tcp s iC gt echotool exe p tcp s Maiting for TCP connection on port 7 Press any key to exit Client 192 168 6 10 4097 accepted at 14 59 19 14 59 19 received sending tcp client message Session closed by peer Waiting for TCP connection on port 7 Press any key to exit Client 192 168 6 10 4098 accepted at 14 59 19 14 59 19 received sending tcp client message 1 Session closed by peer Waiting for TCP connection on port 7 Press any key to exit Figure 5 15 TCP echo client demo 5 2 4 TCP_echo_server demo This demo is used to test a basic TCP connection In this demo the STM32 acts as a TCPserver that waits for client requests It simply echoes back whatever is sent In order to test the TCP echo server demo please follow the below steps 1 Plug in 5V power supply to the DevKit1207 Connect a crossover cable between Devkit1207 RJ45 CON1 and PC Ethernet port 2 Configure IP address The default Static IP address of evaluation board modify the relevant macro in main h depending on your needs as shown below a main h define MAC_ADDRS 0 IP_ADDRO IP_ ADDR1 IP_ADDR2 IP_ADDR3 060 S
121. ry structure 4 1 1 Libraries folder This folder contains the Hardware Abstraction Layer HAL for STM32F2xx Devices 1 CMSIS CM3 subfolder This subfolder contains the CoreSupport and DeviceSupport files CoreSupport files consist of gt core_cm3 c and core_cm3 h Core Peripheral Access Layer contains name definitions address definitions and helper functions to access Cortex M3 core registers and peripherals DeviceSupport files consist of gt startup_stm32f2xx s Provides the Cortex M3 startup code and interrupt vectors for all STM32F2xx device interrupt handlers with MDK ARM and IAR gt stm32f2xx h this file contains the definitions of all peripheral registers bits and memory mapping for STM32F2xx devices The file is the unique include file used in the application C source code usually in the main c gt system_stm32f2xx c h This file contains the system clock configuration for STM32F2xx devices It exports Systemlnit function which sets up the system clock source PLL multiplier and divider factors AHB APBx prescalers and Flash Page 62 of 155 gi Embest Technology Co LTD http www armkits com settings This function is called at startup just after reset and before connecting to 2 the main program The call is made inside the startup_stm32f2xx s file STM32F2xx_StdPeriph_Driver subfolder This subfolder contains sources of STM32F2xx peripheral drivers excluding USB and Ethernet Each
122. s 3 STM32_EVAL STM322xG_EVAL This file provides gt set of firmware functions to manage Leds push button and COM ports gt low level initialization functions for SD card on SDIO and serial EEPROM sEE available on DevKit1207 evaluation board from STMicroelectronics The Section 4 2 4 23 describes the peripheral firmware examples provided for the Devkit1207 evaluation board 4 2 GPIO example The GPIO folder contains two examples gt lOToggle gt JTAG_Remap lOToggle example shows how to use the GPIO port bit set reset registers BSRRL and BSRRH for I O toggling JTAG_Remap example provides a short description of how to use the JTAG SWD IOs as standard GPIOs and gives a configuration sequence Let s see how to toggle GPIO s using lOToggle example in detail lOToggle example 1 Purpose This example describes how to use BSRRH and BSRRL Bit Set Reset Register High and Bit Set Reset Register Low for IO toggling The duration between the ON and OFF states depends on the inserted delay Page 64 of 155 gi Embest Technology Co LTD http www armkits com 2 Description In this example GPIOC GPIOG and GPIOD clock is enabled Configure PC7 PG8 PG6 and PD12 in output pushpull mode Three kinds of light effect When the program is executed the four LEDs LED1 LED2 LED3 and LED4 which connected to PC7 PG8 PG6 and PD12 are turned ON then OFF in an infinite loop The duration between
123. tatic IP ADDRESS Go fie Ip ADDRO 19 define IP_ADDR1 168 IP_ADDR2 A IP ADDR3 Figure 5 16 Configure IP address of DevkKit1207 3 Rebuild the demo and then download the program into Flash 4 Atpower on LCD will display the IP address of the evaluation board Page 103 of 155 5 n Embest Technology Co LTD http www armkits com On the remote PC Copy the echotool software to C root directory The echotool software is located in the folder of CD ROM code STM32F2x7_ETH_LwIP_V1 0 2 Utilities Third_Party PC_Software On the remote PC open a command prompt window In Windows select Start gt All Programs gt Accessories gt Command Prompt At the command prompt enter C gt echotool exe IP_address p tcp r 7 n 15 t 2 d Testing LwIP TCP echo server where ID address is the actual board s IP address By default the following static IP address is used 192 168 0 10 p tcp is the protocol TCP protocol r is the actual remote port on the echo server echo port n is the number of echo requests t is the connection timeout in seconds d is the message to be sent for echo The below screenshot shows an example of this command string and the module s response cx C WIRDO S syst em32 cad exe IC gt echotool exe 192 168 606 106 p tcp r 7 7n 15 t 2 7d Testing Lwip TCP echo se Duer Hostname 192 168 08 10 resolved as 192 168 80 10 from 192 168 from 192 168
124. tion support of HTTP Post request In order to test the HTTP server demo please follow the steps below 1 Plug in 5V power supply to the DevkKit1207 Connect a crossover cable between DevkKit1207 RJ45 CON1 and PC Ethernet port 2 Configure IP address The default Static IP address of evaluation board modify the Page 98 of 155 http Awww armkits com define MAC_ADDRS 054 Stati Kli A ine IP_ADDRO 192 055 See 056f define Ip ADDRI 168 05 define IP_ADDR2 0 5 IP_ADDR3 Figure 5 8 Configure IP address of DevKit1207 You can also uncomment option USE_DHCP to enable the DHCP to assign IP addresses dynamically 3 Rebuild the demo and then download the program into Flash 4 Atpower on LCD will display the IP address of the evaluation board 5 On the remote PC open a web client Mozilla Firefox or Internet Explorer and type the board s IP address in a web browser By default the following static IP address is used 192 168 0 163 STM32F2x7 e OG 192 168 0 163 STM32F2x7 Webserver Demo Based on the IwIP TCP IP stack STM32 F 2 Series A new generation on STM32 with significant improvement in features performance More Memory Advanced features Maintain close pin out compatibility Maintain close software compatibility Complement the existing family with more performance memory and features The STM32F2x7 home page About this
125. tions used in this section Table 6 1 List of terms Term Meaning PHY Physical Layer as described in the OSI model OTG USB On The Go LS Low Speed 1 5 Mbps FS Full Speed 12 Mbps HS High Speed 480 Mbps CDC Communication Device Class HID Human Interface Device Page 111 of 155 A Embest Technology Co LTD http www armkits com MSC Mass Storage Class DFU Device Firmware Upgrade DRD Dual Role Device DCD Device Core Driver HCD Host Core Driver The following figure illustrates the tree structure of the USB host and device library folder EI Ki Code Ce G Sensor_image rotation_App z Cal STN32_F105 O7_F2xx_USB Host Device_Lib_ 2 0 0 Ce _htmrese Ce Libraries Ki CMSIS E Ce STNS2_USB_Device_Library E Ki STN32_USB_HOST_Library Cal STN3S2 IER OTG Driver Di Ki STM32F2xx_StdPeriph_Driver E G STM32F10x_StdPeriph_Driver Z Ce Project E Ki USB_Device_Examples Ca WSB_Host_Device_Examples DI Cal UWSB_Host_Examples E Ce Utilities Ki Binary D KO STN32_EVAL ze Third Party Figure 6 1 USB example structure The project is composed of three main directories organized as follows 1 Libraries contains the STM32 USB OTG low level driver the standard peripherals libraries the host and the device libraries 2 Project contains the workspaces and the source files for the examples given with the package USB _ Device Examples USB_Host_Devic
126. tire flash disk is shown Page 134 of 155 Directory4 Directory5 Directory Mer file8 Figure 6 36 USB mass storage explorer display message last screen 6 The user has to press the USER1 button to write a small file e g Host_Write_Demo ixt less to 1 KB on the disk file 1 file2 file3 file4 Directory file6 file file8 gt Writing file to disk flas gt Host_VVrite_Demo TT file created Figure 6 37 USB mass storage write file display message 7 After writing the file to the disk user can press the USER1 button to start the Image slide show Only the BMP files with the following format are supported Width 320 Height 240 BPP 16 Page 135 of 155 Lag Embest Technology Co LTD http www armkits com Compression RGB bitmap with RGB masks There are some BMP files for testing purpose located in the following location code STM32_F105 07_F2xx_USB Host Device_Lib_V2 0 0 Utilities Binary Media Copy these files to the root of the USB flash disk then press the USER1 button to start the Image slide show USB OTG FS HS MSC Host USB Host Library vx x Figure 6 38 USB mass storage slideshow example Note BMP files should be located in the USB Disk root 6 3 2 USB HID host example This example shows how to use the USB OTG host peripheral on the STM32F2xx When an USB Device is attached to the Host
127. to synchronize TIM1 and TIM1_ Synchro Timers TIM3 and TIM4 in parallel mode This example shows how to configure the TIM9 TIM9_OCToggle peripheral to generate four different signals with four TIM different frequencies This example shows how to configure the TIM TIM10_PWMOutput peripheral in PWM Pulse Width Modulation mode This example shows how to configure the TIM peripheral in Output Compare Timing mode with the TimeBase corresponding Interrupt requests for each channel in order to generate 4 different time bases Now let s discuss about PWM_Output example and TimeBase example to understand how to use TIM peripheral 4 13 1 PWM_Output example 1 Purpose This example shows how to configure the TIM peripheral in PWM Pulse Width Modulation mode 2 Description The TIM3CLK frequency is set to SystemCoreClock 2 Hz to get TIM3 counter clock at 20 MHz the Prescaler is computed as following Prescaler TIM3CLK TIM3 counter clock 1 SystemCoreClock is set to 120 MHz for STM32F2xx Devices RevA RevZ and RevB The TIM3 is running at 30 KHz TIM3 Frequency TIM3 counter clock ARR 1 20 MHz 666 30 KHz The TIM3 CCR1 register value is equal to 333 so the TIM3 Channel 1 generates a PWM signal with a frequency equal to 30 KHz and a duty cycle equal to 50 Page 79 of 155 Lag Embest Technology Co LTD http www armkits com TIM3 Channeli duty cycle TIM3_CCR1 TI
128. ty 1 SysTick Handler PreemptionPriority PreemptionPriorityValue SubPriority 0 First the PreemptionPriorityValue is equal to 0 the WAKEUP button EXTI Line has higher preemption priority than the SysTick handler In the USER1 button EXTI Line interrupt routine the WAKEUP button EXTI Line and SysTick preemption priorities are inverted In the WAKEUP button EXTI Line interrupt routine the pending bit of the SysTick interrupt is set this will cause SysTick ISR to preempt the WAKEUP button EXTI Line ISR only if it has higher preemption priority The system behaves as following The first time USER1 button EXTI Line interrupt occurs the SysTick preemption become higher than WAKEUP button EXTI Line one So when the WAKEUP button EXTI Line interrupt occurs the SysTick ISR is executed and the PreemptionOccured variable becomes TRUE and the four leds LED1 LED2 Page 66 of 155 Lamm Embest Technology Co LTD http www armkits com LED3 and LED4 start toggling When the next USER1 button EXTI Line interrupt occurs the SysTick preemption become lower than WAKEUP button EXTI Line one So when the WAKEUP button EXTI Line interrupt occurs the PreemptionOccured variable became FALSE and the four leds LED1 LED2 LED3 and LED4 stop toggling This behavior is repeated and performed in an infinite loop 4 4 EXTI example The EXTI folder contains one example gt EST Example EXTI_Example 1 Purpose
129. ualCore host example In this demonstration the user can use one or two devices the mass storage device should be connected to the high speed port CON3 while the HID device should be connected to the full speed port CON2 In order to test the USB DualCore host example please follow the below steps 1 Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male between CON2 and PC USB port Connect another one USB cable Type A Male to Type Mini B Male between DevkKit1207 CON3 and PC USB port 2 Rebuild the demo and then download the program into Flash 3 At power on the LCD displays the following messages Page 139 of 155 ai Embest Technology Co LTD http www armkits com USB OTG Dual Core Host gt Port gt Bert Pom Serial Number Mass Storage demo 2 Humain Interface demo 3 Re Enumerate Figure 6 43 USB dual core host example Note The contents circled by red color are USB device information It depends on the USB device that plugged in 4 User has to use USER2 button to select the item of menu and use USER1 to open it The menu structure is as follows Main menu 1 Mass storage demo 2 Human interface demo Mass storage menu 3 Re enumerate 1 Explore flash content 2 Write file to disk 3 Show BMP file 4 Return HID menu 1 Start HID application 2 Show HID report 3 Return Figure 6 44 Menu structure
130. upply 2 VSUPPLY 3 3V power supply 3 NTRST Test system reset 4 GND GND 5 TDI Test data input 6 GND GND 7 TMS Test mode select 8 GND GND 9 TCK Test clock 10 GND GND 11 RTCK GND 12 GND GND 13 TDO Test data output 14 GND GND 15 NSRST Test system reset 16 GND GND 17 DBGRQ Connect to GND 18 GND GND 19 DBGACK Connect to GND 20 GND GND 2 2 7 MicroSD Card Interface Table 2 7 MicroSD Card Interface CON4 Pin Signal Description 1 DAT2 Card data 2 Page 20 of 155 am Embest Technology Co LTD http www armkits com _ 2 DAT3 Card data 3 3 CMD Command Signal 4 VDD VDD 5 CLK Clock 6 VSS VSS 7 DATO Card data 0 8 DAT1 Card data 1 9 CD Card detect 2 2 6 Camera Interface Table 2 8 Camera Interface CON6 Pin Signal Description 1 GND1 GND 2 DO NC 3 D1 NC 4 D2 Digital image data bit 0 5 D3 Digital image data bit 1 6 D4 Digital image data bit 2 7 D5 Digital image data bit 3 8 D6 Digital image data bit 4 9 D7 Digital image data bit 5 10 D8 Digital image data bit 6 11 D9 Digital image data bit 7 12 D10 NC 13 D11 NC 14 GND2 GND 15 PCLK Pixel clock 16 GND3 GND Page 21 of 155 gi Embest Technology Co LTD http www armkits com 17 HS Horizontal synchronization 18 VDD50 NC 19 VS Vertical synchronization 20 VDD33
131. upport for Cortex M Cortex R4 ARM7 and ARM9 devices gt Industry leading ARM C C Compilation Toolchain gt wVision4 IDE debugger and simulation environment gt Keil RTX deterministic small footprint real time operating system with source code gt TCP IP Networking Suite offers multiple protocols and various applications gt USB Device and USB Host stacks are provided with standard driver classes gt Complete GUI Library for embedded systems with graphical user interfaces gt ULINKpro enables on the fly analysis of running applications and records every executed Cortex M instruction gt Complete Code Coverage information about your program s execution gt Execution Profiler and Performance Analyzer enable program optimization gt Numerous example projects help you quickly become familiar with MDK ARM s powerful built in features gt CMSIS Cortex Microcontroller Software Interface Standard compliant Page 28 of 155 a Embest Technology Co LTD l __hittp www armkits com The following block diagram illustrates the complete pVision4 software development cycle pVision4 IDE with Editor amp Make Utility C C Macro Compiler Assembler Library Manager Linker Locator Third Party Emulator or Programmer pVision4 Debugger pC and On Chip ULINK AGDI Peripheral USB JTAG Target Simulation Adapters Interface Figure 3 1 Software development cycle The STM32F2xx series MCUs require MDK4 20 and later
132. ww armkits com xamples DFU binary_template MDK ARM In Installation directory of DfuSe_Demo_V3 0 2 open BIN folder this opens a DfuFileMgr software as shown below Figure 6 8 DFU file manage Click OK this opens a window as shown below a DFU File Hanager v3 0 2 Generation Device Vendor ID Ox 0483 Product ID Ox 0o00 m Injection Target ID fo 19 or Hex Multi BIN Version Ox 0o00 EE fl Deletion Delete selected Image Cancel Images Image for Alternate Setting Figure 6 9 Generate DFU file Click S19 or Hex button select the file to be upgraded then click generate button to generate DFU file Plug in 5V power supply to the DevKit1207 Connect a USB cable Type A Male to Type Mini B Male between DevKit1207 CON2 CONS3 and PC USB port Rebuild the demo and then download the program into Flash At power on the LCD displays the following messages Page 118 of 155 mm Embest Technology Co LTD USB OTG FS HS DFU Device S S id Mode gt DFU Interface configured USB Device Librar Figure 6 10 USB device firmware upgrade cable connected display message 6 Run DfuSe DEMO software on PC If PC identify the DFU device DevKit1207 board below window will be displayed which means board is ready for USB DFU test we DfuSe Demo v3 0 2 BIE DFU and compatible HID Devices STM Device in DFU Mode Application Mode DFU
133. xDS100 Figure 3 34 Edit linker configuration file path Page 47 of 155 i Embest Technology Co LTD http www armkits com 5 Select Debugger gt Setup tab to choose Debug tool Default J Link J Trace Options for node ADCH DRAT Ceo aS Factory Settings General Options C C Compiler Assembler Output Converter Setup Download Images Extra Options Plugins Custom Build Build Actions Driver Run to Linker J Link J Trace main CI Eil teg Simulator Angel GDB Server Angel IAR ROM moni tor GDB Server IAR ROM monitor J Link 3 Trace TI Stellaris Macraigor PE micro RDI ITAGjet ST LINK Third Party Driver TI XD5100 Figure 3 35 Select Debug tool 6 Select Debugger gt Download tab then select Verify download and Use flash loader Options for node ADCH DRA Category Factory Settings General Options C C Compiler Assembler Output Converter Setup Download Images Extra Options Plugins Custom Build Cl Attach to progr Build Actions Linker Verify download o Suppress download paaria Ml Use flash loader Ange Qverride default board file GDB Server IAR ROM monitor J Link J Trace Edit TI Stellaris Macraigor PE micro RDI ITAGjet ST LINK Third Party Driver TI XDS100 Figure 3 36 Set download mode 7 Click OK to finish the setup and retur

Download Pdf Manuals

image

Related Search

Related Contents

User Guide • We recommend using CHAMDRILL in rotating or  "user manual"  Selecionando um  Get to Know Your Device  Novus OfficeLight LED Corona 2  Residential phone user guide  Manuel d`utilisation du web smart pack version CSOV 1  Code Corporation Code Reader 2.0  1. Producto: OXIGEL PAVONADO. PARTICULA FINA  

Copyright © All rights reserved.
Failed to retrieve file