Olimex STM32-H107 User guide

STM32-H107 development board
Users Manual
All boards produced by Olimex are ROHS compliant
Rev. C, June 2011
Copyright(c) 2011, OLIMEX Ltd, All rights reserved
Page1

INTRODUCTION

the new STM32F107VCT6 connectivity line microcontroller, produced by STMicroelectronics. STM32-H107 has JTAG port for programming and debugging, USB_OTG, user button, two status leds, and most of the GPIOs are on extension headers where you can connect your additional circuits.

BOARD FEATURES

- JTAG connector with ARM 2x10 pin layout for programming/debugging
- 25 Mhz crystal
- USB_OTG
- Power Jack
- WKUP button
- RESET button
- Two status leds
- Power-on led
- 3V battery connector
- Extension port connectors for many of microcontrollers pins
- PCB: FR-4, 1.5 mm (0,062"), soldermask, silkscreen component print
- Dimensions: 70x50mm (2.76x1.97")

ELECTROSTATIC WARNING

The STM32-H107 board is shipped in protective anti-static packaging. The board must not be subject to high electrostatic potentials. General practice for working with static sensitive devices should be applied when working with this board.

BOARD USE REQUIREMENTS

Cables: The cable you will need depends on the programmer/debugger you use. If you use ARM-JTAG, you will need LPT cable, if you use ARM-USB-OCD, or ARM-
USB-OCD-H, you will need RS232 cable and 1.8 meter USB A-B cable and if you
use ARM-JTAG-EW, ARM-USB-TINY, or ARM-USB-TINY-H, you will need 1.8 meter USB A-B cable.
Hardware: Programmer/Debugger – one of the Olimex ARM Programmers: ARM­JTAG, ARM-USB-OCD ARM-USB-OCD-H, ARM-USB-TINY, ARM-USB-TINY-H, ARM-JTAG-EW.
Software: ARM C compiler and JTAG programmer. Note: For OpenOCD we don't offer any projects.
Page2
PROCESSOR FEATURES
STM32-H107 board use ARM-based 32-bit microcontroller STM32F107VCT6 with
these features:
Core: ARM 32-bit Cortex™-M3 CPU
72 MHz maximum frequency, 1.25 DMIPS/MHz (Dhrystone 2.1)
performance at 0 wait state memory access
Single-cycle multiplication and hardware division
Memories
256 Kbytes of Flash memory
64 Kbytes of SRAM
Clock, reset and supply management
2.0 to 3.6 V application supply and I/Os
POR, PDR, and programmable voltage detector (PVD)
25 MHz crystal oscillator
Internal 8 MHz factory-trimmed RC
Internal 40 kHz RC with calibration
32 kHz oscillator for RTC with calibration
Low power
Sleep, Stop and Standby modes
VBAT supply for RTC and backup registers
2 × 12-bit, 1 µs A/D converters (16 channels)
Conversion range: 0 to 3.6 V
Sample and hold capability
Temperature sensor
up to 2 MSps in interleaved mode
2 × 12-bit D/A converters
DMA: 12-channel DMA controller
Supported peripherals: timers, ADCs, DAC, I
2
Ss, SPIs, I2Cs and
USARTs
Debug mode
Serial wire debug (SWD) & JTAG interfaces
Cortex-M3 Embedded Trace Macrocell™
80 fast I/O ports
80 I/Os, all mappable on 16 external interrupt vectors and almost all 5
V-tolerant
10 timers
Page3
four 16-bit timers, each with up to 4 IC/OC/PWM or pulse counter and
quadrature (incremental) encoder input
1 × 16-bit motor control PWM timer with dead-time generation and
emergency stop
2 × watchdog timers (Independent and Window)
SysTick timer: a 24-bit downcounter
2 × 16-bit basic timers to drive the DAC
14 communication interfaces
2 × I
2
C interfaces (SMBus/PMBus)
5 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)
3 SPIs (18 Mbit/s), 2 with a multiplexed I
2
S interface that offers audio
class accuracy via advanced PLL schemes
2 × CAN interfaces (2.0B Active) with 512 bytes of dedicated SRAM
USB 2.0 full-speed device/host/OTG controller with on-chip PHY that
supports HNP/SRP/ID with 1.25 Kbytes of dedicated SRAM
10/100 Ethernet MAC with dedicated DMA and SRAM (4 Kbytes):
IEEE1588 hardware support, MII/RMII available on all packages
CRC calculation unit, 96-bit unique ID
Page4
BLOCK DIAGRAM
Page5

MEMORY MAP

Page6
SCHEMATIC
Page7
CLOSE
CLOSE
WF2S
HN1x3
HN1x3
100 nF
100 nF
100 nF
100 nF
100 nF
10uF/6.3V/TANT
100nF
100nF
NA
27pF
27pF
10pF
10pF
470uF/16VDC
10uF/6.3V(NA)
100 nF
47uF/6.3V/TANT
100nF
10uF/6.3V(NA)
47uF/6.3V/ TANT
100 nF
100nF
100nF 2.2uF/6.3V
100nF
100nF
47pF(NA)
47pF(NA)
100nF
BAT54C
DB1 04(S MD )
BH20S
FB0805/600R/200mA(201209-601)
FB0805/600R/200mA(201209-601)
+5V
+5V
GYX-SD-TC0805SURK(RED)
YDJ-1134
HN2x3
Q25.000MHz/HC-49SM(SMD)/20pF
32768Hz/6pF
OPEN
10k
22R
0R(NA)
10k
NA
150R
NA
330 R/1 %
330 R/1 %
22 0R/1 %
390R/1%
240 R/1 %
390 R/1%
10k
100R/1%
330R/1%
390R/1%
390R/1%
100R/1%
330R/1%
33k
NA 10k 10k 10k 10k
10k
10k
10k 10k
33k
33k
33k
0R(NA)
22R
22R
T1107A(6x3,8x2,5mm)
GREEN(GYX-SD-TC0805SGC)
YELLOW(GYX-SD-TC0805SYC)
STM32F107VCT6
NA(STM1001RWX6F)
ST2052BD
(NA)US BL C6-2 P6
MICRO_AB
3.3V
3.3V 3.3V
3.3V
3.3V
3.3V
3.3V
3.3V
3.3V
3.3V
LM1117IMPX-ADJ
LM1117IMPX-ADJ
T1107A(6x3,8x 2,5mm)
+5V_EXT
+5V_JTAG
+5V_JTAG
+5V_OTG_PW R
+5V_OTG_PW R
+5V_OTG_PW R
OTG_DM OTG_DM
OTG_DM
OTG_DP OTG_DP
OTG_DP
OTG_ID OTG_ID
OTG_ID
OTG_ID
OTG_VBUS OTG_VBUS
OTG_VBUS
PB2/BOOT1
PB2/BOOT1
RST
RST
RST
STAT1
STAT1
STAT2
STAT2
TCK
TCK TCK
TDI
TDITDI
TDO
TDO TDO
TMS
TMS TMS
TRST
TRST
TRST TRST
USB_FA ULT
USB_FAULT
USB_OTG_D+USB_OTG_D+
USB_OTG_D-USB_OTG_D-
USB_VBUS ON
USB_VB USON
WKUP
WKUP
1 2
3.3V_E
1 2
3.3V_MCU_E
1 2
3V_BAT
123
B0_1/B0_0
123
B1_1/B1_0
C1C2C3C4C5
C6
C7
C8
C9
C10
C11
C12
C13
C14
C15
C16
C17
C18
C19
C20
C21
C22
C23 C24
C25
C26
C27 C28
C29
D5
EXT1-1
EXT1-2
EXT1-3
EXT1-4 EXT1-5 EXT1-6
EXT1-7 EXT1-8
EXT1-9 EXT1-10 EXT1-11 EXT1-12 EXT1-13 EXT1-14
EXT1-15 EXT1-16
EXT1-17 EXT1-18 EXT1-19 EXT1-20 EXT1-21 EXT1-22 EXT1-23 EXT1-24 EXT1-25 EXT1-26 EXT1-27
EXT1-28 EXT1-29 EXT1-30 EXT1-31 EXT1-32 EXT1-33 EXT1-34 EXT1-35
EXT1-36
EXT1-37 EXT1-38
EXT1-39
EXT1-40
EXT2-1
EXT2-2
EXT2-3
EXT2-4 EXT2-5 EXT2-6 EXT2-7 EXT2-8 EXT2-9 EXT2-10 EXT2-11
EXT2-12
EXT2-13
EXT2-14
EXT2-15
EXT2-16
EXT2-17
EXT2-18
EXT2-19
EXT2-20
EXT2-21
EXT2-22
EXT2-23
EXT2-24
EXT2-25
EXT2-26
EXT2-27
EXT2-28
EXT2-29
EXT2-30
EXT2-31
EXT2-32
EXT2-33
EXT2-34
EXT2-35
EXT2-36
EXT2-37
EXT2-38
EXT2-39
EXT2-40
G1
GND
12 34 56 78 910 1112 1314 1516 1718 1920
JTAG
L1
L2
PWR
PWR_JACK
1 2 3 4 5 6
PWR_SE L
Q1
Q2
12
R-T
R1
R2
R3
R4
R5
R6
R7
R8
R9
R10
R11
R12
R13
R14
R15
R16
R17
R18
R19
R20
R21
R22 R23 R24 R25 R26
R27 R28
R29 R30
R31
R32
R33
R34
R35
R36
RESET
STAT1 STAT2
BOOT0
94
NC
73
NRST
14
OSC_IN
12
OSC_OUT
13
PA0/WKUP/USART2_CTS/ADC12_IN0/TIM2_CH1_ETR/TIM5_CH1/ETH_MII_CRS_WKUP
23
PA1/USART2_RTS/ADC12_IN1/TIM5_CH2/TIM2_CH2/ETH_MII_RX_CLK/ETH_RMII_REF_CLK
24
PA2/USART2_TX/TIM5_CH3/ADC12_IN2/TIM2_CH3/ETH_MII_MDIO/ETH_RMII_MDIO
25
PA3/USART2_RX/TIM5_CH4/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_SMBAL/USART3_CK/TIM1_BKIN/CAN2_RX/ETH_MII_TXD0/ETH_RMII_TXD0
51
PB13/SPI2_SCK/I2S2_CK/USART3_CTS/TIM1_CH1N/CAN2_TX/ETH_MII_TXD1/ETH_RMII_TXD1
52
PB14/SPI2_MISO/TIM1_CH2N/USART3_RTS
53
PB15/SPI2_MOSI/I2S2_SD/TIM1_CH3N
54
PC0/ADC12_IN10
15
PC1/ADC12_IN11/ETH_MII_MDC/ETH_RMII_MDC
16
PC2/ADC12_IN12/ETH_MII_TXD2
17
PC3/ADC12_IN13/ETH_MII_TX_CLK
18
PC4/ADC12_IN14/ETH_MII_RXD0/ETH_RMII_RXD0
33
PC5/ADC12_IN15/ETH_MII_RXD1/ETH_RMII_RXD1
34
PC6/I2S2_MCK/TIM3_CH1
63
PC7/I2S3_MCK/TIM3_CH2
64
PC8/TIM3_CH3
65
PC9/TIM3_CH4
66
PC10/UART4_TX/USART3_TX/SPI3_SCK
78
PC11/UART4_RX/USART3_RX/SPI3_MISO
79
PC12/UART5_TX/USART3_CK/SPI3_MOSI
80
PC13/TAMPER-RTC
7
PC14/OSC32_IN
8
PC15/OSC32_OUT
9
PD0/OSC_IN/CAN1_RX
81
PD1/OSC_OUT/CAN1_TX
82
PD2/TIM3_ETR/UART5_RX
83
PD3/USART2_CTS
84
PD4/USART2_RTS
85
PD5/USART2_TX
86
PD6/USART2_RX
87
PD7/USART2_CK
88
PD8/USART3_TX/ETH_MII_RX_DV
55
PD9/USART3_RX/ETH_MII_RX_D0
56
PD10/USART3_CK/ETH_MII_RX_D1
57
PD11/USART3_CTS/ETH_MII_RX_D2
58
PD12/TIM4_CH1/USART3_RTS/ETH_MII_RX_D3
59
PD13/TIM4_CH2
60
PD14/TIM4_CH3
61
PD15/TIM4_CH4
62
PE0/TIM4_ETR
97
PE1
98
PE2/TRACECK
1
PE3/TRACED0
2
PE4/TRACED1
3
PE5/TRACED2
4
PE6/TRACED3
5
PE7/TIM1_ETR
38
PE8/TIM1_CH1N
39
PE9/TIM1_CH1
40
PE10/TIM1_CH2N
41
PE11/TIM1_CH2
42
PE12/TIM1_CH3N
43
PE13/TIM1_CH3
44
PE14/TIM1_CH4
45
PE15/TIM1_BKIN
46
VBAT
6
VDD
50
VDD
75
VDD
100
VDD
28
VDD
11
VDDA
22
VREF+
21
VREF-
20
VSS
49
VSS
74
VSS
99
VSS
27
VSS
10
VSSA
19
U1
3
12
GND
VCC RESET
U2
#OC1
8
#OC2
5
EN1
3
EN2
4
GND
1
IN
2
OUT1
7
OUT2
6
U3
1 2 3 4
5
6
U4
D+
D-
GND
GND1
GND2
GND3
GND4
ID
VBUS
USB_OTG
ADJ/GND
IN OUT
VR1(5V)
ADJ/GND
IN OUT
VR2(3.3V)
WKUP
6VAC 9VDC
STM32-H107
Rev. Initial
COPYRIGHT(C) 2011, OLIMEX Ltd.
http:// www.olimex .com/dev
+
+
+
+
GND
0R
0R
USB
STATUS LEDS
POWER SUPPLY CIRCUIT
RESET CIRCUIT
BUTTON
JTAG
USB_OTG
0
BOARD LAYOUT
Page8

POWER SUPPLY CIRCUIT

STM32-H107 can take power from three sources:
PWR connector where 9 V DC or 6 V AC is applied by external power source.
+5V_ OTG-PWR from USB OTG
+5V_JTAG from JTAG

RESET CIRCUIT

STM32-H107 reset circuit includes EXT1 pin 3, EXT2 pin 3, JTAG connector pin 15,
STM32F107VCT6 pin 14 (NRST) and RESET button.

CLOCK CIRCUIT

Quartz crystal 25 MHz is connected to STM32F107 pin 12 (OSC_IN) and pin 13 (OSC_OUT).
Quartz crystal 32.768kHz is connected to STM32F107 pin 8 (PC14/OSC32_IN) and pin 9 (PC15/OSC32_OUT).

JUMPER DESCRIPTION

PWR_SEL
When position 1-2 is shorted – the board is power supplied from JTAG.
When position 3-4 is shorted – the board is power supplied from USB_OTG.
When position 5-6 is shorted – the board is power supplied from External power source.
Default state is – position 5-6 – shorted.
B0_1/B0_0
When this jumper is in position B0_1 – BOOT0 is connected to 3.3V, and when the jumper is in position B0_0 – BOOT0 is connected to GND.
Default state is B0_0.
B1_1/B1_0
When this jumper is in position B1_1 – BOOT1 is connected to 3.3V, and when the jumper is in position B1_0 – BOOT1 is connected to GND.
Default state is B1_0.
3.3V_MCU_E
Enable 3.3V microcontroller power supply
Default state is closed.
3.3V_E
Enable regulator VR2 (3.3V) - LM1117
Default state is closed.
R-T
Connects RST to TRST
Page9
Default state is open.
INPUT/OUTPUT
Status LED1 (green) with name STAT1 connected to STM32F107VCT6 pin 63
(PC6/I2S2_MCK/TIM3_CH1).
Status LED2 (yellow) with name STAT2 connected to STM32F107VCT6 pin 64 (PC7/I2S3_MCK/TIM3_CH2).
Power-on LED (red) with name PWR – this led shows that +3.3V is applied to the board.
User button with name WKUP connected to STM32F107VCT6 pin 23 (PA0/WKUP).
Reset button with name RESET connected to STM32F107VCT6 pin 14 (NRST).
CONNECTOR DESCRIPTIONS
JTAG:
The JTAG connector allows the software debugger to talk via a JTAG (Joint Test Action Group) port directly to the core. Instructions may be inserted and executed by the core thus allowing STM32F107VCT6 memory to be programmed with code and executed step by step by the host software.
For more details refer to IEEE Standard 1149.1 - 1990 Standard Test Access Port and Boundary Scan Architecture and STM32F107VCT6 datasheets and users manual.
Pin # Signal Name Pin # Signal Name
1 3.3V 2 3.3V
3 TRST 4 GND
5 TDI 6 GND
7 TMS 8 GND
9 TCK 10 GND
Page10
11 PULL-DOWN 12 GND
13 TDO 14 GND
15 RST 16 GND
17 PULL-DOWN 18 GND
19 +5V_JTAG 20 GND

PWR_JACK:

Pin # Signal Name
1 Power Input
2 GND

USB_OTG

Pin # Signal Name
1 +5V_OTG_PWR
2 USB_OTG_D-
3 USB_OTG_D+
4 OTG_ID
5 GND
3V_BAT
Pin # Signal Name
1 VBAT
2 GND
Page11
EXT1
Pin # Signal Name Pin # Signal Name
1 3.3V 2 GND
3 RST 4 WKUP
5 EXT1-5 6 EXT1-6
7 EXT1-7 8 EXT1-8
9 EXT1-9 10 EXT1-10
11 EXT1-11 12 EXT1-12
13 EXT1-13 14 USB_FAULT
15 EXT1-15 16 EXT1-16
17 EXT1-17 18 EXT1-18
19 EXT1-19 20 EXT1-20
21 EXT1-21 22 EXT1-22
23 EXT1-23 24 EXT1-24
25 EXT1-25 26 EXT1-26
27 EXT1-27 28 EXT1-28
29 EXT1-29 30 EXT1-30
31 EXT1-31 32 EXT1-32
33 EXT1-33 34 EXT1-34
35 EXT1-35 36 VREF+
37 VREF- 38 VBAT
39 GND 40 +5V
Page12
EXT2
Pin # Signal Name Pin # Signal Name
1 3.3V 2 GND
3 RST 4 EXT2-4
5 EXT2-5 6 EXT2-6
7 EXT2-7 8 EXT2-8
9 EXT2-9 10 EXT2-10
11 USB_VBUSON 12 EXT2-12
13 EXT2-13 14 EXT2-14
15 EXT2-15 16 EXT2-16
17 EXT2-17 18 EXT2-18
19 EXT2-19 20 EXT2-20
21 EXT2-21 22 EXT2-22
23 EXT2-23 24 EXT2-24
25 EXT2-25 26 EXT2-26
27 EXT2-27 28 EXT2-28
29 EXT2-29 30 EXT2-20
31 EXT2-31 32 EXT2-32
33 EXT2-33 34 EXT2-34
35 EXT2-35 36 EXT2-36
37 EXT2-37 38 GND
39 GND 40 +5V
Page13
MECHANICAL DIMENSIONS
Page14

AVAILABLE DEMO SOFTWARE

Demo examples Blinking LED and USB OTG for EW-ARM 5.50
Page15

ORDER CODE

STM32-H107 – assembled and tested (no kit, no soldering required)
How to order? You can order to us directly or by any of our distributors. Check our web www.olimex.com/dev for more info.
Revision history:
REV. Initial - create November 2009
REV.A - edited by TU
REV. B - more detailed mechanical dimensions added
- more programmers added in BOARD USE REQUIREMENTS
REV. C - edited June 2011 - changed schematic
Page16
Disclaimer:
© 2011 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, are registered trademarks of Olimex Ltd. Other terms and product names may be trademarks of others.
The information in this document is provided in connection with Olimex products. No license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Olimex products.
Neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder.
The product described in this document is subject to continuous development and improvements. All particulars of the product and its use contained in this document are given by OLIMEX in good faith. However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded.
This document is intended only to assist the reader in the use of the product. OLIMEX Ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product.
Page17
Loading...