Home
STM32F4DIS-BB User Manual
Contents
1. defgroup USB String Descriptors Ri S define define define define define define define define define define USED LANGID STRING 0x409 USBD MANUFACTURER STRING STMicroelectronics USED PRODUCT HS STRING STM32 Virtual ComPort in HS mode USED SERIALNUMBER HS STRING 00000000050B USED PRODUCT F5 STRING STM32 Virtual ComPort in FS Mode USED SERIALNUMBER F3 STRING 00000000050C USED CONFIGURATION HS STRING VCP Config USED INTERFACE HS STRING YCP Interface USED CONFIGURATION F3 STRING VCP Config USED INTERFACE FS STRING YGP Interface Figure 4 37 USB VCP device information In order to facilitate testing a PC plays as two host of VCP STM32F4DIS BB Embest Technology Co LTD User Manual Page 72 of 90 T Enoei Tecmoooy Co LID NT 2 ST Evaluation Host PC Board USB Terminali USART Terminal Figure 4 38 One single Host for USB and USART Hardware Configuration A USB type A Male to Micro AB Male cable is needed in this example 3 Steps to Run 1 Install VCP_V1 3 1_Setup exe on the PC The software is located CD ROM at the following location Codes STM32F4xx_USB_Example Utilities PC_Software stm32_vcp If your PC is 64 bit please install VCP_V1 3 1_Setup_x64 exe 2 Connect LCD module STM32F4DIS LCD to DevKit407 CON3 via LCD cable 3 Connect the DevKit407 board to a PC with a USB type A Male to Micro AB Male cable throu
2. LO EA E KPA IS BS C Jechotool exe 192 168 606 186 p tcp r 7 n 15 t 2 d Testing Lwip TCP echo se uer Hostname 192 168 1 resolved as 192 168 6 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 18 18 18 18 18 18 18 18 18 18 18 10 10 10 10 OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK time 3 H time 3 H time 3 H time 3 H time 3 time 3 H time 3 time time time time 3 3 H 3 time 3 H time 3 time 3 D H a H 8 H D H H H H H H 8 D NNNNNNNNNNNNNNN H D Gi Gi Gi Gi Gi Gi O GI Gi Gi Gi Gi Gi Gi 3 77 o o o o o o o o o o o o o Go time 3 Statistics Received 15 Gorrupted IC 2 gt Figure 4 14 TCP echo server demo STM32F4DIS BB Embest Technology Co LTD User Manual Page 52 of 90 Ve Enbest Teil Ca O 4 5 4 Standalone udp_echo_client 1 Description 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 2 Software Configuration Ethernet is used in this example Please reference at 3 3 2 PC Network Settings for more details 3 Steps to Run 1 Configur
3. 16 NC NC 2 2 0 MicroSD Card Interface Table 2 3 MicroSD Card Interface CONG Pin Signal Description 1 DAT2 Card data 2 2 DAT3 Card data 3 3 CMD Command Signal 4 VDD VDD 5 CLK Clock 6 VSS VSS 7 DATO Card data 0 STM32F4DIS BB Embest Technology Co LTD User Manual Page 18 of 90 L en Embest Technology Co LTD 8 DAT1 Card data 1 http www armkits com 9 CD Card detect 2 2 4 TFT LCD Interface Table 2 4 TFT LCD Interface CON3 Pin Signal Description 1 VDD5 5 V 2 VDD5 5 V 3 GND GND 4 GND GND 5 VDD33 3 3 V 6 VDD33 3 3 V 7 LCD_PWM LED Dimming Control by PWM Signal 8 12C_SCL 12C master serial clock 9 12C_SDA 12C 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 20 D4 16 bit 8080 parallel interface Data bit 4 21 D5 16 bit 8080 parallel interface Data bit 5 STM32F4DIS BB Embest Technology Co LTD User Manual Page 19 of 90 21 Embest Technology Co LTD http www armkits com
4. 29 GND5 GND 30 VDDIO 3 3 V 2 3 Pin Multiplexing There is pin multiplexing between the STM32F4Discovery and STM32F4DIS BB Some functions therefore cannot work simultaneously as shown below 1 5 OTG_FS OTG_FS and LCD UART2 cannot work simultaneously Audio Audio and LCD Camera UART1 4 5 6 SPI2 cannot work simultaneously LEDs LED3 LED6 and Camera LCD cannot work simultaneously MEMS MEMS and Ethernet Camera cannot work simultaneously CAN STM32F4DIS BB Embest Technology Co LTD User Manual Page 23 of 90 r e Embest Technology Co LTD CAN and LCD cannot work simultaneously 6 UART1 6 UART1 6 and Camera cannot work simultaneously 7 UART2 UART2 and Camera LCD cannot work simultaneously 8 UART3 UART3 and LCD cannot work simultaneously 9 UART4 5 UART4 5 and MicroSD cannot work simultaneously http www armkits com For more detail please refer to Table 2 7 Pin multiplexing of STM32F4Discovery and STM32F4DIS BB and Table 2 8 Pin multiplexing of CON4 extension port and STM32F4DIS BB Table 2 7 Pin multiplexing of STM32F4Discovery and STM32F4DIS BB Multiplexing Multiplexing Discovery GPIO STM32F4DIS BB Function 1 Function2 OTG FS ID PA10 PA10 GPIO2 OTG FS OTG FS LCD WR LCD PD5 Overcurrent UART2 TX UART2 PB6 DCMI D5 Camera Audio SCL UART1 TX UART1 PC7 DCMI D1 Camera 1253 MCK UART6 RX UART
5. USB Host Lib Figure 4 52 USB mass storage slideshow example Note BMP files should be located in the USB Disk root STM32F4DIS BB Embest Technology Co LTD User Manual Page 83 of 90 a Embest Technology Co LTD Chapter 5 Applications Examples 5 1 STM32F4xx uCOSII Example 1 Description This example provides a description of how to use the uC OS Il on the STM32F4xx devices Note This example just supplies port files You should download uC OS II v2 91 source code from the Micrium website http micrium com page downloads source_code Copy uC OS II v2 91 source from the Micrium folder Micrium SoftwareluCOS INSource to Project folder STM32F4xx_uCOSI I_Example uCOS I Source Two tasks work in this example gt App TaskStar Control the LED blinking gt App TaskKbd Control the LED blinking frequency by User button pressing The MEK project of this example is located in the following folder Codes STM32F4xx_uCOSII_Example Project MDK ARM 2 Steps to Run 1 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 2 Open the project rebuild all files load project image and then run program 3 Testing actions and results gt LEDs turn on and then turn off in an order LED4 gt LED6 gt LED5 gt LEDS gt Long press on User button then the blinking speed of the LEDs will be lower than what we saw at the beginning S
6. using RESET button Note In the DFU DEMO the application start address is set to 0x0800C000 as STM32F4DIS BB Embest Technology Co LTD User Manual Page 68 of 90 r e Embest Technology Co LTD http www armkits com 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 Ox08000000 application start address 064 Flash memory address from where user application will bg 065 This address represents the DFU code protected against u O66 if defined STM32F2XX defined STM32F4XX 067 define APP DEFAULT ADD Ox0800C000 The 068 elif defined STM32F10X CL 069 define APP DEFAULT ADD Ox08008000 The 070 endif STM32F2XX Figure 4 33 Configure start address of application STM32F4DIS BB Embest Technology Co LTD User Manual Page 69 of 90 des Entes regen UR 4 6 2 USB_Device_Examples MSC 1 Description The MSC Mass Storage example gives a typical example of how to use the STM32F4xx 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 MSC device information is located in usbd desc c as shown below BEE Vi 051 define USED VID 0x0483 052 define US
7. 35 37 17 04 15 90 4 4 21 HA o Top Layer Component Heightyax 13 5 mm Board Thickness 1 6 mm STM32F4DIS BB Embest Technology Co LTD User Manual Page 26 of 90 dre vest Techrlogy Ga D I Chapter 3 Development Environment 3 1 Hardware Environment Setup DevKit407 hardware environment following these steps 1 Mount STM32F4DISCOVERY board to STM32F4DIS BB board through CON1 and CON2 to form DevKit407 2 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board i 3 2 Software Environment DevKit407 supports two development environments Keil MDK ARM and IAR EWARM Keil MDK ARM requires V4 22a or above IAR EWARM requires V6 40 2 or above The instructions given in Getting Started with Software and Firmware Environments for the STM32F4DISCOVERY Kit pdf describes how to use development toolchains to build debug and run your project Please refer to the document for more details STM32F4DIS BB Embest Technology Co LTD User Manual Page 27 of 90 PAEA Embest Technology Co LTD http www armkits com 3 3 PC Environment 3 3 1 HyperTerminal Connection In order to use HyperTerminal on a PC please follow the below process to setup Hyper Terminal connection for example on Windows XP OS 1 Select Start gt All Programs gt Accessories gt Communication gt Hyper
8. Command Prompt 9 At the command prompt enter C gt echotool exe IP address p udp r 711 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 tis the connection timeout in seconds d is the message to be sent for echo 10 The below screenshot shows an example of this command string and the module s response STM32F4DIS BB Embest Technology Co LTD User Manual Page 57 of 90 n Embest Technology Co LTD I http www armkits com iC gt echotool exe 192 168 1 p udp r 7 41 7 n 15 t 2 d Testing Lwip udp ec ho server Hostname 192 168 from from from from from from from from from from from from from from from 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 16 resolved as time time time time 7 OO time time time time time time time time time time time 6 1 6 1 6 1 6 1 6 1 6 1 6 1 6 1 6 1 6 1 6 1 6 1 6 1 6 1 6 1 GGG ii qe Gi 192 168 6 16 OK OK OK OK OK OK OK OK OK OK OK OK OK OK 333333333333372 0000000000000 Stati
9. DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 5 Rebuild all files load project image and then run program 6 After reset LCD displays the IP address of the DevKit407 board STM32F4DIS BB Embest Technology Co LTD User Manual Page 50 of 90 PARA Embest Technology Co LTD http www armkits com STM32F4x7 STM32F 4 Series TCP echo server Demo Static IP address 192 168 0 10 Figure 4 13 LCD display message 7 Onthe PC copy the echotool software to C root directory The echotool software is located in the folder of CD ROM ICodes STM32F4xx Ethernet ExamplelUtilitiesIPC Software 8 On the remote PC open a command prompt window In Windows select Start gt All Programs gt Accessories gt Command Prompt C gt echotool exe IP address p tcp r 7 n 15 t 2 d Testing LwIP TCP 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 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 tis the connection timeout in seconds d is the message to be sent for echo 9 The below screenshot shows an example of this command string and the module response STM32F4DIS BB Embest Technology Co LTD User Manual Page 51 of 90 n Embest Technology Co LTD l http www armkits com
10. Favorites Tools Help we ae stmazrx7 G Gl dh Page G Toos STM32F4x7 Webserver Demo Based on the IwIP TCP IP stack STM32 F 4 Series A new generation on STM32 with significant improvement in features performance v H Y La Internet STMI Releasing your creativity 100 Figure 4 24 Home page of the HTTP server netconn demo Click the List of tasks into task status monitor page of FreeRTOS real time system As shown below STM32F4x7TASKS Windows Internet Explorer Ge yv http 192 168 0 10 STM32F4x7 TASKS html File Edit View Favorites Tools Help k R E stms2F4x7TASKS STM32F4x7 List of tasks and their status Number of page hits 2 114 306 106 Blocked R Ready Deleted 3 Suspended Jet Internet Figure 4 25 List of tasks page of the HTTP server netconn demo gt 10090 v STM32F4DIS BB Embest Technology Co LTD User Manual Page 61 of 90 Ve Enbest ema ETU 4 5 7 FreeRTOS httpserver_socket The HTTP server socket demo shows an implementation of web server application based on the socket API To test this demo please refer to the 4 5 6 FreeRTOS httpserver_netconn 4 5 8 FreeRTOS udptcp_echo_server_netconn 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 4 5 3 S
11. Page 43 of 90 Ve Enbest Teil ETU 4 5 1 Standalone httpserver 1 Description The HTTP server demo shows an implementation of a web server with the following features gt URL parsing support of CGI Common Gateway Interface support of SSI Server Side Includes dynamic Header generation v Vv V WV support of HTTP Post request 2 Software Configuration Ethernet is used in this example Please reference at 3 3 2 PC Network Settings for more details Try to make an external 10K 3 pins vary resistor 1 terminal connects to 3V the other connects to GND and the rest middle pin connects to ADC1 IN3 PA3 CON4 26 3 Steps to Run 1 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 ME 058 define MAC ADDRS O 060 Static IP ADDRESS IP ADDRO IP ADDR1 IP ADDR2 IP ADDR3 e E IP ADDRO 19 define IP ADDR1 168 define IP ADDR2 O 064 Prte ine IP ADDR3 10 Figure 4 3 Configure IP address of DevKit407 You can also uncomment option USE DHCP to enable the DHCP to assign IP addresses dynamically 2 Connect the external 10K 3 pins vary resistor following the above instructions 3 Connect LCD module STM32F4DIS LCD to DevKit407 board through CON3 STM32F4DIS BB Embest Technology Co LTD User Manual Page 44 of 90 4 PAMPA Embest Technology Co LTD http www arm
12. STM32F4DIS BB Embest Technology Co LTD User Manual Page 8 of 90 a Embest Technology Co LTD I http www armkits com Chapter 1 Overview 1 1 Product Introduction The STM32F4DIS BB Base Board from Embest is an expansion board designed especially for STMicroelectronics STM32F4DISCOVERY High Performance Discovery Board which is based on the STM32F407VGT6 ARM Cortex M4 microcontroller and includes an ST LINK V2 embedded debug tool two ST MEMS sensors digital accelerometer and digital microphone one audio DAC with integrated class D speaker driver LEDs push buttons and an USB OTG micro AB connector The STM32F4DIS BB Base Board enables STM32F4DISCOVERY board users to discover more features of the STM32F4 It brings additional functionality to the STF32F4DISCOVERY including serial ports USB Ethernet CAN SPI 12C GPIO Camera TF Card LCD and touch screen interfaces on board The combination of the STM32F4DIS BB and the STM32F4DISCOVERY forms the evaluation board Devkit407 for evaluating the STM32F4xx series ARM Cortex M4 microcontrollers and allows easy prototyping of third party solutions with STM32F4DISCOVERY board or STM32F4xx series microcontrollers Embest has ported Micrium uC OS I to the DevKit407 board and the software also features LwIP v1 3 2 protocol support Embest also offers rich software examples for DevKit407 to complement those provided by the original STM32F4DISCOVERY kit Included in the package is
13. USB connector CN1 to power the board 3 Open the project rebuild all files load project image and then run program 4 Testing actions and results gt Ifthe Erase operation is PASSED then LED3 ON else the LED6 is ON and LED3 is OFF gt If the Single Block Write Read operation is PASSED then LED4 ON else the LED6 is ON and LED4 is OFF gt If the Multi Blocks Write Read operation is PASSED then LED5 ON else the LED6 is ON and LED5 is OFF gt Any SD Card operation including the SD Initialization error is signaled by LED6 ON STM32F4DIS BB Embest Technology Co LTD User Manual Page 38 of 90 VS Entes Technology Oo LTD 4 3 LCD Example The STM32F4xx_LCD_Example folder contains two examples gt LCD 35T gt LCD Touch LCD 35T example project describes how to test LCD module STM32F4DIS LCD on Devkit407 LCD Touch example describes how to precede LCD touch screen calibration In this example four points on the corner of touch screen need to be touch to complete calibration 4 3 1 LCD 35T 1 Description The example is located in the following folder ICodes STM32F4xx LCD ExamplelProject1 LCD 35T 2 Steps to Run 1 Connect LCD module STM32F4DIS LCD to DevKit407 CON3 via LCD cable The red line onside indicates the first pin of LCD cable The triangle onside indicates the first pin of LCD connector 2 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to po
14. a CD containing the uC OS II BSP and plenty of software examples board schematic and user manual to help you better understand this board and develop your own applications To expand the performance of the STM32F4DISCOVERY board Embest also offers the STM32F4DIS CAM 1 3 Mega pixel camera and STM32F4DIS LCD 3 5 LCD modules which interface easily with the STM32F4 BB base board STM32F4DIS BB Embest Technology Co LTD User Manual Page 9 of 90 Zem Entes regen UR 1 2 How to Form DevKit407 STM32F4DIS BB STM32F4DISCOVERY DevKit407 Mount your STM32F4DISCOVERY board to your STM32F4DIS BB board through CON1 and CON to form DevKit407 1 3 Interface of STM32F4DIS BB Figure 1 1 Interface of STM32F4DIS BB STM32F4DIS BB Embest Technology Co LTD User Manual Page 10 of 90 STM32F4DIS BB mg Embest Technology Co L http www armkits com 1 4 Diagram of DevKit407 Devkit407 Sao ELI pa SP3232 tb DB9 Male Up to 5 UARTs LIS302DL gt Pore fl ES DC e TB USB OTGFS j 4CH PWM Remark mi Internal CPU modules ME The chips on board 2 54mm pitch pin connectors Specific function interfaces 6 GPIOs Embest Technology Co LTD User Manual Page 11 of 90 VS Embest Technology Co LI 1 5 Hardware Features Processor e STMicroelectronics STM32F407VGT6 Flash Microcontroller m ARM 32 bit Cortex M4 CPU with ART accelerator frequency up to 168 MHz m On chip 1MB of
15. can skip this step The DFU file is located in following folder Codes STM32F4xx_USB_Example Project USB_Device_Examples DFU binary_te mplate MDK ARM gt In Installation directory of DfuSe Demo V3 0 2 open BIN folder this opens a DfuFileMgr software as shown below STM32F4DIS BB Embest Technology Co LTD User Manual Page 65 of 90 nen Embest Technology Co LTD http www armkits com 3 DFU File Manager Vant to Figure 4 28 DFU file manage gt Click OK this opens a window as shown below K DFU File Manager v3 0 2 Generation Device Images Vendor ID Ox 0483 Product ID Ox 0000 Injection Target ID o 519 or Hex Multi BIN Version Ox 0000 Tange Name me Deletion Delete selected Image Image for Alternate Setting Figure 4 29 Generate DFU file gt Click S19 or Hex button select the file to be upgraded then click generate button to generate DFU file 3 Connect LCD module STM32F4DIS LCD to DevKit407 CON3 via LCD cable 4 Connect the DevKit407 board to a PC with a USB type A Male to Micro AB Male cable through USB connector CN5 5 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 6 Open the project rebuild all files load project image and then run program 7 After reset the LCD displays the following messages STM32F4DIS BB Embes
16. demo is used to test a basic TCP connection In this demo the STM32F4 acts as a TOP client that connects to the TCP server The client sende a string and the server echoes back the same string to the client 2 Software Configuration Ethernet is used in this example Please reference at 3 3 2 PC Network Settings for more details 3 Steps to Run 1 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 define MAC ADDRS O 060 Static IP ADDRESS IP ADDRO IP ADDR1 IP ADDR2 IP ADDR3 fe IP ADDRO IP ADDR1 168 IP_ADDR2 O 064 IP ADDR3 defin Figure 4 8 Configure IP address of DevKit407 You can also uncomment option USE DHCP to enable the DHCP to assign IP addresses dynamically 2 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 define DEST IP ADDRO 065 define DEST IP ADDR1 168 066 define DEST IP ADDR2 O 067 define DEST IP ADDR3 11 069 define DEST PORT 7 Figure 4 9 Configure IP address of remote PC 3 Connect LCD module STM32F4DIS LCD to DevKit407 board through CON3 STM32F4DIS BB Embest Technology Co LTD User Manual Page 47 of 90 4 10 11 PARA Embest Technology Co LTD http www armkits com Connect the DevKit407 board to a PC with a crossover Ethernet cabl
17. to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 5 Open the project rebuild all files load project image and then run program 6 After reset the LCD displays the following messages USB OTG FS HS MSC Devices spend Mode ed USB Device Library Figure 4 35 Cable connected display message 7 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 4 36 MSC device displayed on PC STM32F4DIS BB Embest Technology Co LTD User Manual Page 71 of 90 4 6 3 USB_Device_Examples VCP 1 Description 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 e Onone side the STM32 communicates with host PC through USB interface in Device mode e 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 drive VCP device information is located in usbd_desc c as shown below 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 define define EES USBD_VID 0x0483 USBD_PID 0x5740
18. 2 of 90 Ve Enbest Tengs CD COPYRIGHT E lt gt An elementa Company Discover more Devkit407 DM STF4BB DM LCD35RT DM CAM13 0 are trademarks of Embest Technology Co LTD Lys STM32F407 STM32F4DISCOVERY STM32F4DIS BB STM32F4DIS LCD STM32F4DIS CAM are trademarks of STMicroelectronics elementiu lt gt is trademark of Element14 lt gt Microsoft MS DOS Windows XP are trademarks of Microsoft Corporation Important Notice Embest has the ownership and rights to the use of this document Information in the document is within the protection of copyright Unless specifically allowed no part of this document should be modified issued or copied in any manner or form without prior written approval of Embest Technology Co LTD STM32F4DIS BB Embest Technology Co LTD User Manual Page 3 of 90 Version of update records V1 0 28 Dec 2012 Initial version http www armkits com STM32F4DIS BB Embest Technology Co LTD User Manual Page 4 of 90 Contact If you want to order products from Embest please contact the Marketing Department Tel 86 755 25635656 25636285 Fax 86 755 25616057 E mail market embedinfo com If you need technical assistance from Embest please contact the 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
19. 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 5 I O Interface Table 2 5 I O Interface CON4 Pin Signal Description 1 UART6_TXD UART6_TXD 2 JP1 UART6_TX 3 UART6_RXD UART6_RXD 4 JP2 UART6_RX STM32F4DIS BB Embest Technology Co LTD User Manual Page 20 of 90 L en Embest Technology Co LTD http www armkits com 5 UART1_TXD UART1_TXD 6 UART2_TXD UART2_TXD 7 UART1_RXD UART1_RXD 8 UART2_RXD UART2_RXD 9 GNDI GND 10 GND2 GND 11 UART3_TXD UART3_TXD 12 UART5 TXD UART5 TXD 13 UART3 RXD UART3 RXD 14 UART5 RXD UART5 RXD 15 UART4 TXD UART4 TXD 16 GPIO1 IO 17 UART4_RXD UART4_RXD 18 GPIO2 IO 19 GND3 GND 20 GND4 GND 21 l2C1 SCL l2C1 SCL 22 GPIO3 IO 23 l2C S
20. 42 4 5 ETH LwIP Example iii 44 A 45 4 5 2 Standaloneltcp echo client 48 4 5 3 Standaloneltcp echo eener 51 4 5 4 Standaloneludp echo cet 54 4 5 5 Standaloneludp echo eener 57 4 5 6 FreeRTOS httpserver Netconn uimmimmmmmmunvnkvnhbvebeubeksbnbebi cla 60 4 5 7 FreeRTOS httpserver_socket minus aaa 63 4 5 8 FreeRTOS udptcp echo server neiconn ooococcnoccccocccononcnonncnnnnncnnnnnnnonnnnos 63 Ae 64 4 6 1 USB_Device_Examples DFU rrrnnrernnrnnrnnvnnrnrverrnrnrrrnverrnnnerrnnnerrnnerrnnnernn 65 4 6 2 USB Device ExamplesiMSG rrrnnrrrnnrnnrnrnrrnrvrrrnrnnrnnrenrnnnerrnnnrrrrnerrnnnernn 71 4 6 3 USB_Device_Examples VCP ccccccccceceseceeeeeeseneeeeeeeeeeneeesseeesssessnees 73 4 6 4 USB Host ExamplesWHID cccccccccccceeeeeeeeeeeeeeeeesseeeeeeeesseeesseensnees 78 4 6 5 USB Host Examples MSC srana SEENEN 81 ChapterS Applications Examplesmsum mmmnminsnmitmiinivmistsunismiiniv itj 85 5 1 STM32F4xx uCOSII Example r e E A 85 5 2 STG FPU E El 86 Chapter 6 Other Test Scenarios iia 87 Bal USART TESNO E 87 STM32F4DIS BB Embest Technology Co LTD User Manual Page 7 of 90 des Entes regen UR Re a sae ese eee eet et EEE E 87 6 4 DOMI Testing EE ea eee AA AA eee eee aren 87 6 5 Ethernet Testing a toba 87 ME NN 87 Technical Support amp Warranty SERVICE 88 Technical Support SEryiCE sssini a 88 Maintenance Service ClaUS cancion ci 89 Basic Notice for Protecting LOD Sereen siii 90 ve o RAM A 90
21. 6 PC10 SDIO_D2 MicroSD Audio 1253_SCK UART4_TX UART4 PC12 SDIO_CK MicroSD 1253_SD UART5_TX UART5 1253_WS PA4 DCMI_HSYNC Camera Audio_RST PD4 LCD_RD LCD STM32F4DIS BB Embest Technology Co LTD User Manual Page 24 of 90 ren Embest Technology Co LTD http www armkits com PDM OUT PC3 SPI2_MOSI SPI2 LED4 PD12 Camera_RST Camera LED3 PD13 LCD_PWM LED LED5 PD14 LCD DO LCD LED6 PD15 LCD Di SPI1_SCK PA5 PA5 GPIO6 SPI1_CS PE3 ETH_RST Ethernet SPI1_MOSI PA7 ETH RMII CRS D MEMS V SPI1 MISO DAG DCMI_PIXCLK MEMS INT1 PEO DCMI D2 Camera MEMS_INT2 PE1 DCMI_ D3 Table 2 8 Pin multiplexing of CON4 extension port and STM32F4DIS BB Multiplexing Multiplexing Discovery GPIO STM32F4DIS BB Function 1 Function2 CAN1 RX PDO LCD_D2 CAN1 LCD CAN1_TX PD1 LCD_D3 TXD1 PB6 DCMI_D5 UART1 Camera RXD1 PB7 DCMI_VSYNC TXD2 PD5 LCD WR LCD UART2 RXD2 PD6 Camera_PWR_EN Camera TXD3 PD8 LCD_D13 UART3 LCD RXD3 PD9 LCD D14 TXD4 PC10 SDIO D2 UART4 RXD4 PC11 SDIO_D3 MicroSD TXD5 PC12 SDIO_CK UART5 RXD5 PD2 SDIO_CMD STM32F4DIS BB Embest Technology Co LTD User Manual Page 25 of 90 Leg Embest Technology Co L TXD6 http www armkits com PC6 DCMI_DO UART6 Camera RXD6 PC7 DCMI_D1 2 4 Hardware Dimensions The hardware dimensions of STM32F4DIS BB Unit mm 83 00
22. BD PID 0x5720 053 054 define USBD LANGID STRING 0x409 055 define USBD MANUFACTURER STRING STMicroelectronics 056 057 058 define USED PRODUCT HS STRING Mass Storage in HS Mode 059 define USBD SERIALNUMBER HS STRING 000000000014 060 define USED PRODUCT FS STRING Mass Storage in FS Mode 061 define USBD SERIALNUMBER FS STRING 00000000001B 062 define USBD CONFIGURATION HS STRING MSC Config 063 define USBD INTERFACE HS STRING MSC Interface 064 define USBD CONFIGURATION F5 STRING MSC Config 065 define USBD INTERFACE FS STRING MSC Interface PN daska Figure 4 34 USB MSC device information 2 Hardware Configuration A USB A type Male to Micro AB Male cable is needed in this example A MicroSD card is needed in this example and Kingston 1GB 2GB or SanDisk 2GB MicroSD Card is recommended The card should be formatted before used Note Kingston 1GB 2GB and SanDisk 2GB MicroSD Card have been tested on DevKit407 It s not guaranteed that all kind of MicroSD card work well on the board 3 Steps to Run 1 Insert the MicroSD card into MicroSD slot CON6 2 Connect LCD module STM32F4DIS LCD to DevKit407 CON3 via LCD cable STM32F4DIS BB Embest Technology Co LTD User Manual Page 70 of 90 PAMPA Embest Technology Co LTD http www armkits com 3 Connect the DevKit407 board to a PC with a USB type A Male to Micro AB Male cable through USB connector CN5 4 Connect the DevKit407 board
23. DA l2C SDA 24 GPIO4 IO 25 CAN1_RX CAN1_RX 26 GPIO5 IO 27 CAN1_TX CAN1_TX 28 GPIO6 IO 29 GND5 GND 30 GND6 GND 31 TIM3_CH1 TIM3_CH1 32 SPI1 NSS SPI1 NSS STM32F4DIS BB Embest Technology Co LTD User Manual Page 21 of 90 P Embest Technology Co LTD http www armkits com 33 TIM3 CH1 TIM3 CH1 34 SPI1 SCK SPI1 SCK 35 TIM3 CH1 TIM3_CH1 36 SPI1 MISO SPI1 MISO 37 TIM3 CH1 TIM3 CH1 38 SPI1 MOSI SPI1 MOSI 39 VDD5V 5 V 40 VDD3V 3 V 2 2 6 Camera Interface Table 2 6 Camera Interface CON7 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 STM32F4DIS BB Embest Technology Co LTD User Manual Page 22 of 90 ren Embest Technology Co LTD 1 http www armkits com 16 GND3 GND 17 HS Horizontal synchronization 18 VDD50 NC 19 VS Vertical synchronization 20 VDD33 3 3 V 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
24. DP echo client Demo Static IP address 192 168 0 10 Figure 4 17 LCD display message 8 On the PC copy the echotool software to C root directory The echotool software is located in the folder of CD ROM ICodes STM32F4xx Ethernet ExamplelUtilitiesIPC Software 9 On the remote PC open a command prompt window In Windows select Start gt All Programs gt Accessories gt Command Prompt 10 At the command prompt enter C gt echotool p udp s where p udp is the protocol UDP protocol s is the actual mode of connection Server mode 11 When the USER1 button on the DevKit407 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 STM32F4DIS BB Embest Technology Co LTD User Manual Page 54 of 90 PAMPA Embest Technology Co LTD exe echotoo C NJechotool exe p udp s Waiting for UDP conncetion on port 7 18 67 26 18 07 21 48 07 21 18 07 24 18 07 24 from from from from from from from from from from from from from from from from from from from from from STM32F4DIS BB 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 192 168 8 18 4896 received sending 0 10 4169 received sending 0 10 4169 received sen
25. Embest Technology Co LTD H http www armkits com Connect To PB vcp com3 Enter details for the phone number that you vvant to dial Country region Area code i Phone number Connect using Figure 4 41 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 COM3 Properties Part Settings Bits per second 1115200 Data bits Parity Stop bits Flow control Restore Defaults Figure 4 42 VCP port settings 9 Configure com port that connected to DevKit407 board in the same way STM32F4DIS BB Embest Technology Co LTD User Manual Page 75 of 90 r e Embest Technology Co LTD 10 Communication test Try sending some characters with the HyperTerminal of virtual http www armkits com serial port the other HyperTerminal COM3 will receive these characters VCP COM3 HyperTerminal DER True COM2 HyperTerminal BA Fie Edit View Call Transfer Help ile Edit View Call Transfer Help D 3 DAB E I 33 NO E VCP COM3 to True C0M2_ Connected 0 02 08 Auto detect 1152008 N 1 3 0 Connected 0 02 16 Auto detect 115200 8 N 1 Figure 4 43 Message from VCP COM to True COM Both the two HyperTerminals can send or r
26. Flash memory and 192 4KB 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 mux ed 12S m 8 to 14 bit parallel camera interface up to 48MB s m 1 4 8 bit SD MMC SDIO interface supports up to 32GB storage m Up to 140 I O ports up to 84 MHz m Up to 17 timers two 32 bit timers up to 168 MHz m 3 x 12 bit A D converters 2 x 12 bit D A converters E Analog true random number generator m Low power supports Sleep Stop and Standby modes m Supports booting from Flash System memory or SRAM m Supports ISP and IAP programming External Memory e Micro SD card slot MEMS accelerometer e LIS302DL ST MEMS motion sensor 3 axis digital output accelerometer Audio interfaces e 12S Audio DAG stereo audio jack for headset STM32F4DIS BB Embest Technology Co LTD User Manual Page 12 of 90 rem Embest Technology Co LTD http www armkits com e MP45DT02 ST MEMS audio sensor omnidirectional digital microphone Camera Interface e 1xcamera interface LCD Touch Screen e 3 5 inch TFT color LCD 240 x 320 pixel RGB resolution 262000 colors 16 bit 8080 parallel interface brightness control via PWM e 4 wire resistive touch screen Data Transfer Interfaces e 1x5 wire
27. M32F4xx_USART_Example folder contains one example gt USART_Printf USART Printf 1 Purpose This example shows how to retarget the C library printf function to the USART The implementation output the printf message on the HyperTerminal using USARTE 2 Description The example is located in the following folder Codes STM32F4xx_USART_Example Project USART_Printf 3 Software Configuration HyperTerminal is used in this example Please refer to 3 3 1 HyperTerminal Connection for more details 4 Steps to run 1 Connect a null modem female female RS232 cable between the DB9 connector COM1 USART6 and PC serial port 2 Make sure that jumpers JP1 and JP2 are fitted 3 Open hyperterminal on PC 4 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 5 Open the project rebuild all files load project image and then run program 6 Testing actions and results gt After reset then see the serial terminal it should be like this USART Printf Example retarget the C library printf function to the USART STM32F4DIS BB Embest Technology Co LTD User Manual Page 35 of 90 ren Embest Technology Co LTD http www armkits com gt Type a character on the keyboard then the HyperTerminal displays the received character on the screen 4 2 SDIO Example The STM32F4xx_SDIO_Example folder contains two examples gt Faits gt uSDCa
28. P Settings lal IP Settings DNS WINS Options IP addresses IP address Subnet mask 192 192 192 116 255 255 255 0 Default gateways Gateway Metric 192 192 192 101 Automatic Automatic metric Interface metric Figure 3 9 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 11 Subnet mask 255 255 255 0 A E Gateway Metric 192 192 192 101 Automatic Automatic metric nterface metric Figure 3 10 Add TCP IP address 6 Click OK to finish network setup STM32F4DIS BB Embest Technology Co LTD User Manual Page 33 of 90 r ere Embest Technology Co LTD http www armkits com Advanced TCPAP Settings IP Settings DNS WINS Options IP addresses 192 192 192 116 255 255 255 0 255 255 255 0 Default gateways Gateway 192192192101 Metric Automatic terface n Automatic metric etric EN Figure 3 11 TCP IP address successfully setup STM32F4DIS BB Embest Technology Co LTD User Manual Page 34 of 90 a Embest Technology Co LTD Chapter 4 Peripherals Examples 4 1 USART Example The ST
29. RS232 Serial Port e 1x USB2 0 OTG Device Host Full speed up to12Mbit s e 1x10 100 Ethernet with IEE 1588v2 RJ45 connector Programming and Debugging Interface e On board ST LINK V2 with selection mode switch to use the kit as a standalone ST LINK V2 with SWD connector for programming and debugging UO Interface e 5x3 wire TTL UART e 1x4 channel PWM e 1xSPI DC CAN e 6GPIOs All the I Os are extended by extension connectors Board Power Supply e Through USB bus or from an external 5 V supply voltage e External application power supply 3 V and 5 V Mechanical Parameters Power consumption 180 mA 5 V without LCD module e Storage and Working Temp 0 C 45 C Humidity Range 2096 90 e CE and RoHS compliant STM32F4DIS BB Embest Technology Co LTD User Manual Page 13 of 90 VS Embest Technology Co LI 1 6 ESD Precautions and Proper Handling Procedures Please note that the board comes without any case box and all components are exposed Therefore extra attention must be paid to ESD electrostatic discharge precautions To effectively prevent electrostatic damage please follow the steps below e Avoid carpets in cool dry areas Leave development kits in their A anti static packaging until ready to be installed A e Dissipate static electricity before handling any system components Atas development kits by touching a grounded metal object such as the system unit unpainted metal chassis e f possible use anti
30. STM32F4DIS BB Embest Technology Co LTD User Manual Page 59 of 90 PAMPA Embest Technology Co LTD k http www armkits com define MAC ADDRS O he IP ADDRO 19 Kees IP_ADDR1 168 ine IP_ADDR2 O 064 ine IP ADDR3 10 Figure 4 22 Configure IP address of DevKit407 060 Pavan IP ADDRESS IP ADDRO IP ADDR1 IP ADDR2 IP_ADDR3 You can also uncomment option USE DHCP to enable the DHCP to assign IP addresses dynamically 2 Connect LCD module STM32F4DIS LCD to DevKit407 board through CON3 3 Connect the DevKit407 board to a PC with a crossover Ethernet cable through RJ45 connector J1 4 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 5 Rebuild all files load project image and then run program 6 After reset LCD displays the IP address of the DevKit407 board STM32F4x7 5 I M32F 4 Series Basic Webaserver Demo Static IP address 192 168 0 10 Figure 4 23 LCD display message 7 On the remote PC open a web client Mozilla Firefox or Internet Explorer and type the board s IP address in a web browser The default IP address is 192 168 0 10 STM32F4DIS BB Embest Technology Co LTD User Manual Page 60 of 90 ren Embest Technology Co LTD http www armkits com STM32F4x7 Windows Internet Explorer DS O O http 192 168 0 10 9 4 x Live search Ief Fie Edit View
31. STM32F4DIS BB User Manual Discover more help to discover more yy elementiu P mbes An element14 Company STM32F4DIS BB Embest Technology Co LTD User Manual REV 1 0 Zem Enbest Tandag co LTD STM32F4DIS BB Base Board Base Board for STM32F4DISCOVERY High Performance Discovery Board Extended peripherals including UART Ethernet CAN Camera LCD TF SPI 12C Supports optional 3 5 LCD module and 1 3 Megapixel digital camera module e Supports FatFs vR0 08a File System Used for TF card e Supports LwIP v1 3 2 Protocol Stack Supports Micrium uC OS Il v2 91 MO a gt s 9 U a tow STM32F4DIS BB Embest Technology Co LTD User Manual Page 1 of 90 rem Embest Technology Co LTD http www armkits com Declaration element14 Embest and ST have launched the STM32F4DIS BB a low cost development platform based on STM32F4DISCOVERY The platform also supports two modules STM32F4DIS LCD STM32F4DIS CAM Glossary Term Meaning STM32F4DIS BB DM STF4BB the Base Board for the STM32F4DISCOVERY STM32F4DIS LCD DM LCD35RT the LCD module for the STM32F4DIS BB STM32F4DIS CAM DM CAM130 the Camera module for the STM32F4DIS BB Devkit407 STM32F4DIS BB and STM32F4DISCOVERY STM32F4DIS BB STM32F4DIS LCD STM32F4DIS CAM are the ST part numbers DM STF4BB DM LCD35RT DM CAM1 30 are the Embest part numbers STM32F4DIS BB Embest Technology Co LTD User Manual Page
32. TM32F4DIS BB Embest Technology Co LTD User Manual Page 84 of 90 L Embest Technology Co LTD http www armkits com 5 2 STM32F4xx_FPU_FFT_Example 1 Description This example shows how to use the Cortex M4 s FPU unit This example demonstrates the calculation of the maximum energy bin in the frequency domain of the input signal with the use of Complex FFT Complex Magnitude and Maximum functions The MDK project of this example is located in the following folder Codes STM32F4xx_FPU_FFT_Example Project FPU_FFT_Example MDK ARM 2 Steps to Run 1 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 2 Open the project rebuild all files load project image and then run program 3 Testing actions and results gt If the demon run ok the LED6 will turn on otherwise the LED3 Will turn on STM32F4DIS BB Embest Technology Co LTD User Manual Page 85 of 90 Lan Embest Technology Co LTD Chapter 6 Other Test Scenarios This Chapter gives a short description about how to test the DevKit407 peripheral 6 1 USART Testing Please reference at 4 1 USART Example 6 2 SDIO Testing Please reference at 4 2 SDIO Example 6 3 LCD Testing Please reference at 4 3 LCD Example 6 4 DCMI Testing Please reference at 4 4 DCMI Example 6 5 Ethernet Testing Please reference at 4 5 ETH_LwIP Example 6 6 USB Testing Please referenc
33. Taining Road Shenzhen Guangdong China 518020 STM32F4DIS BB Embest Technology Co LTD User Manual Page 5 of 90 ren Embest Technology Co LTD gt http www armkits com Contents STM32F4DIS BB User Manual narco nun creaba ici 1 CGhapter E OVE AYILA scsi ica NA AP NP APA 10 1 1 Product Introductio Msisi iia aaa aa iii 10 E E a aaa 11 1 3 Interface of HME EE 11 A Diagram Ne DEV AE 12 1 5 Hardware Features 13 1 6 ESD Precautions and Proper Handling Procedures kk 15 ci eege 15 Gh pter2 Hardware System nin cinco eee 17 O A A E 17 ee Enn 18 22 ET Vo AA AA E E 18 22 2 Ethernet InteMaco EE a e 18 2 2 3 MicroSD Card ln 19 2 24 TFT LCD Interface AA naa ead pre tee te tie 20 2 2 5 VO Imeria CE 2 Fe Se ath aha nd ae AA AA 21 2 2 6 Camera Interface AA ANA EE 23 2 3 Pin Multipl xingaasaaaa ata 24 2 4 Hardware Dimensions rrnvrnrnnvrnrnvnnnnnnnnrnrnnnrnvnnnnnnnnrnnnnnrnrnnnnnennrnvnnnrnnnnsnnennrnvenennn 27 Chapter 38 Development Environment museum 28 3 1 Hardwares Environment sie AA AA AA 28 3 2 Software Environment E 28 3 9 PC Environment ee 29 3 3 1 HyperTerminal NM ae 29 3 3 2 PC Network Settings ee 32 Ghapter4 Peripherals Examples coi 36 STM32F4DIS BB Embest Technology Co LTD User Manual Page 6 of 90 L Embest Technology Co LTD http www armkits com 41 USART Example 0 ti 36 ESB ere 37 e WEE 37 4 22 IDE AA 39 UDE PN 40 43 Nep EE 40 43 2 L D TOUCH EE 41 4 4 DCMI Example A
34. Terminal Find the HyperTerminal as shown below d Internet MyD ts internet Explorer Ciel Express EF namamasa Program Compatibilty Wizard Set Program Access and Defaults Ga Remote Desktop Connection fa Notepad EO alang Y synchronize D Windows Update 3 Windows Explorer WordPad a Network Connections Network Setup Wizard 5 New Connection Wizard e HyperTerminal Wireless Network Setup Wizard d EH HyperTerminal I Accessibility Wizard OG Wizard All Programs Figure 3 1 Create a new HyperTerminal 2 Create a new HyperTerminal connection enter a name and choose an icon STM32F4DIS BB Embest Technology Co LTD User Manual Page 28 of 90 Ve Enbest ema ETU Connection Description S Enter a name and choose an icon for the connection Name Embest sozeur Cae Figure 3 2 Description for new connection 3 Select the specific serial port from the list as per your computer COM port configuration Connect To Bier Enter details for the phone number that you want to dial Country region Area code Phone number Connect using 9800 Figure 3 3 Select a COM port for connection 4 Set parameters for serial port connection as follows STM32F4DIS BB Embest Technology Co LTD User Manual Page 29 of 90 ren Embest Technology Co LTD COM2 Properties http www armkits com Port Settings Bits per second 115200 Da
35. WARM STM32F4DIS BB Embest Technology Co LTD User Manual Page 15 of 90 a Embest Technology Co LTD Chapter 2 Hardware System 2 1 CPU CPU Instruction This ARM Cortex M4 32 bit MCU with FPU has 210 DMIPS up to 1 MB Flash 192 4 KB RAM USB OTG HS FS Ethernet 17 TIMs 3 ADCs 15 comm interfaces and a camera Features 168 MHz 210 DMIPS Cortex M4 with single cycle DSP MAC and floating point unit providing m Boosted execution of control algorithms m More features possible for your applications m Ease of use m Better code efficiency m Faster time to market m Elimination of scaling and saturation m Easier support for meta language tools Designed for high performance and ultra fast data transfers ART Accelerator 32 bit 7 layer AHB bus matrix with 7 masters and 8 slaves including 2 blocks of SRAM Multi DMA controllers 2 general purpose 1 for USB HS 1 for Ethernet One SRAM block dedicated to the core providing performance equivalent to 0 wait execution from Flash concurrent execution and data transfers and simplified resource allocation Outstanding power efficiency Ultra low dynamic power RTC lt 1 A typical in VBAT mode 3 6 V down to 1 7 V VDD Voltage regulator with power scaling capability providing extra flexibility to reduce power consumption for applications requiring both high processing and low power performance when running at low voltage or on a rechargeable battery STM32F4DIS BB Embest Tech
36. 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 STM32F4DIS BB Embest Technology Co LTD User Manual Page 88 of 90 ren Embest Technology Co LTD 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 3 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 4 When the board needs repair please contact technical support department Note Those products are returned without the permission of our technician we will not take any responsibility for them Basic Notice for Protecting LCD Screen 1 Do not use finger nails or hard sharp objects to touch the surface of the LCD otherwise the above services will be void 2 Embest recommend user to purchase a screen wipe to wipe the LCD af
37. ash disk content and the LCD displays the following messages gt File System initialized gt Disk cappacity 19995653 gt Exploring disk flash Directory Le Directory 2 file 1 file 2 Directoryd y3 Figure 4 49 USB mass storage explorer display message Note The contents circled by red color depend on the USB device that plugged in 8 User has to press the User button to display the whole disk recursion level 2 Below is a screenshot when the entire flash disk is shown STM32F4DIS BB Embest Technology Co LTD Page 81 of 90 User Manual Directory fileb Figure 4 50 USB mass storage explorer display message last screen 9 The user has to press the User button to write a small file e g Host Write Demo txt less to 1 KB on the disk Directory fileb file file8 gt Writing file to disk flas gt Host Write Demo TXT file created Figure 4 51 USB mass storage write file display message 10 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 e Width 320 e Height 240 STM32F4DIS BB Embest Technology Co LTD User Manual Page 82 of 90 Ve Enbest Tengs Ca O BPP 16 e Compression RGB bitmap with RGB masks Press the User button to start the Image BMP file for testing slide show USB OTG FS HS MSC Host
38. board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 4 Open the project rebuild all files load project image and then run program 5 After reset the LCD displays the following messages STM32F4DIS BB Embest Technology Co LTD User Manual Page 77 of 90 gt USB Host library started gt Device Atta gt Low speed device detected VID AF2Fh MID 0616h gt HID device connected Manufacturer MA Praduct USB Optical Mouse Serial NUrriber MA gt Enumeration completed Figure 4 45 USB HID Host connected display message 6 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 4 46 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 STM32F4DIS BB Embest Technology Co LTD User Manual Page 78 of 90 n Embest Technology Co LTD http www armkits com USB OTG FS HS HID Host Product USB Optical Mouse Serial Number MA gt Enumeration completed gt HID Demo Device Mouse USB Host Library v gt Figure 4 47 USB HID Host user key pressed STM32F4DIS BB Embest Technology Co LTD User Manual Page 79 of 90 L Embest Technology Co LTD
39. d project image and then run program 6 When the program is running images collected by the module is shown on LCD Press User button to take a photograph The photograph will be stored into MICROSD card automatically and named as PICxx BMP xx is picture s number BMP is picture s format STM32F4DIS BB Embest Technology Co LTD User Manual Page 42 of 90 a Embest Technology Co LTD http www armkits com 4 5 ETH LwIP Example STM32F4xx Ethernet Example folder contains Standalone and FreeRTOS subfolders For Standalone demonstrations LwIP v1 3 2 is used as the TCP IP stack For FreeRTOS demonstrations LwIP v1 3 2 is used as the TCP IP stack and FreeRTOS v6 1 0 is used as the Real Time Kernel Standalone Examples There are five examples in Standalone subfolder httpserver tcp_echo_client tcp_echo_server udp_echo_client Vv Vv Y V WV udp_echo_server Httpserver example shows how to implement a web server application for STM32F4x7 devices Tcp echo client example shows how to implement a TCP echo client demonstration for STM32F4x7 devices Tcp_echo_server example shows how to implement a TCP echo server demonstration for STM32F 4x7 devices Udp_echo_client example shows how to implement a UDP echo client demonstration for STM32F4x7 devices Udp_echo_server example shows how to implement a UDP echo server demonstration for STM32F4x7 devices STM32F4DIS BB Embest Technology Co LTD User Manual
40. ding 8 18 4108 received sending 0 10 4166 received sending 0 10 4169 received sending 9 16 4166 received sending 9 16 4166 received sending 9 16 4166 received sending 0 10 4168 received sending 9 16 4166 received sending 9 16 4166 received sending 0 10 4100 received sending 6 16 4166 received sending 9 16 4166 received sending 0 10 4108 received sending 0 10 4108 received sending 9 10 4166 received sending 6 16 4108 received sending 9 16 4166 received sending 0 10 4169 received sending Press any key to exit udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client udp client Figure 4 18 UDP echo client demo messxge mesSage message message message nessage message message message message message message message message message hessage message message message message message Embest Technology Co LTD User Manual Page 55 of 90 Ve Enbest ema ETU 4 5 5 Standaloneludp echo server 1 Description 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 2 Software Configuration Ethernet is used in this example Please reference at 3 3 2 PC Network Settings for more details 3 Steps to Run 1 Configu
41. e 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 Bn eee 058 define MAC_ADDRS D 060 Static IP ADDRESS IP _ADDRO IP_ADDR1 IP_ADDR2 IP_ADDR3 Go he IP_ADDRO 19 define IP_ADDR1 168 define IP_ADDR2 O Frte ine IP ADDR3 10 Figure 4 15 Configure IP address of DevKit407 You can also uncomment option USE DHCP to enable the DHCP to assign IP addresses dynamically 2 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 A main c 064 define DEST_IP_ADDRO 192 065 define DEST_IP_ADDR1 168 066 define DEST IP ADDRZ O 067 define DEST_IP_ADDR3 11 068 069 define DEST PORT 7 nn Figure 4 16 Configure IP address of remote PC 3 Connect LCD module STM32F4DIS LCD to DevKit407 board through CON3 4 Connect the DevKit407 board to a PC with a crossover Ethernet cable through RJ45 STM32F4DIS BB Embest Technology Co LTD User Manual Page 53 of 90 PAMPA Embest Technology Co LTD http www armkits com connector J1 5 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 6 Rebuild all files load project image and then run program 7 After reset LCD displays the IP address of the DevKit407 board STM32F4x7 STM32F 4 Series U
42. e at 4 6 USB Example STM32F4DIS BB Embest Technology Co LTD User Manual Page 86 of 90 L Embest Technology Co LTD http www armkits com Technical Support 8 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 the best quality and service The content below is important information for our products technical support and warranty service Technical support service Embest provides one year free technical support service for all products Technical support service covers e Embest embedded platform products software hardware materials e Assist customers in compiling and running the source code we offer e Assist in troubleshooting on our embedded software hardware platforms given that the customer has followed the documentation tha
43. e following items El Client for Microsoft Networks El VirtualBox Bridged Networking Driver rie and Printer Sharing for Microsoft Networks Description Transmission Control Protocoldnternet 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 3 7 Local Area Connection Properties 3 Double click TCP IP Options opens a window for TCP IP Properties as shown below Internet Protocol TCP IP Properties General 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 O Obtain an IP address automatically 10 Use the following IP address IP address 192 192 Subnet mask 255 255 Default gateway 192 192 e Obtain DNS server address automatically O Use the following DNS server addresses Preferred DNS server 202 95 Alternate DNS server 202 95 Em Figure 3 8 TCP IP Options 4 Click the Advanced option open a window for Advanced TCP IP settings as shown below STM32F4DIS BB Embest Technology Co LTD User Manual Page 32 of 90 r e Embest Technology Co LTD http www armkits com Advanced TCPJI
44. e through RJ45 connector J1 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board Rebuild all files load project image and then run program After reset LCD displays the IP address of the DevKit407 board STM32F4x7 STM32F 4 Series TCP echo client Demo Static IP address 192 168 0 10 Figure 4 10 LCD display message On the remote PC copy the echotool software to C root directory The echotool software is located in the folder of CD ROM ICodes STM32F4xx Ethernet ExamplelUtilitiesIPC Software On the PC open a command prompt window In Windows select Start gt All Programs gt Accessories gt Command Prompt At the command prompt enter C l gt echotool p tcp s Where p tcp is the TCP protocol TCP protocol s is the actual mode of connection Server mode When the USER1 button on the DevKit407 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 STM32F4DIS BB Embest Technology Co LTD User Manual Page 48 of 90 de Embest Technology Co LTD WINDO S system32 cmd exe echotool exe p tcp s A C NJechotool exe p tcp s Waiting for TCP connection on port 7 Press any key to exit Client 192 168 0 10 4097 accepted at 14 59 19 14 59 19 received sending tcp client m
45. e with number 2 STM32F4DIS BB Embest Technology Co LTD User Manual Page 67 of 90 nen Embest Technology Co LTD 4 http www armkits com There is a DFU file for USB DFU testing purpose at the folder location ICodes STM32F4xx USB ExamplelProjectl USB Device ExamplesIDFUlbinary te mplate MDK ARM DfuSe Demo v3 0 2 Available DFU and compatible HID Devices STM Device in DFU Mode St E supports Upload Supports Download Can Detach Application Mode Vendor ID CI Manifestation tolerant CI Accelerated Upload ST Procuct ID Version ach Leave DFU mode Actions Select Target s a Eemer 12 sectors Upload Action File Choose load Transferred data size pkt i eke IV Verify after download l F Optimize Upgrade duration E File correctly loaded Operation duration 00 00 00 zn Figure 4 32 Upgrade DFU file GE DEU Mode Vendor ID 0483 Procuct ID DF1 1 Version 0200 actors Double Click for more paye some FFs Verify Dut 11 In order to update the firmware click Upgrade button to start the firmware update Once completed a message will appear to indicate upgrade is 12 After reset MCU run in the new firmware Reset MCU while the User button is pushed the MCU run the downloaded in step 11 To go back to the DFU example you have to reset the device or software reset successful or not example that
46. eceive data As shown below YCP COM3 HyperTerminal True COM2 HyperTerminal File Edit View Call Transfer Help Dae 938 28 True COM2 to YCP COM3_ VCP COM3 to True COM2 Connected 0 02 58 Auto detect 115200 8 N 1 3 Connected 0 03 07 Auto detect 115200 8 N 1 Figure 4 44 Message from True COM to VCP COM STM32F4DIS BB Embest Technology Co LTD User Manual Page 76 of 90 L Embest Technology Co LTD http www armkits com USB_Host_Examples There are two examples in USB_Host_Examples subfolder gt HID gt MSC HID example provides a description of how to use the USB OTG host peripheral on the STM32F2xx STM32F4xx and STM32F105 7 devices MSC example provides a description of how to use the USB OTG host peripheral on the STM32F2xx STM32F4xx and STM32F105 7 devices 4 6 4 USB_Host_Examples HID 1 Description When an USB Device is attached to the Host port the device is enumerated and checked whether it can support HID device or not if the attached device supports HID upon pressing the User button the mouse or the keyboard application will be launched 2 Hardware Configuration A mouse and a USB type A Female to Micro AB Male cable are needed in this example 3 Steps to Run 1 Connect LCD module STM32F4DIS LCD to DevKit407 CON3 via LCD cable 2 Connect the DevKit407 board to a mouse with a USB type A Female to Micro AB Male cable through USB connector CN5 3 Connect the DevKit407
47. en Both ADC values and coordinate values are displayed 4 4 DCMI Example The STM32F4xx Camera Example folder contains one example gt OV9655 Camera 1 Purpose OV9655 Camera example shows how to use the DCMI to control the OV9655 Camera module STM32F4DIS CAM connected with Devkit407 board 2 Description The example is located in the following folder ICodes STM32F4xx Camera ExamplelProject1t0V9655 Camera 3 Hardware Configuration A Camera module STM32F4DIS CAM is needed in this example options module for DevKit407 A MicroSD card is needed in this example and Kingston 1GB 2GB or SanDisk 2GB MicroSD Card is recommended The card should be formatted before used Note Kingston 1GB 2GB and SanDisk 2GB MicroSD Card have been tested on DevKit407 It s not guaranteed that all kind of MicroSD card work well on the board 4 Steps to Run 1 Connect STM32F4DIS CAM CON T1 to DevKit407 CON7 via FFC soft cable when the STM32F4DIS BB Embest Technology Co LTD User Manual Page 41 of 90 power is turned off Please make sure that STM32F4DIS CAM module is mounted correctly Note Make sure that JP1 and JP2 are not fitted 2 Insert a MicroSD card into MicroSD slot CON6 3 Connect LCD module STM32F4DIS LCD to DevKit407 board through CON3 4 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 5 Open the MDK project rebuild all files loa
48. essage 81 Session closed by peer Maiting for TCP connection on port 7 Press any key to exit Client 192 168 0 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 4 11 TCP echo client demo STM32F4DIS BB Embest Technology Co LTD User Manual Page 49 of 90 Ve Enbest ema CD 4 5 3 Standalone tcp_echo_ server 1 Description This demo is used to test a basic TCP connection In this demo the STM32F4 acts as a TOP server that waits for client reguests It simply echoes back whatever is sent 2 Software Configuration Ethernet is used in this example Please reference at 3 3 2 PC Network Settings for more details 3 Steps to Run 1 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 NETU Aren 058 define MAC ADDRS O 060 Static IP ADDRESS IP ADDRO IP ADDR1 IP ADDR2 IP ADDR3 det IP ADDRO 19 define IP ADDR1 168 define IP ADDR2 O 064 Puesie IP ADDR3 10 Figure 4 12 Configure IP address of DevKit407 You can also uncomment option USE DHCP to enable the DHCP to assign IP addresses dynamically 2 Connect LCD module STM32F4DIS LCD to DevKit407 board through CON3 3 Connect the DevKit407 board to a PC with a crossover Ethernet cable through RJ45 connector J1 4 Connect the
49. evKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board Open the project rebuild all files load project image and then run program Testing actions and results gt After reset then see the serial terminal it should be like this Debug Module Init Open a test file message txt Type the file content hello world Close the file Create a new file hello txt Write a text data hello txt 14 bytes written Close the file read the file hello txt Type the file content hello txt Hello world Close the file hello txt Open root directory Directory listing 14 HELLO TXT 12 MESSAGE TXT STM32F4DIS BB Embest Technology Co LTD User Manual Page 37 of 90 a Embest Technology Co LTD http www armkits com Test completed 4 2 2 uSDCard 1 Description The example is located in the following folder Codes STM32F4xx_SDIO_Example Project uSDCard 2 Hardware Configuration A MicroSD card is needed in this example and Kingston 1GB 2GB or SanDisk 2GB MicroSD Card is recommended The card should be formatted before used Note Kingston 1GB 2GB and SanDisk 2GB MicroSD Card have been tested on DevKit407 It s not guaranteed that all kind of MicroSD card work well on the board 3 Steps to Run 1 Insert the MicroSD card into MicroSD slot CON6 2 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through
50. gh USB connector CN5 4 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 5 Open the project rebuild all files load project image and then run program 6 After reset the LCD displays the following messages STM32F4DIS BB Embest Technology Co LTD User Manual Page 73 of 90 n Embest Technology Co LTD USB OTG FS HS VCP Devices SB device librar SB D i USB Device Librar Figure 4 39 USB VCP device cable connected display message 7 USB device DevKit407 is enumerated as serial communication port i http www armkits com BB Network adapters 2 7 Ports COM amp LPT y Communications Port COM1 EI Communications Port COM2 ECP Printer Port LPTI S R Processors amp SCSI and RAID controllers 0 Sound video and game controllers System devices Universal Serial Bus controllers Figure 4 40 DevKit407 have been enumerated as VCP device 8 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 STM32F4DIS BB Embest Technology Co LTD User Manual Page 74 of 90 ren
51. http www armkits com 4 6 5 USB_Host_Examples MSC 1 Description The STM32F4 behave as a mass storage Host that can enumerate show content and display the supported BMP image in the attached USB flash disk 2 Hardware Configuration A USB Flash Disk and a USB type A Female to Micro AB Male cable are needed in this example Note Kingston 1GB 2GB and SanDisk 4GB USB Flash Disk have been tested on DevKit407 It s not guaranteed that all kind of USB Flash Disk work well on the board 3 Steps to Run 1 There are some BMP files for testing purpose located in the following location Codes STM32F4xx_USB_Example Utilities Binary Media Copy these files to the root of the USB flash disk 2 Connect the DevKit407 board to the USB flash disk with a USB type A Female to Micro AB Male cable through USB connector CN5 3 Connect LCD module STM32F4DIS LCDto DevKit407 CON3 via LCD cable 4 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 5 Open the project rebuild all files load project image and then run program 6 After reset the LCD displays the following messages STM32F4DIS BB Embest Technology Co LTD User Manual Page 80 of 90 gt USB Host library started Attached gt Enumeration completed Figure 4 48 USB mass storage host display message 7 When the user press the User button the application explore the USB fl
52. kits com Connect the DevKit407 board to a PC with a crossover Ethernet cable through RJ45 connector J1 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board Rebuild all files load project image and then run program After reset LCD displays the IP address of the DevKit407 board STM32F 4x7 STM32F 4 Series Webaserver Demo Static IP address 192 168 0 10 Figure 4 4 LCD display message On the remote PC open a web client Mozilla Firefox or Internet Explorer and type the board s IP address in a web browser The default IP address is 192 168 0 10 2 STM32F4x7 Windows Internet Explorer http 192 168 0 10 File Edit View Favorites Tools Help ve r stwszr4x7 ish v Page Oj Tools STM32F4x7 Webserver Demo Based on the IWIP TCP IP stack KS Tr VE STM32 F 4 Series A new generation on STM32 with significant improvement in de STM32 Releasing your creativity features performance e More Memorv Figure 4 5 Home page of the HTTP server demo STM32F4DIS BB Embest Technology Co LTD User Manual Page 45 of 90 gt Click LED control to get into LED control interface select or cancel LED4 and press Send the LED4 on the board will work accordingly STM32F4x7LED Windows Internet Explorer DER EJ v IE httpi 192 168 0 10 leds cgi 9 63 3 live search File Edit View Favori
53. nder the License is distributed on an AS IS BASIS startup st 021 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied STM32F4xx 5 022 See the License for the specific language governing permissions and 3 STM32F4 Disc 023 limitations under the License sg Doc 024 025 IAS 026 S 027 028 Includes lt ll 3 Ele Gs OF 0 7 ST Link Debugger Figure 4 26 select macro STM324xG EVAL_USBD_FS in IDE STM32F4DIS BB Embest Technology Co LTD User Manual Page 63 of 90 L Embest Technology Co LTD http www armkits com USB Device Examples There are three examples in USB Device Examples subfolder gt DFU gt MSC gt VCP DFU example presents the implementation of a device firmware upgrade DFU capability in the STM32F2xx STM32F4xx and STM32F105 7 devices MSC example gives a typical example of how to use the STM32F2xx STM32F4xx and STM32F105 7 USB OTG Device peripheral to communicate with a PC Host using the bulk transfer while the MicroSD card is used as storage media VCP example presents the implementation of a Virtual Com Port VCP capability in the STM32F2xx STM32F4xx and STM32F105 7 devices 4 6 1 USB_Device_Examples DFU 1 Description 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 STM32F2xx and STM32F4xx devices e OTP memor
54. nology Co LTD User Manual Page 16 of 90 ren Embest Technology Co LTD http www armkits com Maximum integration Up to 1 MB of on chip Flash memory 192 KB of SRAM reset circuit internal RCs PLLs WLCSP package available providing more features in space constrained applications e Superior and innovative peripherals providing new possibilities to connect and communicate high speed data at greater precision due to high resolution e Extensive tools and software solutions providing a wide choice within the STM32 ecosystem to develop your applications 2 2 Hardware Interface 2 2 1 Serial Ports Table 2 1 Serial Ports Interface COM1 Pin Signal Description 1 NG NC 2 RXD Receive data 3 TXD Transit data 4 NG NC 5 GND GND 6 DSR Data Set Ready 7 NC NC 8 CTS Clear To Send 9 NC NC 2 2 2 Ethernet Interface Table 2 2 Ethernet Interface J1 Pin Signal Description STM32F4DIS BB Embest Technology Co LTD User Manual Page 17 of 90 ren Embest Technology Co LTD http www armkits com 1 TX TX output 2 TX TX output 3 RX RX input 4 CT CT 5 CT CT 6 RX RX input 7 NC NC 8 SHIELD Shield 9 LED1 LINK LED 10 VDD3V3 3 3 V Power for LED 11 LED2 SPEED LED 12 VDD3V3 3 3 V Power for LED 13 485 Connect to shield 14 788 Connect to shield 15 NC NC
55. rd FatFs example provides an example of how to use the SDIO firmware library and an associate driver to implement Fatfs on the SD Card memory uSDCard example provides 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 V1 0 V1 1 V2 0 and SDHC High Capacity protocol that could be mounted on the Devkit407 board 4 2 1 FatFs 1 Description The example is located in the following folder Codes STM32F4xx_SDIO_Example Project FatFs 2 Hardware Configuration A MicroSD card is needed in this example and Kingston 1GB 2GB or SanDisk 2GB MicroSD Card is recommended The card should be formatted before used Note Kingston 1GB 2GB and SanDisk 2GB MicroSD Card have been tested on Devkit407 It s not guaranteed that all kind of MicroSD card work well on the board 3 Software Configuration HyperTerminal is used in this example Please refer 3 3 1 HyperTerminal Connection to for more details 4 Steps to Run STM32F4DIS BB Embest Technology Co LTD User Manual Page 36 of 90 1 L Embest Technology Co LTD i http www armkits com Connect a null modem female female RS232 cable between the DB9 connector COM1 USART6 and PC serial port Make sure that jumpers JP1 and JP2 are fitted Open hyperterminal on PC Copy message txtin the project folder to a MicroSD card Insert the MicroSD card into MicroSD slot CON6 Connect the D
56. re 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 NETU aa 058 define MAC ADDRS O 060 Static IP ADDRESS IP ADDRO IP ADDR1 IP ADDR2 IP ADDR3 Go he IP_ADDRO 19 define IP ADDR1 168 define IP_ADDR2 O Pe ine IP ADDR3 10 Figure 4 19 Configure IP address of DevKit407 You can also uncomment option USE DHCP to enable the DHCP to assign IP addresses dynamically 2 Connect LCD module STM32F4DIS LCD to DevKit407 board through CON3 3 Connect the DevKit407 board to a PC with a crossover Ethernet cable through RJ45 connector J1 4 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male cable through USB connector CN1 to power the board 5 Rebuild all files load project image and then run program 6 After reset LCD displays the IP address of the DevKit407 board STM32F4DIS BB Embest Technology Co LTD User Manual Page 56 of 90 PARA Embest Technology Co LTD http www armkits com STM32F4x7 STM32F 4 Series UDP echo server Static IP address 192 168 0 10 Figure 4 20 LCD display message 7 Onthe PC copy the echotool software to C root directory The echotool software is located in the folder of CD ROM ICodes STM32F4xx Ethernet ExamplelUtilities PC Software 8 On the PC open a command prompt window In Windows select Start gt All Programs gt Accessories gt
57. static devices such as wrist straps and floor mats e Always hold an evaluation board by its edges Avoid touching the contacts and components on the board e Take care when connecting or disconnecting cables A damaged cable can cause a short in the electrical circuit e Prevent damage to the connectors by aligning connector pins before you connect the cable Misaligned connector pins can cause damage to system components at power on e When disconnecting a cable always pull on the cable connector or strain relief loop not on the cable itself Warning This is a class A product In a domestic this product may cause radio interference in which case the user may be required to take adequate measures 1 7 Software Features Features The DevKit407 software features e Support for Micrium uC OS Il v2 91 operating system STM32F4DIS BB Embest Technology Co LTD User Manual Page 14 of 90 Ve Enbest Teil CD Supports FatFs vR0 08a file system Supports LWIP _ v1 3 2 protocol stack Integrated Development Environment Support e AR EWARM All drivers support IAR EWARM the EWARM version should be V6 40 or above uC OS II Demos do not support IAR EWARM at present e Keil MDK ARM All drivers and applications support Keil MDK ARM the MDK ARM version should be V4 22a or above Debug Tools Support e ULINK2 Best used with Keil MDK ARM e JLINK V8 Best used with IAR EWARM e ST LINK V2 Can be used with either Keil MDK ARM or IAR E
58. stics Received 15 Corupted SERA STM32F4DIS BB Figure 4 21 UDP echo server demo Embest Technology Co LTD User Manual Page 58 of 90 L Embest Technology Co LTD http www armkits com FreeRTOS Examples There are three examples in FreeRTOS subfolder gt httpserver_netconn gt httpserver socket gt udptcp echo server netconn Httpserver_netconn example shows how to implement a web serverapplication based on the netconn API for STM32F4x7 devices Httpserver socket example shows how to implement a web server application based on the socket API for STM32F4x7 devices Udptcp echo server netconn example shows how to implement a UDP TCP echo server demonstration for STM32F4x7 devices 4 5 6 FreeRTOS httpserver netconn 1 Description This demo is used to connect the DevKit407 board with a web browser and to load HTML pages This demo has two HTML pages The first one contains general information about STM32F4x7 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 2 Software Configuration Ethernet is used in this example Please reference at 3 3 2 PC Network Settings for more details 3 Steps to Run 1 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
59. t Technology Co LTD User Manual Page 66 of 90 PAMPA Embest Technology Co LTD USB OTG FS HS DFU Device SB device library started i suspend Mode DFU Interface configured USB Device Library Figure 4 30 USB device firmware upgrade cable connected display message 8 Run DfuSe DEMO software on PC If PC identifies the DFU device DevKit407 board below window will be displayed which means board is ready for USB DFU test 4 DfuSe Demo v3 0 2 be DFU and compatible HID Devices STM Device in DFU Mode y Application Mode DFU Mode Vendor ID Vendor ID 0483 olerant El Supports Download ES Upload ST Procuct ID Procuct ID DF11 NG EI Can Detach Version Version 0200 Leave DFU mode Actions Select Target s Targetld Name Available Sectors Double Click for more 00 Internal Flash 12 sectors 01 OTP Area 2 sectors Upload Action Uparade or Verify Action File File Vendor ID Targets in file Elu Procuct ID ES Transferred data size METE O KB O Bytes of O KB O Bytes M Verify after download Optimize Upgrade duration Remove some FFs Operation duration 00 00 00 Choose Figure 4 31 STM Device in DFU mode 9 Select the target area to be programmed as shown in below figure with number 1 10 Select the DFU file to be programmed Click Choose button select the DFU to be upgraded as shown in below figur
60. t we offer Judge whether the product failure exists The services listed below are not included in the range of our free technical support service and Embest will handle each situation with discretion e Software Hardware issues a user meets during the development process STM32F4DIS BB Embest Technology Co LTD User Manual Page 87 of 90 rem Embest Technology Co LTD http www armkits com Issues which occur when users compile run the embedded OS which has been modified by users themselves User s own applications Problems which occur 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 9 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 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 moisture impurities into the boards
61. ta bits Parity Stop bits i Flow contrat y Restore Defaults Figure 3 4 Settings for the selected port 5 A Hyper Terminal connection with PC serial port will have been established as shown below Embest Hyper Terminal De Edit View Cal Transfer Help De 83 me amp Auto detect Auto detect SCROLL Figure 3 5 Hyper Terminal successfully built STM32F4DIS BB Embest Technology Co LTD User Manual Page 30 of 90 Ve Enbest ema ETU 3 3 2 PC Network Settings In order to test the Ethernet examples first set up the PC network environment Make sure that the PC s IP address and the DevKit407 board s IP address are on the same network 1 On PC select Start gt Control Panel gt Network connections gt Local Area Connection gt Properties as shown below Local Area Connection Status o General Support Connection Status Connected Duration 00 41 27 Speed 100 0 Mbps Activity Received Packets 410 Figure 3 6 Local Area Connection 2 Click Properties this will open the window of Local Area Connection Properties as shown below STM32F4DIS BB User Manual Embest Technology Co LTD Page 31 of 90 r e Embest Technology Co LTD tp www armkits com Ad Local Area Connection Properties ee E General Advanced Connect using HE Realtek RTL8139 810x Family Fast E This connection uses th
62. tandalone tcp_echo_server To test the UDP TCP echo server netconn demo in UDP server mode please refer to the 4 5 5 Standaloneludp echo server STM32F4DIS BB Embest Technology Co LTD User Manual Page 62 of 90 4 6 USB Example STM32F4xx_USB_Example folder contains USB Device Examples and USB Host Examples subfolders Please refer to STM32F4xx USB On The Go host and device library pdf for more information Note USB High Speed is not available on DevKit407 Plesae select macro in IDE STM324xG EVAL USBD FS S D evkit407 code STM32F 41x Discovery StdPeriph DemolProject1STM32F4oc StdPeriph Examples106 USBWSB Device HBX File Edit View Project Flash Debug Peripherals Tools SVC5 Window TE 5TM324XGEVAL usap s MRE i STM324xG EVAL USBD 007 brief This file provides all the Application firmware functions 008 AAA E V 009 t attention stm32Fxx gt 010 usb_bsp c 011 lt h2 gt lt center gt amp copy COPYRIGHT 2012 STMicroelectronics lt center gt lt h2 gt usbd_usr 012 LEI usbd des 013 Licensed under MCD ST Liberty SU License Agreement V2 the License CH USB Driver 014 You may not use this file except in compliance with the License E usb core 015 You may obtain a copy of the License at 016 8 usb_ded_i 017 http wuw st com software license agreement liberty v2 19 USB Device 018 CH STM32F4xx 019 Unless required by applicable law or agreed to in writing softvare E system st 020 distributed u
63. ter long time use please avoid cleaning the surface with fingers or hands to leave fingerprint 3 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 cannot run or show 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 STM32F4DIS BB Embest Technology Co LTD User Manual Page 89 of 90 des Entes Tamo LTD e Provide services of driver development based on Embest s embedded platforms like serial port USB interface devices LCD screen Provide the services of control system transplant BSP driver development API software development Other value added services like power adapter LCD parts Other OEM ODM services Technical training Please contact Embest to get technical support e Support Tel 86 755 25503401 Fax 86 755 25616057 Pre Sale consultation market embedinfo com e After Sale consultation support embedinfo com STM32F4DIS BB Embest Technology Co LTD User Manual Page 90 of 90
64. tes Tools Help k k STMB2FAXTLED DP Page Toos This page allows you to control the LED4 located in the STM32F4DISCOVERY 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 STM32F4DISCOVERY board that you get the desired LED4 are putted on off STM32 Webserver LEDs Control OLED4 Send La Internet E 100 Figure 4 6 Led control page of the HTTP server demo gt Click ADC status bar to get the voltage value of potentiometer STM32F4x7ADC Windows Internet Explorer EEK G ty E http 192 168 0 10 STM32F4x7ADC shtml File Edit View Favorites Tools Help We di sm32F4x7apc STM32F4x7 ADC Conversion This page allows you to get continuously the ADC 1 Channel 3 analog input converted value This ADC Channel is connected to the STM32F4DISCOVERY board s PA3 PIN The ADC value is updated automatically each 1s with the last converted ADC Channel 3 value You could check this by changing the pin s voltage and check that the ADC value is updated by an automatic refresh of this page with the new converted value ADC Converted Value 0495 mv Figure 4 7 ADC status bar STM32F4DIS BB Embest Technology Co LTD User Manual Page 46 of 90 Ve Enbest ema ETU 4 5 2 Standaloneltcp echo client 1 Description This
65. wer the board 3 Open the project rebuild all files load project image and then run program 4 Testing actions and results gt Amessage display on the LCD STM32F4DIS BB Embest Technology Co LTD User Manual Page 39 of 90 ren Embest Technology Co LTD http www armkits com STM32F4xx Device running on otm32f4 discove Figure 4 1 LCD display message gt LCD displays three color bars red green and blue Figure 4 2 Three color bars 4 3 2 LCD Touch 1 Description The example is located in the following folder Codes STM32F4xx_LCD_Example Project LCD_Touch 2 Steps to Run 1 Connect LCD module STM32F4DIS LCD to DevKit407 CON3 via LCD cable The red line onside indicates the first pin of LCD cable The triangle onside indicates the first pin of LCD connector 2 Connect the DevKit407 board to a PC with a USB type A Male to Mini B Male STM32F4DIS BB Embest Technology Co LTD User Manual Page 40 of 90 am Embest Technology Co LTD l http www armkits com cable through USB connector CN1 to power the board 3 Open the project rebuild all files load project image and then run program 4 Testing actions and results 5 Click calibration points accurately using a touch pen 6 LCD will show a message if the calibration is OK If calibration is OK then MCU will enter into Calibration Test Dispose function 7 In this function LCD will display the value of points touched by the p
66. y for STM32F2xx and STM32F2xx devices DFU device information is located in usbd desc c as shown below STM32F4DIS BB Embest Technology Co LTD User Manual Page 64 of 90 Leg Embest Technology Co LTD http www armkits com 057 define USBD_VID 0x0483 058 059 define USBD PID OxDF11 060 061 062 defgroup USB String Descriptors 063 a 064 S 065 define USBD LANGID STRING Ox409 066 define USED MANUFACTURER STRING STMicroelectronics 067 068 define USED PRODUCT HS STRING DFU in HS mode 069 define USBD SERIALNUMBER HS STRING 00000000010B 070 071 define USED PRODUCT F5 STRING DFU in FS Mode 072 define USED SERIALNUMBER FS STRING OOOOOOOODIOC 073 074 define USED CONFIGURATION HS STRING DFU Config 075 define USED INTERFACE HS STRING DFU Interface 076 077 define USED CONFIGURATION F5 STRING DFU Config 078 define USBD INTERFACE FS STRING DFU Interface Figure 4 27 USB DFU device information 2 Hardware Configuration A USB type A Male to Micro AB Male cable is needed in this example 3 Steps to Run 1 Install DfuSe_Demo_V3 0 2 software on the PC The software is located in the folder at CD ROM Codes STM32F4xx_USB_Example Utilities PC_Software DfuSe_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
Download Pdf Manuals
Related Search
Related Contents
Manual de instruções bomba submersa Muvit MUCUN0283 mobile phone case Samsung RF95J9910S4B User Manual Misurazione - A&D Company Ltd Instrumentation Amplifier Paradyne 3616 Network Card User Manual L`absence des élus à une réunion peut-elle mettre Sony XDCAM User's Manual 標本展開シート総合カタログ(PDF) CRIBLE COMBI FLIP Copyright © All rights reserved.
Failed to retrieve file