stm32f4discovery - welcome to tengine!m5.img.dxcdn.com/cddriver/cd/sku.315285.docx · web...

50
STM32F4DISCOVERY expansion board SOM407-BB User Manual 1 / 50

Upload: duongtuyen

Post on 12-May-2018

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

STM32F4DISCOVERY

expansion board SOM407-BB

User Manual

1 / 39

Page 2: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

SOM407-BB Base Board

Base Board for STM32F4DISCOVERY High-Performance Discovery Board.

Supports optional 3.2’’ LCD module,4 wire touch module. Supports 30,130 Megapixel digital camera module。 10/100M Ethernet interface.

1 x 3-wire RS232 Serial Port (DB9 female interface).

5 x 3-wire TTL level UART, led by pin.

1 x SPI interface, leads through the pin.

2 x CAN, CAN transceiver leads all the way through, all the way through the pin

WIFI module supports SPI interface.

Since the bomb TF card interface.

Supports Micrium uC/OS- _v2.91 Ⅱ

Supports FatFs_vR0.08a File System (Used for TF card)

Supports LwIP_v1.3.2 Protocol Stack

Supports EMWIN。 Support for external expansion SPI FLASH, back on the LCD screen.

2 / 39

Page 3: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Declaration

SOM407-BB is a joint community WWW.52PI.COM and xi'an embedded technology introduced a based STM32F4DISCOVERY expansion board. SOM407-BB expansion board also supports LCD display module and the Camera Module, WIFI module, network interface modules.

3 / 39

Page 4: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Important Notice

WWW.52PI.COM communities, xi'an embedded technology has the ownership and use of the

document.

Information on this document are protected by copyright. Unless special permission, otherwise,

without the prior written permission of embedded technology through the West, and shall not in

any manner and form to modify, distribute and copy any part of this document.

4 / 39

Page 5: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Version of update records:

Rev Date Description

V1.0 2014-4-2 Initial version

5 / 39

Page 6: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Contact:

If you want to order products:

WWW.52PI.COM

If you want to get technical support, please contact technical support:

E-mail:[email protected]

URL::WWW.52PI.COM ST Forum。

6 / 39

Page 7: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Contents

SOM407User Manual…………....................................................................................................... 2

Chapter 1 Overview ............................................................................................................. 8

1.1 Product Introduction ..............................................................................................................8

1.2 How to Form SOM407................................…........................................................................ 8

1.3 Interface of SOM407-BB ..................................................................................................... 10

1.4 Diagram of SOM407 ............................................................................................................ 12

1.5 Hardware Features .............................................................................................................. 13

1.6 Software Features................................................................................................................. 15

Chapter 2 Hardware System……………………………...................................................................... 16

2.1 CPU ...................................................................................................................................... 16

2.2 Hardware Interface ............................................................................................................. 17

2.2.1 RS232 Interface………. ....................................................................................................... 17

2.2.2 Ethernet Interface ............................................................................................................ 18

2.2.3 Micro SD Interface…… ...................................................................................................... 19

2.2.4 LCD Interface….................................................................................................................. 20

2.2.5 IO Interface....................................................................................................................... 22

2.2.6 Camera Interface. ............................................................................................................ 24

2.3 Pin Multiplexing .................................................................................................................. 25

Chapter 3 Development Environment...................................................................................... 28

7 / 39

Page 8: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

3.1 Hardware Environmen ....................................................................................................... 28

3.2 Hardware Environmen ....................................................................................................... 28

3.3 PC PC Environment ............................................................................................................ 29

3.3.1 HyperTerminal Connection ...............................................................................................29

3.3.2 PC Network Settings .................................................................................................... 32

Overview

1.1 Product Introduction

SOM407 Base Board is WWW.52PI.COM community joint launch of xi'an embedded technology

based STM32F4DISCOVERY expansion board, which will together form a joint

STM32F4DISCOVERY SOM407 evaluation board WWW.52PI.COM community. SOM407 evaluation

kit launched to improve the STM32F4DISCOVERY functionality to further expand the main chip

features to help customers experience more peripheral functions. SOM407 onboard ST-LINK/V2

debugger, eliminating the need for an external debugger, USB-powered, eliminating the need for

external adapters. So SOM407 is WWW.52PI.COM communities, Xi,an embedded technology

introduced a face of our ST low-cost development kit electronics enthusiasts, inexpensive and

powerful.

STM32F4DISCOVERY is ST Discovery Kit series chips based STM32F4xx Launch of the evaluation

kit. Its main chip is: STM32F407VGT6.

More information:http://www.st.com/internet/evalboard/product/252419.jsp

8 / 39

Page 9: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

1.2 How to Form SOM407

