STM32F4DISCOVERY
expansion board SOM407-BB
User Manual
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).
5x 3-wireTTL levelUART,ledbypin.
1 x SPI interface, leads through thepin.
2 x CAN,CANtransceiverleadsall the way through, all the way through thepin
WIFImodulesupportsSPI interface.
Sincethe bombTFcard 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 forexternal expansionSPI FLASH,backon the LCDscreen.
Declaration
SOM407-BB is a joint community 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.
Important Notice
hastheownership and use ofthe document.
Informationonthis documentare protected by copyright. Unlessspecial permission, otherwise, without the prior written permission ofembeddedtechnologythrough theWest, and shall not in anymanner and formto modify, distribute and copy anypart of this document.
Version of update records:
Rev / Date / DescriptionV1.0 / 2014-4-2 / Initial version
Contact:
Ifyou want to orderproducts:
If youwantto gettechnical support, please contact technicalsupport:
E-mail:
URL:: ST Forum
。
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 ofSOM407 ...... 12
1.5 Hardware Features ...... 13
1.6Software 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
3.1Hardware Environmen ...... 28
3.2 Hardware Environmen ...... 28
3.3 PCPC Environment ...... 29
3.3.1 HyperTerminal Connection ...... 29
3.3.2 PC Network Settings ...... 32
Overview
1.1 Product Introduction
SOM407Base Boardis of xi'an embeddedtechnology based STM32F4DISCOVERYexpansion board, which will together forma jointSTM32F4DISCOVERYSOM407evaluation board kitlaunchedto improve theSTM32F4DISCOVERYfunctionalityto further expandthemain chipfeatures to helpcustomersexperiencemoreperipheral functions.SOM407onboardST-LINK/V2debugger,eliminating the need foran external debugger, USB-powered, eliminating the need forexternaladapters.SoSOM407is embeddedtechnologyintroduced aface of ourSTlow-costdevelopment kitelectronics enthusiasts, inexpensive and powerful.
STM32F4DISCOVERYis STDiscovery KitserieschipsbasedSTM32F4xxLaunch of theevaluation kit. Itsmain chipis: STM32F407VGT6.
More information:
1.2 How to Form SOM407
SOM407 = STM32F4DISCOVERY + SOM407-BB
SOM407-BB
+
STM32F4DISCOVERY
=
1.3 Interface of SOM407-BB
SOM407-BBSchematic diagram:
Note: This chart shows the SOM407-BB on the basis of STM32F4DISCOVERY expansion capacity.
Note: This chart shows the STM32F4DISCOVERY function.
1.4 Diagram ofSOM407
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
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
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
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
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
Table 2-1 Serial Ports Interface
J1Pin / Signal / Description
1 / NC / NC
2 / RXD / Receivedata
3 / TXD / Transit data
4 / NC / NC
5 / GND / GND
6 / NC / NC
7 / NC / NC
8 / NC / NC
9 / NC / NC
2.2.2Ethernet Interface
Table 2-2 Ethernet Interface
J2Pin / 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
10 / VDD3V3 / 3.3VPower for LED
11 / LED2 / SPEEDLED
12 / VDD3V3 / 3.3VPower for LED
13 / 4&5 / Connectto shield
14 / 7&8 / Connectto shield
15 / NC / NC
16 / NC / NCLED
2.2.3 Micro SD Interface
Table 2-3 Micro SD Interface
CN1Pin / Signal / Description
1 / DAT2 / Carddata 2
2 / DAT3 / Carddata 3
3 / CMD / CommandSignal
4 / VDD / VDD
5 / CLK / Clock
6 / VSS / VSS
7 / DAT0 / Card data 0
8 / DAT1 / Card data 1
9 / CD / Carddetect
2.2.4 LCD Interface
Table 2-4 LCD Interface
P5Pin / Signal / Description
1 / CS / LCDchip select
2 / DC / LCD Parallel Interface
3 / WR / Writesignal
4 / RD / Readsignal
5 / RST / LCDreset
6 / D0 / 16-bit8080 parallel interface,Data bit 0
7 / D1 / 16-bit8080 parallel interface,Data bit 1
8 / D2 / 16-bit8080 parallel interface,Data bit 2
9 / D3 / 16-bit8080 parallel interface,Data bit 3
10 / D4 / 16-bit8080 parallel interface,Data bit 4
11 / D5 / 16-bit8080 parallel interface,Data bit 5
12 / D6 / 16-bit8080 parallel interface,Data bit 6
13 / D7 / 16-bit8080 parallel interface,Data bit 7
14 / D8 / 16-bit8080 parallel interface,Data bit 8
15 / D9 / 16-bit8080 parallel interface,Data bit 9
16 / D10 / 16-bit8080 parallel interface,Data bit 10
17 / D11 / 16-bit8080 parallel interface,Data bit 11
18 / D12 / 16-bit8080 parallel interface,Data bit 12
19 / D13 / 16-bit8080 parallel interface,Data bit 13
20 / D14 / 16-bit8080 parallel interface,Data bit 14
21 / D15 / 16-bit8080 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
29 / MISO / SPI MISO
30 / MOIS / SPI MOIS
31 / INT / Touch screen interrupt
32 / NC / NC
33 / TP_CS / Touch screenchip select
34 / CLK / SPI CLK
2.2.5 IO Interface
Table 2-5 IO Interface
P6Pin / 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
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
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
P41 / V3.3 / +3V
2 / GND / GND
3 / SDA / I2Cserial bidirectional data
4 / SCL / I2Cmaster serial clock
5 / VS / Verticalsynchronization
6 / HS / Horizontalsynchronization
7 / PCLK / Pixelclock
8 / XCLK / Clockoutput
9 / D7 / Digitalimage data bit 7
10 / D6 / Digitalimage data bit 6
11 / D5 / Digitalimage data bit 5
12 / D4 / Digitalimage data bit 4
13 / D3 / Digitalimage data bit 3
14 / D2 / Digitalimage data bit 2
15 / D1 / Digitalimage data bit 1
16 / D0 / Digitalimage 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
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 / MultiplexingFunction 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 / LCD
LED5 / PD14 / LCD_D0
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-BBCAN / 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 / MicroSD
RXD4 / PC11 / SDIO_D3
UART5 / TXD5 / PC12 / SDIO_CK
RXD5 / PD2 / SDIO_CMD
UART6 / TXD6 / PC6 / DCMI_D0 / Camera
RXD6 / PC7 / DCMI_D1
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 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 (forexample, on Windows XP OS):
4) Select Start -> All Programs -> Accessories -> Communication -> Hyper Terminal.
Find the HyperTerminal, as shown below:
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
3) Selectthespecificserial 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:
Figure 3-4 Settings for the selected port
5) A Hyper Terminal connection with PC serial port will have been established as shown
below:
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:
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
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”, asshown below:
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
6) Click “OK” to finish network setup.
1 / 35