Clicker 2
Clicker 2
I want to express my thanks to you for being interested in our products and for having
confidence in MikroElektronika.
The primary aim of our company is to design and produce high quality electronic products
and to constantly improve the performance thereof in order to better suit your needs.
Nebojsa Matic
General Manager
The PIC and Windows logos and product names are trademarks of Microchip Technology and Microsoft in the U.S.A. and other countries.
Page 2
Table of contents
Page 3
Introduction to clicker 2 for STM32
clicker 2 for STM32 is a compact dev. kit
with two mikroBUS sockets for click board
connectivity. You can use it to quickly build
your own gadgets with unique functionalities
and features. It carries the STM32F407VGT6,
a 32-bit ARM Cortex-M4 microcontroller, two
indication LEDs, two general purpose buttons,
a reset button, an on/off switch, a li-polymer
battery connector, a USB Mini-B connector and
two mikroBUS socket. A JTAG connector and
a 2x26 pinout for interfacing with external
electronics are also provided. The mikroBUS
connector consists of two 1x8 female headers
with SPI, I2C, UART, RST, PWM, Analog and
Interrupt lines as well as 3.3V, 5V and GND
power lines. Clicker 2 for STM32 board can be
powered over a USB cable.
Page 4
Key features
1 12
2 13
1 ON/OFF switch
3
2 Pads for connecting external ON/OFF switch
14
3 Jumper for enabling RTC power supply 4
4 25 MHz crystal oscillator
5
5 32.768 KHz crystal oscillator
6 2x26 connection pads
6 6
7 mikroBUS sockets 1 and 2
8 Pushbuttons 7 7
9 Additional LEDs
10 LTC3586 USB power manager IC
11 Indication LEDs 8 8
12 RESET button
13 USB mini-B connector 9 9
14 STM32F407VGT6
10 15
15 Battery connector
16 JTAG programmer connector 11 16
Page 5
VCC-BAT VCC-3.3V VCC-3.3V VCC-3.3V 3V3 VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V
PB11-I2C2_SDA
PB10-I2C2_SCL
PE13-MB2_RST
PE14-MB2_INT
PE10-MB1_INT
PE9-MB1-PWM
PE7-MB1_RST
PE11-MB2_CS
PA3-MB2_AN
PE8-MB1_CS
PC5-VSENSE
VSYS
C9 C10 C11 C12 C35 C36 C37 C38 C40 C39
PE15-LD2
PE12-LD1
PA7-PWM
PA6-PWM
PA5-PWM
VCC-3.3V VCC-5V VCC-3.3V VCC-5V
PB0-PWM
CN1
HDR1 HDR2
PB1-AN
PC4-AN
PA4-AN
BATT CONN C4 2.2uF VCC-3.3V RESET#
100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF 10uF 10uF
R7 PC0-AN
AVCC
PC1-AN
100K PA2-MB1_AN PE9-MB1-PWM PA3-MB2_AN PD12-MB2-PWM PC2-AN PB9-PWM
AN PWM AN PWM
PE7-MB1_RST PE10-MB1_INT PE13-MB2_RST PE14-MB2_INT PC3-AN PB8-PWM
RST INT RST INT AN
PE8-MB1_CS PD6-UART2_RX PE11-MB2_CS PD9-UART3_RX PB1-AN PE5-PWM
CS RX CS RX
PC10-SPI3_SCK PD5-UART2_TX PB13-SPI2_SCK PD8-UART3_TX PA4-AN PB0-PWM
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
SCK TX SCK TX PWM
SW1 PC11-SPI3_MISO PA8-I2C3_SCL PB14-SPI2_MISO PB10-I2C2_SCL PC4-AN PA5-PWM
LDO3V3 LDO3V3 VCC-3.3V VCC-3.3V VCC-3.3V LDO3V3 LDO3V3 U1 MISO SCL MISO SCL
LD4B JS202011AQN PC12-SPI3_MOSI PC9-I2C3_SDA PB15-SPI2_MOSI PB11-I2C2_SDA PD3-INT PA6-PWM
MOSI SDA MOSI SDA
VCAP
PB11
PB10
PE15
PE14
PE13
PE12
PE11
PE10
PE9
PE8
PE7
PB2
PB1
PB0
PC5
PC4
PA7
PA6
PA5
PA4
PA3
VDD
VDD
GND
R15 RED R16 PD1-INT PA7-PWM
1 2
C14 C15 C16 C17 3 3.3V 5V 3.3V 5V
PD2-INT INT PE1-GPIO
2K2 10K 22uF 1uF 10nF 1uF PB12-SENSEL 51 25 PA2-MB1_AN GND GND GND GND
PB12 PA2 PD0-INT PE2-GPIO
PD4-BATSTAT 2 PWR-EN PB13-SPI2_SCK 52 24 PA1-UART4_RX
R9 PB13 PA1 PC8-GPIO PE3-GPIO
C18 PB14-SPI2_MISO 53 23 PA0-UART4_TX
R17 PB14 PA0-WKUP PD15-GPIO PE4-GPIO
1 PB15-SPI2_MOSI 54 22
R18 100nF 1M R28 PB15 VDDA PD14-GPIO PE6-GPIO
M2 PD8-UART3_TX 55 21
PD8 VREF+ PD13-GPIO PB6-GPIO
3K3 PD9-UART3_RX 56 20
PD9 GNDA PB7-GPIO PB5-GPIO
VSYS VSYS PD10-GPIO 57 19
PD10 VDD PC7-GPIO PD7-GPIO
DMP2305U PD11-GPIO 58 18 PC3-AN
C19 C20 PD11 PC3 PD11-GPIO PC13-GPIO
PD12-MB2-PWM 59 17 PC2-AN C5 C6
U2 PD12 PC2 PD10-GPIO PA1-UART4_RX
31
30
29
28
27
26
25
24
23
22
21
20
100pin TQFP
PD14-GPIO 61 15 PC0-AN X1 FP1 SCK TX
PD14 PC0 VCC-3.3V VCC-3.3 PB14-SPI2_MISO PB10-I2C2_SCL
CHRG#
PROG
GATE
FB1
VIN1
SW1
SW2
VIN2
FB2
VIN4
EN1
EN2
VCC-3.3V
ILIM0
ILIM1
PA13 PE5
NTC
VC3
FB4
FB3
PDR_ON(RFU)
VCAP PE4
74 2 PE3-GPIO VCC-BAT VCC-BAT
GND PE3
C24 75 1 PE2-GPIO
1
2
3
4
5
6
7
8
9
10
11
12
BOOT0
2.2uF 1M
PA14
PA15
PC10
PC11
PC12
2K94
VDD
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PB3
PB4
PB5
PB6
PB7
PB8
PB9
15K
PE0
PE1
VCC-3.3V
300pF R11
C25 VCC-5V PB12-SENSEL
100nF R1 R2
3V3 1K
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
DMP2305U R12
L3 VCC-5V VCC-5V VCC-5V VCC-5V VCC-5V VCC-3.3V 100K
2.2uH 2K2 2K2 VCC-USB
C29 C30 C27 C28 LD3 J1 R13
R26 LDO3V3 CN2 100K
VCC-USB LDO3V3 T2 VCC-3.3V VCC-3.3V T3 R24 FP2 PC5-VSENSE
88K7 10pF 22uF 1uF 10nF
VCC-USB 100 FERRITE
USB-DET 1
R31 VBUS
R32
R33 100K C13 R14
R8 R5 R6 USB-D_N 2
C31 C32 R27 D- 100nF 100K
470 10K 10K USB-D_P 3
PC11-SPI3_MISO
PC12-SPI3_MOSI
16K9 D+
PC10-SPI3_SCK
PD6-UART2_RX
PD5-UART2_TX
22uF 10uF 4
PD4-BATSTAT
ID
5 GND
PD7-GPIO
PE12-LD1
PB5-GPIO
PB6-GPIO
PB7-GPIO
PE1-GPIO
VSYS
PB8-PWM
PB9-PWM
PE15-LD2
R25 C26
PA10-T3
PD0-INT
PD1-INT
PD2-INT
PD3-INT
PE0-T2
PE0-T2
1M
TRST
10nF
TDO
TCK
USB MINIB
TDI
Page 6
1. Power supply
USB power supply
You can supply power to the board with a
Mini-B USB cable provided in the package.
On-board voltage regulators provide the
appropriate voltage levels to each component
on the board. Power LED (GREEN) will
indicate the presence of power supply.
Figure 1-1:
Connecting USB
power supply
Page 7
LDO3V3 LDO3V3 VCC-3.3V VCC-3.3V VCC-3.3V LDO3V3 SW1 LDO3V3 AVCC VCC-3.3V
LD4B JS202011AQN
RED FP1
R15 R16 C14 C15 C16 C17 3 VCC-BAT VCC-BAT
22uF 1uF 10nF 1uF M1
2K2 10K R10
PD4-BATSTAT 2 PWR-EN 1M C1 C2
C18 100nF 2.2uF
1 R17 R11
PB12-SENSEL
R18 100nF 1M
M2
1K
DMP2305U R12
3K3
VSYS VSYS 100K
DMP2305U U2 R13
C19 C20 100K
LTC3586 PC5-VSENSE VSYS
31
30
29
28
27
26
25
24
23
22
21
20
2.2uF 2.2uF
R14 HDR1 HDR2
C13
CHRG#
PROG
FB1
VIN1
SW1
SW2
VIN2
FB2
VIN4
EN1
EN2
GATE
100nF 100K
VCC-BAT
32 19
BAT SWCD3
PWR-EN 33 18 PWR-EN
EN4 EN3
34 17
VSYS VOUT VOUT3 VCC-BAT
VCC-USB
L1 3.3uH
35
36
VBUS
VBUS
LTC3586 VOUT3
VIN3
16
15
VCC-3.3V
VCC-3.3V VCC-3.3V
AN
37 14 PWM
SW VIN3 L2 2.2uH CN1
PC6-FAULT 38 13 C21
FAULT# SWAB3 R19 BATT CONN
R20
CLPROG
LDO3V3
VOUT4
VOUT4
VCC-3.3V
ILIM0
ILIM1
SW4
INT
NTC
VC3
FB4
FB3
C24
1
2
3
4
5
6
7
8
9
10
11
12
R21 R22
R23 105K
2K94 15K
300pF VCC-USB
C25 VCC-5V
100nF CN2
FP2
L3 VCC-5V VCC-5V VCC-5V VCC-5V VCC-5V VCC-3.3V FERRITE
2.2uH 1 RX
VBUS
C29 C30 C27 C28 LD3 2 SCK TX
R26 D-
VCC-USB LDO3V3 3 D+ SDI SCL
88K7 10pF 22uF 1uF 10nF 4
VCC-USB ID SDO SDA
5 GND VCC-3.3V VCC-3.3V
R8
C31 C32 R27 C26
16K9 470
22uF 10uF 10nF
USB MINIB
VSYS
Page 8
2. STM32F407VGT6 microcontroller
The clicker 2 for STM32 development tool comes with the
STM32F407VGT6 device. This 32-bit high performance
JTAG & SW
microcontroller is rich with on-chip peripherals and features EXT. MEM. CO
ETH. MAC 10 NTR
/100 RNG
1 MB of Flash and 192+4 KB of SRAM. It has integrated full FLASH 1MB
speed USB 2.0. support. DMA 2 CAM. INTERF
ACE
SRAM 176
KB
DMA 1 USB OTG FS
SRAM 16KB
USB OTG HS
AHB BUS -
MATRIX
GPIO PORT
Key microcontroller features
- 16-bit and 32-bit Timers, up to 168Mhz
(A,B,C,D,E,F,G
SDIO/MMC
,H,I)
ARM
Cortex-M
IWDG
RTC
4
z
3 x TIM/PW STM32F407 2 x TIMER 32
APB2 84MH
- 32-bit ARM Cortex-M4 architecture M 16-bit VGT6 -bit
z
APB1 42MH
3 x TIMER 16 5 x TIMER 16
- 1 MB of Flash memory -bit -bit
1 x USART POWER / RE 2 x USART
- 192 +4 KB SRAM SET
1 x SPI 2 x UART
- 3x 12-bit ADC WWDG
temperature 2 x SPI
- Internal Oscillator 25MHz, 32kHz, PLL; sensor 3 x TIMER 16
-bit
3 x ADC 3 x I2C
- SPI, I2C, CAN, USB, USART, UART, RTC, Ethernet 2 x DAC
2 x CAN
Page 9
3. Programming the microcontroller
Figure 3-1:
STM32F407VGT6
microcontroller
Page 10
3.1 Programming with mikroBootloader
You can program the microcontroller with a step 1 Connecting clicker 2 for STM32
bootloader which is preprogrammed by default.
To transfer .hex file from a PC to MCU you need
bootloader software (mikroBootloader USB HID)
which can be downloaded from:
www.mikroe.com/downloads/get/2153/
mikrobootloader_usb_hid_STM32F407VGT6.zip
01
After the mikroBootloader software is downloaded,
unzip it to desired location and start it.
Software
File folder
Page 11
step 2 Browsing for .HEX file step 3 Selecting .HEX file
01
01
02
01 Click the Browse for HEX button and from a 01 Select .HEX file using open dialog window.
pop-up window (Figure 3.4) choose the .HEX file 02 Click the Open button.
which will be uploaded to MCU memory.
Page 12
step 4 Uploading .HEX file
01
01
Figure 3-5: Begin uploading Figure 3-6: Progress bar
01 To start .HEX file bootloading click the 01 Progress bar enables you to monitor .HEX file uploading.
Begin uploading button.
Page 13
step 5 Finish upload
01
Figure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready for next job
Page 14
3.2 Programming with mikroProg programmer
Page 15
mikroProg Suite for ARM software
On-board mikroProg programmer requires special programming software called mikroProg Suite
for ARM. This software is used for programming of all supported microcontroller families with
ARM Cortex-M3 and Cortex-M4 cores. The software has an intuitive interface and SingleClick
programming technology. To begin, first locate the installation archive on the link bellow:
http://www.mikroe.com/downloads/get/1809/mikroprog_suite_for_arm.zip
After downloading, extract the package and double click the executable setup file, to start installation.
Quick guide
01 Click the Detect MCU button in order to recognize the device ID.
03 If you want to write the HEX file into the microcontroller, first
make sure to load the target HEX file using the Load button.
Then click the Write button to begin programming. Figure 3-10:
mikroProg Suite
04 Click the Erase button to clear the microcontroller memory. for ARM window
Page 16
3.3 Programming with ST-LINK V2 programmer
The microcontroller can also be In order to adjust the ST-LINK V2 programmer to
programmed with the ST-LINK V2 be connected to the development system, it is
programmer and mikroProg Suite necessary to provide the appropriate adapter
for ARM software. This programmer such as the mikroProg to ST-LINK V2 adapter.
connects with the clicker 2 board via 2x5 headers should be first soldered on
mikroProg to ST-LINK V2 adapter the CN3 connector pads. Then you should
(Figure 3-11). plug the adapter into the ST-LINK V2
programmer (2x10 header), and plug
an IDC10 flat cable in headers,
Figure 3-12.
Figure 3-11:
mikroProg to
ST-LINK V2
adaper Figure 3-12:
Connecting
ST-LINK V2
programmer
Page 17
VCC-3.3V VCC-3.3V
C9 C10
C4 2.2uF VCC-3.3V
100nF 100nF
R7 AVCC
100K
VCC-3.3V 3V3
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
C11 C12
U1
100nF 100nF
VCAP
PB11
PB10
PE15
PE14
PE13
PE12
PE11
PE10
PE9
PE8
PE7
PB2
PB1
PB0
PC5
PC4
PA7
PA6
PA5
PA4
PA3
VDD
VDD
GND
51 25
PB12 PA2
52 24
PB13 PA1
53 23
VCC-3.3V VCC-3.3V PB14 PA0-WKUP
54 22
PB15 VDDA
55 21
PD8 VREF+
56 20
C35 C36 PD9 GNDA
57 19
PD10 VDD
58 18
100nF 100nF PD11 PC3
59 17 C5 C6
PD12 PC2
60 16 22pF 22pF
PD13 PC1
100pin TQFP
61 15 X1
PD14 PC0
62 14 RESET#
PD15 NRST
VCC-3.3V VCC-3.3V 63 13 OSC_OUT
STM32F407VGT6
PC6 OSC_OUT 25MHz
64 12 OSC_IN
PC7 OSC_IN
65 11
C37 C38 PC8 VDD
66 10 OSC32_OUT
PC9 GND
67 9 OSC32_IN
100nF 100nF PA8 PC15/OSC32_OUT
68 8
PA9 PC14/OSC32_IN X2
69 7
PA10 PC13/TAMPER_RTC
70 6
PA11 VBAT
71 5 32.768KHz
PA12 PE6
VCC-3.3V VCC-3.3V TMS 72 4 C33 C34
PA13 PE5
73 3 10pF 10pF
PDR_ON(RFU)
VCAP PE4
74 2
C40 C39 GND PE3
75 1
C7 VDD PE2
BOOT0
10uF 10uF 2.2uF
PA14
PA15
PC10
PC11
PC12
VDD
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PE0
PE1
NOTE Before attaching
VCC-3.3V
the programming
3V3
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
connector, you VCC-3.3 J1
LDO3V3
TRST
TDO
TCK
TDI
Page 18
4. Buttons and LEDs
Page 19
VCC-3.3V VCC-3.3V
C9 C10
PE15-LD2
PE12-LD1
C4 2.2uF VCC-3.3V VCC-3.3V
100nF 100nF
R7 R3
AVCC 10K
100K RESET# R4 RST
VCC-3.3V 3V3 220
T1
C3
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
C11 C12 100nF
U1
100nF 100nF
VCAP
PB11
PB10
PE15
PE14
PE13
PE12
PE11
PE10
PE9
PE8
PE7
PB2
PB1
PB0
PC5
PC4
PA7
PA6
PA5
PA4
PA3
VDD
VDD
GND
51 25
PB12 PA2
52 24
PB13 PA1
53 23
VCC-3.3V VCC-3.3V PB14 PA0-WKUP
54 22
PB15 VDDA
55 21
PD8 VREF+
56 20
C35 C36 PD9 GNDA
57 19
PD10 VDD
58 18
100nF 100nF PD11 PC3
59 17 C5 C6
PD12 PC2
60 16 22pF 22pF
PD13 PC1
100pin TQFP
61 15 X1
PD14 PC0
62 14 RESET#
PD15 NRST
VCC-3.3V VCC-3.3V 63 13 OSC_OUT
STM32F407VGT6
PC6 OSC_OUT 25MHz
64 12 OSC_IN
PC7 OSC_IN
65 11
C37 C38 PC8 VDD
66 10 OSC32_OUT
PC9 GND
67 9 OSC32_IN
100nF 100nF PA8 PC15/OSC32_OUT
68 8
PA9 PC14/OSC32_IN X2
PA10-T3 69 7
PA10 PC13/TAMPER_RTC
70 6
PA11 VBAT
71 5 32.768KHz
PA12 PE6
VCC-3.3V VCC-3.3V 72 4 C33 C34
PA13 PE5
73 3 10pF 10pF
PDR_ON(RFU)
VCAP PE4
74 2
C40 C39 GND PE3
75 1
C7 VDD PE2
BOOT0
10uF 10uF 2.2uF
PA14
PA15
PC10
PC11
PC12
VDD
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PE0
PE1
VCC-3.3V
3V3 R1 R2
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
2K2 2K2
J1
LDO3V3 T2 VCC-3.3V VCC-3.3V T3
R33 100K R5 R6
10K 10K
PE12-LD1
PE15-LD2
PA10-T3
PE0-T2
PE0-T2
Page 20
5. Power management and battery charger
Page 21
6. Oscillators
Page 22
C4 2.2uF VCC-3.3V
100nF 100nF
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
U1
VCAP
PB11
PB10
PE15
PE14
PE13
PE12
PE11
PE10
PE9
PE8
PE7
PB2
PB1
PB0
PC5
PC4
PA7
PA6
PA5
PA4
PA3
VDD
VDD
GND
VCC-3.3V 3V3 51 25
PB12 PA2
52 24
PB13 PA1
53 23
C11 C12 PB14 PA0-WKUP
54 22
PB15 VDDA
55 21
100nF 100nF PD8 VREF+
56 20
PD9 GNDA
57 19
PD10 VDD
58 18
PD11 PC3
59 17 C5 C6
PD12 PC2
VCC-3.3V VCC-3.3V 60 16 22pF 22pF
PD13 PC1
100pin TQFP
61 15 X1
PD14 PC0
62 14
C35 C36 PD15 NRST
63 13 OSC_OUT
STM32F407VGT6
PC6 OSC_OUT 25MHz
64 12 OSC_IN
100nF 100nF PC7 OSC_IN
65 11
PC8 VDD
66 10 OSC32_OUT
PC9 GND
67 9 OSC32_IN
PA8 PC15/OSC32_OUT
68 8
PA9 PC14/OSC32_IN X2
VCC-3.3V VCC-3.3V 69 7
PA10 PC13/TAMPER_RTC
70 6
PA11 VBAT
71 5 32.768KHz
C37 C38 PA12 PE6
72 4 C33 C34
PA13 PE5
73 3 10pF 10pF
PDR_ON(RFU)
100nF 100nF VCAP PE4
74 2
GND PE3
75 1
C7 VDD PE2
BOOT0
2.2uF
PA14
PA15
PC10
PC11
PC12
VDD
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PE0
PE1
VCC-3.3V
VCC-3.3V VCC-3.3V
3V3
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
C40 C39
J1
10uF 10uF
LDO3V3
R33 100K
Figure 6-3:
Crystal
NOTE The use of crystal in all other schematics is implied even if oscillator
it is purposely left out, because of the schematics clarity. schematic
Page 23
7. USB connection
STM32F407VGT6 microcontrollers has an integrated USB module, which enables you to implement USB
communication functionality to your clicker 2 board. Connection with target USB host is done over a Mini-B
USB connector which is positioned next to the battery connector.
Figure 7-1:
Connecting USB
cable to clicker 2
Page 24
C4 2.2uF VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V 3V3 VCC-3.3V VCC-3.3V
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
U1
VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V
VCAP
PB11
PB10
PE15
PE14
PE13
PE12
PE11
PE10
PE9
PE8
PE7
PB2
PB1
PB0
PC5
PC4
PA7
PA6
PA5
PA4
PA3
VDD
VDD
GND
51 25 C37 C38 C40 C39
PB12 PA2
52 24
PB13 PA1
53 23 100nF 100nF 10uF 10uF
PB14 PA0-WKUP
54 22
PB15 VDDA
55 21
PD8 VREF+
56 20
PD9 GNDA
57 19
PD10 VDD
58 18
PD11 PC3
59 17 C5 C6
PD12 PC2
60 16 22pF 22pF
PD13 PC1
100pin TQFP
61 15 X1
PD14 PC0
62 14
PD15 NRST
63 13 OSC_OUT
STM32F407VGT6
PC6 OSC_OUT 25MHz
64 12 OSC_IN
PC7 OSC_IN
65 11
PC8 VDD
66 10 OSC32_OUT
PC9 GND
67 9 OSC32_IN
PA8 PC15/OSC32_OUT X2
USB-DET 68 8
PA9 PC14/OSC32_IN
69 7
PA10 PC13/TAMPER_RTC
USB-D_N 70 6 32.768KHz
R29 PA11 VBAT
USB-D_P 71 5
R30 PA12 PE6 C33 C34
72 4
PA13 PE5 10pF 10pF
73 3
PDR_ON(RFU)
VCAP PE4
74 2
GND PE3
75 1
C7 VDD BOOT0 PE2 VCC-USB
2.2uF CN2
PA14
PA15
PC10
PC11
PC12
VDD
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PE0
PE1
VCC-3.3V R24 FP2
100 FERRITE
USB-DET 1
VBUS
3V3 USB-D_N 2
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
D-
USB-D_P 3 D+
4 ID
J1A 5
LDO3V3 GND
R25 C26
1M
R33 100K 10nF
USB MINIB
Page 25
8. Pads
VCC-3.3V VCC-3.3V VCC-3.3V 3V3 VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V VCC-3.3V
100nF 100nF 100nF 100nF 100nF 100nF 100nF 100nF 10uF 10uF
PB11-I2C2_SDA
PB10-I2C2_SCL
PA7-PWM
PA6-PWM
PA5-PWM
PB0-PWM
PB1-AN
PC4-AN
PA4-AN
C4 2.2uF VCC-3.3V
R7 AVCC
100K
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
VSYS
U1
HDR1 HDR2
RESET#
VCAP
PB11
PB10
PE15
PE14
PE13
PE12
PE11
PE10
PE9
PE8
PE7
PB2
PB1
PB0
PC5
PC4
PA7
PA6
PA5
PA4
PA3
VDD
VDD
GND
PC0-AN 51 25
PB12 PA2
PC1-AN PB13-SPI2_SCK 52 24 PA1-UART4_RX
R9 PB13 PA1
PC2-AN PB14-SPI2_MISO 53 23 PA0-UART4_TX PB9-PWM
PB14 PA0-WKUP
PC3-AN PB15-SPI2_MOSI 54 22 PB8-PWM
AN R28 PB15 VDDA
PB1-AN 55 21 PE5-PWM
PD8 VREF+
PA4-AN 56 20 PB0-PWM
PD9 GNDA PWM
PC4-AN PD10-GPIO 57 19 PA5-PWM
PD10 VDD
PD3-INT PD11-GPIO 58 18 PC3-AN PA6-PWM
PD11 PC3
PD1-INT 59 17 PC2-AN C5 C6 PA7-PWM
PD12 PC2
PD2-INT INT PD13-GPIO 60 16 PC1-AN 22pF 22pF PE1-GPIO
PD13 PC1
100pin TQFP
PD0-INT PD14-GPIO 61 15 PC0-AN X1 PE2-GPIO
PD14 PC0
PC8-GPIO PD15-GPIO 62 14 RESET# PE3-GPIO
PD15 NRST
PD15-GPIO 63 13 OSC_OUT PE4-GPIO
PD14-GPIO
PD13-GPIO
PC7-GPIO
PC8-GPIO
64
65
PC6
PC7
PC8
STM32F407VGT6 OSC_OUT
OSC_IN
VDD
12
11
OSC_IN 25MHz PE6-GPIO
PB6-GPIO
PB7-GPIO 66 10 OSC32_OUT PB5-GPIO
PC9 GND
PC7-GPIO 67 9 OSC32_IN PD7-GPIO
PA8 PC15/OSC32_OUT
PD11-GPIO 68 8 PC13-GPIO
PA9 PC14/OSC32_IN X2
PD10-GPIO 69 7 PC13-GPIO PA1-UART4_RX
PA10 PC13/TAMPER_RTC RX
PB13-SPI2_SCK 70 6 PA0-UART4_TX
SCK PA11 VBAT TX
PB14-SPI2_MISO 71 5 PE6-GPIO 32.768KHz PB10-I2C2_SCL
SDI PA12 PE6 SCL
PB15-SPI2_MOSI 72 4 PE5-PWM C33 C34 PB11-I2C2_SDA
SDO PA13 PE5 SDA
73 3 PE4-GPIO 10pF 10pF
VCC-3.3V
PDR_ON(RFU)
VCAP PE4 VCC-3.3V
74 2 PE3-GPIO
GND PE3
75 1 PE2-GPIO
C7 VDD PE2
BOOT0
2.2uF
PA14
PA15
PC10
PC11
PC12
VDD
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PE0
PE1
VCC-3.3V
76 3V3
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
J1
LDO3V3
R33 100K
PD7-GPIO
PB5-GPIO
PB6-GPIO
PB7-GPIO
PE1-GPIO
PB8-PWM
PB9-PWM
PD0-INT
PD1-INT
PD2-INT
PD3-INT
Most microcontroller pins are available for further connectivity via two 1x26 rows of connection
pads on both sides of the clicker 2 for STM32 board. They are designed to match additional
shields, such as Battery Boost shield, Gaming, PROTO shield and others.
Page 26
9. Pinout
Reset pin RST VSYS System power supply
Reference Ground GND GND Reference Ground
PC0
PC1
PB9 PC2
PB8 PC3 Analog Lines
PE5 PB1
PWM lines PB0 PA4
PA5 PC4
PA6 PD3
PA7 PD1 Interrupt Lines
PE1 PD2
PE2 PD0
PE3 PC8
Digital I/O lines
PE4 PD15
PE6 PD14
PB6 PD13 Digital I/O lines
PB5 PB7
PD7 PC7
PC13 PD11
RX PA1 PD10
UART4 Lines TX PA0 PB13 SCK
SCL PB10 PB14 SDI SPI2 Lines
I2C2 Lines
SDA PB11 PB15 SDO
3.3V power supply 3.3V 3.3V 3.3V power supply
Reference Ground GND GND Reference Ground
Digital lines Analog Lines Interrupt Lines SPI Lines I2C Lines UART lines PWM lines
Page 27
9.1 mikroBUS pinouts
Having two mikroBUS sockets and an additional connection pad, clicker 2 for STM32 utilizes all of the STM32F407VGT6s I/Os.
Each of the three UART outputs has its own separate connection pin (either on mikroBUS 1 or 2, or on the 2x26 connection pad).
Of the two SPI lines, one is routed to mikroBUS 1; the other is shared between mikroBUS 2 and the pins on the connection pad.
Same goes for the two available I2C lines.
PD6 RX
SCK PC10 PD5 TX UART2 Lines
SPI3 MISO PC11 PA8 SCL
Lines I2C3 Lines
MOSI PC12 PC9 SDA
PD9 RX
Figure 9-1: SPI2 SCK PB13 PD8 TX UART3 Lines
Lines MISO PB14 PB10 SCL
mikroBUS MOSI PB15
I2C2 Lines
PB11 SDA
individual and
shared lines
Page 28
10. click boards are plug and play!
www.mikroe.com/click
Figure 10-1:
clicker 2 for STM32
driving click boards
Page 29
RFid click Relay click 8x8 click FM click Bluetooth2 click Thunder click USB SPI click
BarGraph click 7seg click THERMO click Gyro click EEPROM click LightHz click Pressure click
Page 30
11. Dimensions
Page 31
DISCLAIMER
All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any
other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated
or transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or
local use, but not for distribution. Any modification of this manual is prohibited.
MikroElektronika provides this manual as is without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties
or conditions of merchantability or fitness for a particular purpose.
MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall
MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages
for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product,
even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this
manual at any time without prior notice, if necessary.
The products of MikroElektronika are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment
in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication
systems, air traffic control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal
injury or severe physical or environmental damage (High Risk Activities). MikroElektronika and its suppliers specifically disclaim any expressed or
implied warranty of fitness for High Risk Activities.
TRADEMARKS
The MikroElektronika name and logo, mikroC, mikroBasic, mikroPascal, Visual TFT, Visual GLCD, mikroProg, Ready, MINI, mikroBUS, EasyPIC, EasyAVR,
Easy8051, click boards and mikromedia are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.
All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and
are only used for identification or explanation and to the owners benefit, with no intent to infringe.
Page 32
If you want to learn more about our products, please visit our web site at www.mikroe.com
If you are experiencing some problems with any of our products or just need additional
information, please place your ticket at www.mikroe.com/support
If you have any questions, comments or business proposals,
clicker 2 for STM32 manual
do not hesitate to contact us at [email protected] ver. 1.00
0 100000 027103