SOM407 = STM32F4DISCOVERY + SOM407-BB

SOM407-BB

+

9 / 39

Page 10: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

STM32F4DISCOVERY

=

10 / 39

Page 11: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

1.3 Interface of SOM407-BB

SOM407-BB Schematic diagram: Note: This chart shows the SOM407-BB on the basis of STM32F4DISCOVERY expansion capacity.

Note: This chart shows the STM32F4DISCOVERY function.

11 / 39

Page 12: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

12 / 39

Page 13: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

1.4 Diagram of SOM407

13 / 39

Page 14: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

1.5 Hardware Features

Processor

STMicroelectronics STM32F407VGT6 Flash Microcontroller

ARM 32-bit Cortex-M4 CPU with ART accelerator, frequency up to 168 MHz

On chip 1MB of Flash memory and 192+4KB of SRAM

Flexible static memory controller that supports Compact Flash, SRAM,

PSRAM, NOR and NAND memories

LCD parallel interface, 8080/6800 modes

USB 2.0 High-Speed/Full-Speed Device/Host/OTG

10/100 Ethernet MAC, supports IEEE 1588v2 hardware, MII/RMII

2 CAN 2.0B interfaces: up to 4 USARTs and 2 UARTs, 3 SPI (30Mbit/s), 2 with mux’ed I2S

8- to 14-bit parallel camera interface (up to 48MB/s)

1-/4-/8-bit SD/MMC/SDIO interface, supports up to 32GB storage

Up to 140 I/O ports up to 84 MHz

Up to 17 timers (two 32-bit timers), up to 168 MHz

3 x 12-bit A/D converters, 2 x 12-bit D/A converters

Analog true random number generator

Low power supports Sleep, Stop and Standby modes

Supports booting from Flash, System memory or SRAM

Supports ISP and IAP programming

14 / 39

Page 15: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

External Memory

Micro SD card slot

MEMS accelerometer

LIS3DH, ST MEMS motion sensor, 3-axis digital output accelerometer

Audio interfaces

I2S Audio DAC, stereo audio jack for headset

MP45DT02, ST MEMS audio sensor, omnidirectional digital microphone

Camera Interface

1 x camera interface

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

1 x 5-wire RS232 Serial Port

1 x USB2.0 OTG/Device/Host, Full-speed, up to12Mbit/s

1 x 10/100 Ethernet with IEE 1588v2 (RJ45 connector)

Programming and Debugging Interface

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)

I/O Interface

5 x 3- wire TTL UART

1 x 4 channel PWM

1 x SPI, I2C, CAN

15 / 39

Page 16: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

6 GPIOs

All the I/Os are extended by extension connectors.

Board Power Supply

Through USB bus or from an external 5 V supply voltage

External application power supply: 3 V and 5 V

Mechanical Parameters

Power consumption: 180 mA @ 5 V (without LCD module)

Storage and Working Temp.: 0°C ~ 45°C

Humidity Range: 20% ~ 90%

CE and RoHS compliant

1.6 Software Features

Features

The SOM407 software features:

Support for Micrium µC/OS-II_v2.91 operating system

Supports FatFs_vR0.08a file system

Supports LWIP _v1.3.2 protocol stack

Supports Emwin 5.16.

Integrated Development Environment Support

IAR EWARM

All drivers support IAR EWARM, the EWARM version should be V6.40 or above.

µC /OS-II Demos do not support IAR EWARM at present.

Keil MDK-ARM

All drivers and applications support Keil MDK-ARM, the MDK-ARM version

should be V4.22a or above.

Debug Tools Support

ULINK2

16 / 39

Page 17: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Best used with Keil MDK-ARM.

JLINK-V8

Best used with IAR EWARM.

ST-LINK/V2 Can be used with either Keil MDK-ARM or IAR EWARM.

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:

Boosted execution of control algorithms

More features possible for your applications

Ease of use

Better code efficiency

Faster time to market

17 / 39

Page 18: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Elimination of scaling and saturation

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 < 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

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

Superior and innovative peripherals providing new possibilities to connect and

communicate high speed data at greater precision due to high resolution

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

18 / 39

Page 19: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Table 2-1 Serial Ports Interface

J1

Pin Signal Description

1 NC NC

2 RXD Receive data

3 TXD Transit data

4 NC NC

5 GND GND

6 NC NC

7 NC NC

8 NC NC

9 NC NC

19 / 39

Page 20: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

2.2.2Ethernet Interface

Table 2-2 Ethernet Interface

J2

Pin Signal Description

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

20 / 39

Page 21: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

10 VDD3V3 3.3V Power for LED

11 LED2 SPEED LED

12 VDD3V3 3.3V Power for LED

13 4&5 Connect to shield

14 7&8 Connect to shield

15 NC NC

16 NC NCLED

2.2.3 Micro SD Interface

Table 2-3 Micro SD Interface

CN1

Pin Signal Description

1 DAT2 Card data 2

2 DAT3 Card data 3

3 CMD Command Signal

4 VDD VDD

21 / 39

Page 22: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

5 CLK Clock

6 VSS VSS

7 DAT0 Card data 0

8 DAT1 Card data 1

9 CD Card detect

2.2.4 LCD Interface

Table 2-4 LCD Interface

P5

Pin Signal Description

1 CS LCD chip select

2 DC LCD Parallel Interface

22 / 39

Page 23: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

3 WR Write signal

4 RD Read signal

5 RST LCD reset

6 D0 16-bit 8080 parallel interface,Data bit 0

7 D1 16-bit 8080 parallel interface,Data bit 1

8 D2 16-bit 8080 parallel interface,Data bit 2

9 D3 16-bit 8080 parallel interface,Data bit 3

10 D4 16-bit 8080 parallel interface,Data bit 4

11 D5 16-bit 8080 parallel interface,Data bit 5

12 D6 16-bit 8080 parallel interface,Data bit 6

13 D7 16-bit 8080 parallel interface,Data bit 7

14 D8 16-bit 8080 parallel interface,Data bit 8

15 D9 16-bit 8080 parallel interface,Data bit 9

16 D10 16-bit 8080 parallel interface,Data bit 10

17 D11 16-bit 8080 parallel interface,Data bit 11

18 D12 16-bit 8080 parallel interface,Data bit 12

19 D13 16-bit 8080 parallel interface,Data bit 13

20 D14 16-bit 8080 parallel interface,Data bit 14

21 D15 16-bit 8080 parallel interface,Data bit 15

22 NC NC

23 BKL Black light

24 VCC +3V

25 VCC +3V

26 GND GND

27 GND GND

28 VCC +3V

23 / 39

Page 24: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

29 MISO SPI MISO

30 MOIS SPI MOIS

31 INT Touch screen interrupt

32 NC NC

33 TP_CS Touch screen chip select

34 CLK SPI CLK

2.2.5 IO Interface

Table 2-5 IO Interface

P6

Pin Signal Description

1 UART6_TXD UART6_TXD

2 JP1 UART6_TX

3 UART6_RXD UART6_RXD

4 JP2 UART6_RX

5 UART1_TXD UART1_TXD

24 / 39

Page 25: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

6 UART2_TXD UART2_TXD

7 UART1_RXD UART1_RXD

8 UART2_RXD UART2_RXD

9 GND1 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

11 UART3_TXD UART3_TXD

16 GPIO1 IO

17 UART4_RXD UART4_RXD

18 GPIO2 IO

19 GND3 GND

20 GND4 GND

21 I2C1_SCL I2C1_SCL

22 GPIO3 IO

23 I2C_SDA I2C_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

25 / 39

Page 26: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

31 TIM3_CH1 TIM3_CH1

32 SPI1_NSS SPI1_NSS

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 +5V

40 VDD3V +3V

2.2.6 Camera Interface

Table 2-6 Camera Interface

P4

1 V3.3 +3V

2 GND GND

3 SDA I2C serial bidirectional data

26 / 39

Page 27: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

4 SCL I2C master serial clock

5 VS Vertical synchronization

6 HS Horizontal synchronization

7 PCLK Pixel clock

8 XCLK Clock output

9 D7 Digital image data bit 7

10 D6 Digital image data bit 6

11 D5 Digital image data bit 5

12 D4 Digital image data bit 4

13 D3 Digital image data bit 3

14 D2 Digital image data bit 2

15 D1 Digital image data bit 1

16 D0 Digital image data bit 0

17 RST Reset camera

18 PWR_EN Power Enable

2.3 Pin Multiplexing

There is pin multiplexing between the STM32F4Discovery and SOM407-BB. Some functions

therefore cannot work simultaneously as shown below:

1) OTG_FS

OTG_FS and LCD, UART2 cannot work simultaneously.。 2) Audio

Audio and LCD, Camera, UART1/4/5/6, SPI2 cannot work simultaneously.

3) MEMS

MEMS and Ethernet, Camera cannot work simultaneously.

4) CAN1

27 / 39

Page 28: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

CAN1,LCD cannot work simultaneously.

5) UART1/6

UART1/6 ,Camera cannot work simultaneously

6) UART2

UART2 ,Camera,LCD cannot work simultaneously.

7) UART3

UART3 ,LCD cannot work simultaneously.

8) UART4/5

UART4/5 ,MicroSD cannot work simultaneously.

Table 2-7 Pin multiplexing of STM32F4Discovery andSOM407-BB

Discovery Multiplexing

Function 1

GPIO Multiplexing

Function 2

SOM407-BB

USB

OTG_FS_ID PA10 PA10 GPIO2

OTG_FS_

OverCurrent

PD5 LCD_WR LCD

UART2_TX UART2

Audio

Audio_SCL PB6 DCMI_D5 Camera

UART1_TX UART1

I2S3_MCK PC7 DCMI_D1 Camera

UART6_TX UART6

I2S3_SCK PC10 SDIO_D2 MicroSD

UART4_TX UART4

I2S3_SD PC12 SDIO_CK MicroSD

UART5_TX UART5

I2S3_WS PA4 DCMI_HSYNC Camera

Audio_RST PD4 LCD_RD LCD

PDM_OUT PC3 SPI2_MOSI SPI2

LED

LED4 PD12 Camera_RST Camera

LED3 PD13 LCD_PWM

LCDLED5 PD14 LCD_D0

28 / 39

Page 29: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

LED6 PD15 LCD_D1

MEMS

SPI1_SCK PA5 PA5 GPIO6

SPI1_CS PE3 ETH_RST Ethernet

SPI1_MOSI PA7 ETH_RMII_CRS_DV

SPI1_MISO PA6 DCMI_PIXCLK

Camera MEMS_INT1 PE0 DCMI_D2

MEMS_INT2 PE1 DCMI_D3

Table 2-8 Pin multiplexing of CON4 extension port and SOM407-BB

CON4 复用用途 1 被复用的 GPIO 复用用途 2 SOM407-BB

CAN CAN1_RX PD0 LCD_D2 LCD

CAN1_TX PD1 LCD_D3

UART1 TXD1 PB6 DCMI_D5 Camera

RXD1 PB7 DCMI_VSYNC

UART2 TXD2 PD5 LCD WR

RXD2 PD6 Camera_PWR_EN Camera

UART3 TXD3 PD8 LCD_D13 LCD

RXD3 PD9 LCD_D14

UART4 TXD4 PC10 SDIO_D2

MicroSDRXD4 PC11 SDIO_D3

UART5 TXD5 PC12 SDIO_CK

RXD5 PD2 SDIO_CMD

UART6 TXD6 PC6 DCMI_D0 Camera

RXD6 PC7 DCMI_D1

29 / 39

Page 30: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Chapter 3 Development Environment

3.1 Hardware Environment

Setup SOM407 hardware environment following these steps:

1) Mount STM32F4DISCOVERY board to SOM407-BB board through CON1 and

CON2 to form SOM407.

2) Connect the SOM407 board to a PC with a ‘USB type A (Male) to Mini-B (Male)cable

through USB connector CN1 to power the board.

The connection as shown in figure 3-1:

3.2 Software Environment

SOM407 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

30 / 39

Page 31: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

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.

3.3 PC Environment

SOM407 development environment to recommend the use of Windows 7, Windows XP. In order to test the serial port and Ethernet procedures, please follow the below to configure the PC serial tools and network.

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):

4) Select Start -> All Programs -> Accessories -> Communication -> Hyper Terminal.

Find the HyperTerminal, as shown below:

31 / 39

Page 32: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Figure 3-1 Create a new HyperTerminal

2) Create a new HyperTerminal connection, enter a name and choose an icon.

Figure 3-2 Description for new connection

32 / 39

Page 33: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

3) Select the specific serial port from the list as per your computer COM port configuration:

Figure 3-3 Select a COM port for connection

4) Set parameters for serial port connection as follows:

33 / 39

Page 34: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Figure 3-4 Settings for the selected port

5) A Hyper Terminal connection with PC serial port will have been established as shown

below:

34 / 39

Page 35: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

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-> Control Panel-> Network connections-> Local Area

Connection-> Properties, as shown below:

35 / 39

Page 36: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

Figure 3-6 Local Area Connection 2) Click ‘Properties’, this will open the window of Local Area Connection Properties, as

shown below:

Figure 3-7 Local Area Connection Properties

36 / 39

Page 37: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

3) Double click ‘TCP / IP Options’, opens a window for TCP / IP Properties, as shown

below:

Figure 3-8 TCP / IP Options

4) Click the ‘Advanced’ option, open a window for “Advanced TCP / IP settings”, as shown

below:

37 / 39

Page 38: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

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:

Figure 3-10 Add TCP/IP address

38 / 39

Page 39: STM32F4DISCOVERY - Welcome to tengine!m5.img.dxcdn.com/CDDriver/CD/sku.315285.docx · Web viewSOM407-BB is a joint community and xi'an embedded technology introduced a based STM32F4DISCOVERY

6) Click “OK” to finish network setup.

39 / 39