A compact starter kit with your favorite
microcontroller and two mikroBUS™ sockets
Page 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.
The PIC® and Windows® logos and product names are trademarks of Microchip Technology® and Microsoft® in the U.S.A. and other countries.
TO OUR VALUED CUSTOMERS
Nebojsa Matic
General Manager
Page 3
Table of contents
Introduction to clicker 2 for STM32 4
Key features 5
1. Power supply 7
2. STM32F407VGT6 microcontroller 9
Key microcontroller features 9
3. Programming the microcontroller 10
3.1 Programming with mikroBootloader 11
step 1 – Connecting clicker 2 for STM32 11
step 2 – Browsing for .HEX file 12
step 3 – Selecting .HEX file 12
step 4 – Uploading .HEX file 13
step 5 – Finish upload 14
3.2 Programming with mikroProg™ programmer 15
mikroProg Suite™ for ARM® software 16
3.3 Programming with ST-LINK V2 programmer 17
4. Buttons and LEDs 19
5. Power management and battery charger 21
6. Oscillators 22
7. USB connection 24
8. Pads 26
9. Pinout 27
9.1 mikroBUS™ pinout 28
10. click™ boards are plug and play! 29
11. Dimensions 31
Page 4
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.
Introduction to clicker 2 for STM32
Page 5
1 ON/OFF switch
2 Pads for connecting external ON/OFF switch
3 Jumper for enabling RTC power supply
4 25 MHz crystal oscillator
5 32.768 KHz crystal oscillator
6 2x26 connection pads
7 mikroBUS™ sockets 1 and 2
8 Pushbuttons
9 Additional LEDs
10 LTC3586 USB power manager IC
11 Indication LEDs
12 RESET button
13 USB mini-B connector
14 STM32F407VGT6
15 Battery connector
16 JTAG programmer connector
12
13
14
6
7
8
9
15
16
1
2
3
4
5
6
7
8
9
11
10
Key features
Page 6
VCC-BAT
CN1BATT CONN
VCC-3.3VAVCCFP1
C1100nF
C22.2uF
R310K
VCC-3.3V
C3
100nF
R4
220
RSTRESET#
T1
30 29 28 2734 33
58575655545352
46 36 3542434445 3750
9
4849
1112
32
72
69686766656463
43
7877
2423
181716151413
5678
10
79 80
12
22212019
62616059
3839404147
71
31
51
70
26
25
76
757473
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
PE11
PE10
PE6VBAT
PC13/TAMPER_RTCPC14/OSC32_IN
PA10PA9PA8
PD9
PE13
PE12
PB13PB14PB15PD8
PE14
PE15
PB5
PB4
PB3
PB7
PD7
PD6
PE5PE4
PE1
PE0
PB9
PB8
BOO
T0
PB6
OSC_IN
PA0-WKUPVDDA
VREF+GNDA
VDDPC3
PA12PA11
PB12
PC8
NRST
VDDGND
PE7
PDR_
ON
(RFU
)VD
D
PE2PE3
PA2PA1
VCAP
VDD
PC9
PD13
PB10
PB11
PD10
PE8
PB2
PD11
PD14
PD5
PC2PC1PC0
PB1
PE9
PD12
PC7OSC_OUT
PC15/OSC32_OUT
PD15PC6
PA13
PC10
PA14
VCAPGNDVDD
PA15
PC11
PC12
PD0
PA6
PA5
PC4
PA7
PC5
PB0
GN
DVD
D
PA3
PA4
PD1
PD2
PD3
PD4
100pin TQFPSTM32F407VGT6
U1
VCC-3.3V
AVCC
OSC32_OUT
X1
C522pF
C622pF
OSC_INOSC_OUT
X2
32.768KHzC3410pF
C3310pF
OSC32_IN
PC11
-SPI
3_M
ISO
PC12
-SPI
3_M
OSI
PC10
-SPI
3_SC
K
PB14-SPI2_MISOPB15-SPI2_MOSI
PB13-SPI2_SCK
PA8-I2C3_SCLPC9-I2C3_SDA
PB10
-I2C
2_SC
LPB
11-I
2C2_
SDA
PA0-UART4_TXPA1-UART4_RX
PD5-
UAR
T2_T
XPD
6-U
ART2
_RX
PD8-UART3_TXPD9-UART3_RX
R31
R32
R9
R28
USB-D_PUSB-D_N R29
R30
LDO3V3J1
VCC-3.3V
PE5-PWM
PB9-
PWM
PB8-
PWM
PB0-
PWM
PA7-
PWM
PA6-
PWM
PA5-
PWM
R7
100K
C4 2.2uF
C72.2uF
R33 100K
VCC-3.3
TDOTCKTMS
TDIRESET#
68109
75
1 23 4
CN3
TRST
JTAG
TCK
TMS
TDO
TDI
RESET#
TRST
3V3
PE2-GPIOPE3-GPIOPE4-GPIO
PE6-GPIO
PC8-GPIO
PD15-GPIOPD14-GPIOPD13-GPIOPD12-MB2-PWMPD11-GPIOPD10-GPIO
PD3-
INT
PD2-
INT
PD1-
INT
PD0-
INT
PB12-SENSEL
PC6-FAULT
PE15
-LD
2
PA10-T3
PE7-
MB1
_RST
PE8-
MB1
_CS
PC13-GPIO
PE14
-MB2
_IN
TPE
13-M
B2_R
ST
PE9-
MB1
-PW
M
USB-DET
C26
10nF
FP2FERRITE
R24100 1
2345 GND
IDD+D-VBUS
CN2
USB MINIB
R251M
USB-D_NUSB-D_P
VCC-USB
USB-DET
PE11
-MB2
_CS
PE1-
GPI
O
PB7-
GPI
O
PC3-ANPC2-ANPC1-ANPC0-AN
PA4-
AN
PC4-
AN
PB1-
AN
PA2-MB1_AN
PA3-
MB2
_AN
ANRSTCSSCKMISOMOSI3.3VGND
PWMINTRXTX
SCLSDA
5VGND
VCC-3.3V VCC-5V
2
PB13-SPI2_SCKPB14-SPI2_MISOPB15-SPI2_MOSI
PD8-UART3_TXPD9-UART3_RX
PB10-I2C2_SCLPB11-I2C2_SDA
PE11-MB2_CSPE14-MB2_INTPE13-MB2_RSTPD12-MB2-PWMPA3-MB2_AN
PC5-
VSEN
SE
R14100K
R12100K
VCC-BAT
R13100K
C13100nF
M1
DMP2305U
R101M
R11
1K
VCC-BAT
PB12-SENSEL
PC5-VSENSE
PE10
-MB1
_IN
T
ANRSTCSSCKMISOMOSI3.3VGND
PWMINTRXTX
SCLSDA
5VGND
VCC-3.3V VCC-5V
1
PC10-SPI3_SCKPC11-SPI3_MISOPC12-SPI3_MOSI
PA8-I2C3_SCLPC9-I2C3_SDA
PE7-MB1_RSTPE8-MB1_CS
PE9-MB1-PWM
PD5-UART2_TXPD6-UART2_RX
PA2-MB1_ANPE10-MB1_INT
PE12
-LD
1
PD4-
BATS
TAT
R8470
LD3
VCC-3.3V
ILIM
01
ILIM
12
LDO
3V3
3
CLPR
OG
4
NTC
5
VOU
T46
VOU
T47
SW4
8
MO
DE
9
FB4
10
FB3
11
VC3
12
SWAB3 13VIN3 14VIN3 15VOUT3 16VOUT3 17EN3 18SWCD3 19
EN2
20EN
121
VIN
422
FB2
23VI
N2
24SW
225
SW1
26VI
N1
27FB
128
PRO
G29
CHRG
#30
GAT
E31
BAT32
EN433
VOUT34
VBUS35
VBUS36
SW37
FAULT#38
LTC3586
U2
L1 3.3uHL2 2.2uH
M2
DMP2305U
R15
2K2
C22
22uF
C31
22uF
VCC-USB
VCC-USB
C32
10uF
VCC-3.3V
C23 10pF
R21
15K
C24
300pF
R19324K
R22105K
C1422uF
C21
33pF
VCC-3.3VVCC-3.3V
VCC-3.3V
C19
2.2uF
VSYS
VSYS
L32.2uH
VSYS
R2716K9
C29
10pF
C30
22uF
VCC-5V
VCC-5V VCC-5V VCC-5V
R18
3K3
R2688K7
C25100nF
R232K94
LD4BRED
LDO3V3
C171uF
LDO3V3
VSYS
PWR-ENPWR-EN
C20
2.2uF
VCC-BAT
R20
10KVCC-3.3V
C151uF
VCC-3.3V
C27
1uF
VCC-5V
C28
10nF
VCC-5V
C1610nF
VCC-3.3V
R16
10K
LDO3V3LDO3V3
VCC-USB
1
2
3
SW1JS202011AQN
PWR-ENC18
100nF
LDO3V3
R171M
PC6-FAULT
PD4-BATSTAT
P
C9
100nF
C10
100nF
C11
100nF
VCC-3.3V VCC-3.3V VCC-3.3V
C12
100nF
3V3
C35
100nF
VCC-3.3V
C36
100nF
VCC-3.3V
C37
100nF
VCC-3.3V
C38
100nF
VCC-3.3V VCC-3.3V
C39
10uF
VCC-3.3V
C40
10uF
B6-G
PIO
PB5-
GPI
O
PE0-
T2
PD7-
GPI
O
T2 T3
R510K
R610K
VCC-3.3V VCC-3.3V
R1
2K2
R2
2K2
PA10
-T3
PE0-
T2
PE15
-LD
2
PE12
-LD
1
PC7-GPIO
HDR1 HDR2
AN
INT
VCC-3.3V
RXTXSCK
SDISDO SDA
SCL
PWM
VCC-3.3V
VSYS
PB13-SPI2_SCKPB14-SPI2_MISOPB15-SPI2_MOSI
PE1-GPIOPE2-GPIOPE3-GPIOPE4-GPIOPE6-GPIO
PA0-UART4_TXPA1-UART4_RX
PD3-INT
PD2-INTPD1-INT
PD0-INTPC8-GPIOPD15-GPIO
PD13-GPIOPD14-GPIO
PD11-GPIOPD10-GPIO
RESET#
PA7-PWMPA6-PWMPA5-PWM
PE5-PWMPB0-PWM
PB8-PWMPB9-PWM
PC13-GPIO
PB7-GPIO
PB1-AN
PC4-ANPA4-AN
PC3-ANPC2-ANPC1-ANPC0-AN
PB6-GPIOPB5-GPIOPD7-GPIO
PB10-I2C2_SCLPB11-I2C2_SDA
PC7-GPIO
25MHz
clicker 2 for STM32 schematic
Page 7
1. 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.
You can also power the board using a Li-Polymer battery, via on-board battery connector. On-board
battery charger circuit enables you to charge the battery
over USB connection. LED diode (RED) will indicate
when battery is charging. Charging current is ~300mA
and charging voltage is 4.2V DC.
Battery power supply
USB power supply
Figure 1-1: Connecting USB
power supply
Figure 1-2: Connecting Li-Polymer battery
Page 8
Figure 1-3: Power supply schematic
VCC-BAT
CN1BATT CONN
VCC-3.3VAVCCFP1
C1100nF
C22.2uF
C26
10nF
FP2FERRITE 1
2345 GND
IDD+D-VBUS
CN2
USB MINIB
VCC-USB
R14100K
R12100K
VCC-BAT
R13100K
C13100nF
M1
DMP2305U
R101M
R11
1K
VCC-BAT
PB12-SENSEL
PC5-VSENSE
R8470
LD3
VCC-3.3V
ILIM
01
ILIM
12
LDO
3V3
3
CLPR
OG
4
NTC
5
VOU
T46
VOU
T47
SW4
8
MO
DE
9
FB4
10
FB3
11
VC3
12
SWAB3 13VIN3 14VIN3 15VOUT3 16VOUT3 17EN3 18SWCD3 19
EN2
20EN
121
VIN
422
FB2
23VI
N2
24SW
225
SW1
26VI
N1
27FB
128
PRO
G29
CHRG
#30
GAT
E31
BAT32
EN433
VOUT34
VBUS35
VBUS36
SW37
FAULT#38
LTC3586
U2LTC3586
L1 3.3uHL2 2.2uH
M2
DMP2305U
R15
2K2
C22
22uF
C31
22uF
VCC-USB
VCC-USB
C32
10uF
VCC-3.3V
C23 10pF
R21
15K
C24
300pF
R19324K
R22105K
C1422uF
C21
33pF
VCC-3.3VVCC-3.3V
VCC-3.3V
C19
2.2uF
VSYS
VSYS
L32.2uH
VSYS
R2716K9
C29
10pF
C30
22uF
VCC-5V
VCC-5V VCC-5V VCC-5V
R18
3K3
R2688K7
C25100nF
R232K94
LD4BRED
LDO3V3
C171uF
LDO3V3
VSYS
PWR-ENPWR-EN
C20
2.2uF
VCC-BAT
R20
10KVCC-3.3V
C151uF
VCC-3.3V
C27
1uF
VCC-5V
C28
10nF
VCC-5V
C1610nF
VCC-3.3V
R16
10K
LDO3V3LDO3V3
VCC-USB
1
2
3
SW1JS202011AQN
PWR-ENC18
100nF
LDO3V3
R171M
PC6-FAULT
PD4-BATSTAT
HDR1 HDR2
AN
INT
VCC-3.3V
RXTXSCK
SDISDO SDA
SCL
PWM
VCC-3.3V
VSYS
Page 9
2. STM32F407VGT6 microcontroller
The clicker 2 for STM32 development tool comes with the
STM32F407VGT6 device. This 32-bit high performance
microcontroller is rich with on-chip peripherals and features
1 MB of Flash and 192+4 KB of SRAM. It has integrated full
speed USB 2.0. support.
APB
2 8
4M
Hz
3 x ADC
temperature sensor
1 x SPI
1 x USART
3 x TIMER 16-bit
3 x TIM/PWM 16-bit
SDIO/MMC
2 x CAN
3 x I2C
2 x SPI
2 x UART
2 x USART
5 x TIMER 16-bit
2 x TIMER 32-bit
APB
1 4
2M
Hz
2 x DAC
3 x TIMER 16-bit
WWDG
RTC
IWDG
SRAM 176 KB
FLASH 1MB
EXT. MEM. CONTR
DMA 2
ETH. MAC 10/100
JTAG & SW
USB OTG FS
CAM. INTERFACE
RNG
DMA 1SRAM 16KB
USB OTG HSAHB BUS - MATRIX
POWER / RESET
GPIO PORT(A,B,C,D,E,F,G,H,I) ARM Cortex™-M4
STM32F407VGT6
Key microcontroller features- 16-bit and 32-bit Timers, up to 168Mhz
- 32-bit ARM® Cortex®-M4 architecture
- 1 MB of Flash memory
- 192 +4 KB SRAM
- 3x 12-bit ADC
- Internal Oscillator 25MHz, 32kHz, PLL;
- SPI, I2C, CAN, USB, USART, UART, RTC, Ethernet
01
02
03
Using USB HID mikroBootloader,
Using external mikroProg™ for STM32 programmer
Using external ST-LINK V2™ programmer
Figure 3-1:STM32F407VGT6
microcontroller
The microcontroller can be programmed in three ways:
3. Programming the microcontroller
Page 10
Page 11
You can program the microcontroller with a
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:
3.1 Programming with mikroBootloader
Figure 3-2: USB HID mikroBootloader window
step 1 – Connecting clicker 2 for STM32
01
01
To start, connect the USB cable, or if already connected press the Reset button on your clicker 2 for STM32. Click the Connect button within 5s to enter the bootloader mode, otherwise existing microcontroller program will execute.
After the mikroBootloader software is downloaded,
unzip it to desired location and start it.
www.mikroe.com/downloads/get/2153/mikrobootloader_usb_hid_STM32F407VGT6.zip
clicker 2 for STM32 BootloaderWinRAR ZIP archive
clicker 2 for STM32 BootloaderFile folder
SoftwareFile folder
mikroBootloader USB HID.exeBootloader tool for mikroElektron...mikroElektronika
clicker 2 STM32 STM32F407VG USB HID Bootloader v1.310.hexHEX File
FirmwareFile folder
Page 12
step 3 – Selecting .HEX file step 2 – Browsing for .HEX file
Figure 3-3: Browse for HEX Figure 3-4: Selecting HEX
01 01
02
01
01
02
Click the Browse for HEX button and from a
pop-up window (Figure 3.4) choose the .HEX file
which will be uploaded to MCU memory.
Select .HEX file using open dialog window.
Click the Open button.
Page 13
step 4 – Uploading .HEX file
Figure 3-5: Begin uploading Figure 3-6: Progress bar
01
01
01 01To start .HEX file bootloading click the Begin uploading button.
Progress bar enables you to monitor .HEX file uploading.
Page 14
step 5 – Finish upload
Figure 3-7: Restarting MCU Figure 3-8: mikroBootloader ready for next job
01
01
02
Click OK button after the uploading process is finished.
Press Reset button on clicker 2 for STM32 board and
wait for 5 seconds. Your program will run automatically.
The microcontroller can be
programmed with external
mikroProg™ for STM32 programmer and mikroProg Suite™ for ARM® software.
The external programmer is
connected to the development
system via 2x5 JTAG
connector soldered on the CN3
connector pads, Figure 3-9. mikroProg™ is a fast USB 2.0
programmer with hardware
debugger support. It supports
STM32 M3 and M4 devices
from STMicroelectronics.
Outstanding performance, easy
operation and elegant design
are its key features.
3.2 Programming with mikroProg™ programmer
Figure 3-9: mikroProg™ connector
Page 15
Page 16
04
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:
mikroProg Suite™ for ARM® software
After downloading, extract the package and double click the executable setup file, to start installation.
Figure 3-10: mikroProg Suite™ for ARM® window
Quick guide
Click the Detect MCU button in order to recognize the device ID.
Click the Read button to read the entire microcontroller memory. You can click the Save button to save it to the target HEX file.
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.
Click the Erase button to clear the microcontroller memory.
01
02
03
http://www.mikroe.com/downloads/get/1809/mikroprog_suite_for_arm.zip
Page 17
The microcontroller can also be
programmed with the ST-LINK V2 programmer and mikroProg Suite™ for ARM® software. This programmer
connects with the clicker 2 board via
mikroProg to ST-LINK V2 adapter (Figure 3-11).
3.3 Programming with ST-LINK V2 programmer
Figure 3-11: mikroProg™ to ST-LINK™ V2 adaper
Page 17
In order to adjust the ST-LINK™ V2 programmer to
be connected to the development system, it is
necessary to provide the appropriate adapter
such as the mikroProg to ST-LINK V2 adapter.
2x5 headers should be first soldered on
the CN3 connector pads. Then you should
plug the adapter into the ST-LINK V2
programmer (2x10 header), and plug
an IDC10 flat cable in headers,
Figure 3-12.
Figure 3-12: Connecting
ST-LINK™ V2 programmer
Page 18
30 29 28 2734 33
58575655545352
46 36 3542434445 3750
9
4849
1112
32
72
69686766656463
43
7877
2423
181716151413
5678
10
79 80
12
22212019
62616059
3839404147
71
31
51
70
26
25
76
757473
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
PE11
PE10
PE6VBAT
PC13/TAMPER_RTCPC14/OSC32_IN
PA10PA9PA8
PD9
PE13
PE12
PB13PB14PB15PD8
PE14
PE15
PB5
PB4
PB3
PB7
PD7
PD6
PE5PE4
PE1
PE0
PB9
PB8
BOO
T0
PB6
OSC_IN
PA0-WKUPVDDA
VREF+GNDA
VDDPC3
PA12PA11
PB12
PC8
NRST
VDDGND
PE7
PDR_
ON
(RFU
)VD
D
PE2PE3
PA2PA1
VCAP
VDD
PC9
PD13
PB10
PB11
PD10
PE8
PB2
PD11
PD14
PD5
PC2PC1PC0
PB1
PE9
PD12
PC7OSC_OUT
PC15/OSC32_OUT
PD15PC6
PA13
PC10
PA14
VCAPGNDVDD
PA15
PC11
PC12
PD0
PA6
PA5
PC4
PA7
PC5
PB0
GN
DVD
D
PA3
PA4
PD1
PD2
PD3
PD4
U1
AVCC
OSC32_OUT
X1
C522pF
C622pF
OSC_INOSC_OUT
X2
32.768KHzC3410pF
C3310pF
OSC32_IN
C72.2uF
R33 100K
VCC-3.3
TDOTCKTMS
TDIRESET#
68109
75
1 23 4
CN3
TRST
JTAGTC
K
TMS
TDO
TDI
RESET#
TRST
C9
100nF
C10
100nF
VCC-3.3V VCC-3.3V
C11
100nF
VCC-3.3V
C12
100nF
3V3
C35
100nF
VCC-3.3V
C36
100nF
VCC-3.3V
C37
100nF
VCC-3.3V
C38
100nF
VCC-3.3V
VCC-3.3V
C39
10uF
VCC-3.3V
C40
10uF
25MHz
LDO3V3J1
VCC-3.3V
3V3
VCC-3.3V
R7
100K
C4 2.2uF
100pin TQFPSTM32F407VGT6
Page 18
Before attaching the programming connector, you have to solder the provided 2x5 male header to the JTAG (CN3) pads.
Figure 3-13: mikroProg™ connection schematic
NOTE
Page 19
Figure 4-1: Two LEDs, two buttons and a reset button
4. Buttons and LEDs
The board also contains a 01 reset button and
a pair of 02 buttons and 03 LEDs, as well as an ON/OFF
switch. The Reset button is used to
manually reset the
microcontrol ler—it
generates a low voltage
level on the microcontroller’s
reset pin. LEDs can be used
for visual indication of the
logic state on two pins (PE12
and PE15). An active LED indicates
that a logic high (1) is present on the
pin. Pressing any of the two buttons can
change the logic state of the microcontroller
pins (PE0 and PA10) from logic high (1) to
logic low (0). In addition to the onboard ON/OFF
switch, two pads (EXT and PSW) allow you to
connect your own external switch.
03 02 01
Page 20
Figure 4-2: Other modules connection schematic
R310K
VCC-3.3V
C3
100nF
R4
220
RSTRESET#
T1
30 29 28 2734 33
58575655545352
46 36 3542434445 3750
9
4849
1112
32
72
69686766656463
43
7877
2423
181716151413
5678
10
79 80
12
22212019
62616059
3839404147
71
31
51
70
26
25
76
757473
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
PE11
PE10
PE6VBAT
PC13/TAMPER_RTCPC14/OSC32_IN
PA10PA9PA8
PD9
PE13
PE12
PB13PB14PB15PD8
PE14
PE15
PB5
PB4
PB3
PB7
PD7
PD6
PE5PE4
PE1
PE0
PB9
PB8
BOO
T0
PB6
OSC_IN
PA0-WKUPVDDA
VREF+GNDA
VDDPC3
PA12PA11
PB12
PC8
NRST
VDDGND
PE7
PDR_
ON
(RFU
)VD
D
PE2PE3
PA2PA1
VCAP
VDD
PC9
PD13
PB10
PB11
PD10
PE8
PB2
PD11
PD14
PD5
PC2PC1PC0
PB1
PE9
PD12
PC7OSC_OUT
PC15/OSC32_OUT
PD15PC6
PA13PC
10
PA14
VCAPGNDVDD
PA15
PC11
PC12
PD0
PA6
PA5
PC4
PA7
PC5
PB0
GN
DVD
D
PA3
PA4
PD1
PD2
PD3
PD4
U1
VCC-3.3V
AVCC
OSC32_OUT
X1
C522pF
C622pF
OSC_INOSC_OUT
X2
32.768KHzC3410pF
C3310pF
OSC32_IN
LDO3V3J1
VCC-3.3V
R7
100K
C4 2.2uF
C72.2uF
R33 100K
RESET#
3V3
PE15
-LD
2
PA10-T3
PE12
-LD
1
PE0-
T2
T2 T3
R510K
R610K
VCC-3.3V VCC-3.3V
R1
2K2
R2
2K2
PA10
-T3
PE0-
T2
PE15
-LD
2
PE12
-LD
1
25MHz
C9
100nF
C10
100nF
VCC-3.3V VCC-3.3V
C11
100nF
VCC-3.3V
C12
100nF
3V3
C35
100nF
VCC-3.3V
C36
100nF
VCC-3.3V
C37
100nF
VCC-3.3V
C38
100nF
VCC-3.3V
VCC-3.3V
C39
10uF
VCC-3.3V
C40
10uF
100pin TQFPSTM32F407VGT6
Page 21
5. Power management and battery charger
clicker 2 for STM32 features
LTC®3586-2, a highly integrated
power management
and battery
charger IC that
includes a current
limited switching
PowerPath manager.
When you solder the
onboard zero-ohm J1
jumper to the LDO position
(Figure 6-1), the LTC®3586-2
will provide an independent,
steady power supply to the MCUs
RTC from the li-polymer battery
or USB, even when the rest of
the system is turned off (or
reset). LTC®3586 also enables battery charging over a USB connection.
Figure 5-1: zero-ohm J1 jumper
Figure 5-2: power management and battery charger IC
Page 22
6. Oscillators
Figure 6-2:25MHz crystal
oscillator module (X1)
Figure 6-1:32.768 kHz
crystal oscillator module (X2)
The STM32F407VGT6 microcontroller
is equipped with an internal 16MHz RC oscillator that provides a stable clock
signal. Since the chips have an integrated
PLL, this base frequency is suitable for
further clock multiplication. Board also
contains an additional 25MHz crystal oscillator, as well as a 32.768kHz one,
which provides an external clock for the
internal RTCC module.
Page 23
30 29 28 2734 33
58575655545352
46 36 3542434445 3750
9
4849
1112
32
72
69686766656463
43
7877
2423
181716151413
5678
10
79 80
12
22212019
62616059
3839404147
71
31
51
70
26
25
76
757473
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
PE11
PE10
PE6VBAT
PC13/TAMPER_RTCPC14/OSC32_IN
PA10PA9PA8
PD9
PE13
PE12
PB13PB14PB15PD8
PE14
PE15
PB5
PB4
PB3
PB7
PD7
PD6
PE5PE4
PE1
PE0
PB9
PB8
BOO
T0
PB6
OSC_IN
PA0-WKUPVDDA
VREF+GNDA
VDDPC3
PA12PA11
PB12
PC8
NRST
VDDGND
PE7
PDR_O
N(R
FU)
VDD
PE2PE3
PA2PA1
VCAP
VDD
PC9
PD13
PB10
PB11
PD10
PE8
PB2
PD11
PD14
PD5
PC2PC1PC0
PB1
PE9
PD12
PC7OSC_OUT
PC15/OSC32_OUT
PD15PC6
PA13
PC10
PA14
VCAPGNDVDD
PA15
PC11
PC12
PD0
PA6
PA5
PC4
PA7
PC5
PB0
GN
DVD
D
PA3
PA4
PD1
PD2
PD3
PD4
U1
VCC-3.3V
AVCC
OSC32_OUT
X1
C522pF
C622pF
OSC_INOSC_OUT
X2
32.768KHzC3410pF
C3310pF
OSC32_IN
LDO3V3J1
VCC-3.3V
R7
100K
C4 2.2uF
C72.2uF
R33 100K
3V3
25MHz
C9
100nF
C10
100nF
VCC-3.3V VCC-3.3V
C11
100nF
VCC-3.3V
C12
100nF
3V3
C35
100nF
VCC-3.3V
C36
100nF
VCC-3.3V
C37
100nF
VCC-3.3V
C38
100nF
VCC-3.3V
VCC-3.3V
C39
10uF
VCC-3.3V
C40
10uF
100pin TQFPSTM32F407VGT6
The use of crystal in all other schematics is implied even if it is purposely left out, because of the schematics clarity.
Figure 6-3: Crystal
oscillator schematic
NOTE
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.
7. USB connection
Figure 7-1: Connecting USB cable to clicker 2
Page 24
Page 25
30 29 28 2734 33
58575655545352
46 36 3542434445 3750
9
4849
1112
32
72
69686766656463
43
7877
2423
181716151413
5678
10
79 80
12
22212019
62616059
3839404147
71
31
51
70
26
25
76
757473
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
PE11
PE10
PE6VBAT
PC13/TAMPER_RTCPC14/OSC32_IN
PA10PA9PA8
PD9
PE13
PE12
PB13PB14PB15PD8
PE14
PE15
PB5
PB4
PB3
PB7
PD7
PD6
PE5PE4
PE1
PE0
PB9
PB8
BOO
T0
PB6
OSC_IN
PA0-WKUPVDDA
VREF+GNDA
VDDPC3
PA12PA11
PB12
PC8
NRST
VDDGND
PE7
PDR_
ON
(RFU
)VD
D
PE2PE3
PA2PA1
VCAP
VDD
PC9
PD13PB
10PB
11
PD10
PE8
PB2
PD11
PD14
PD5
PC2PC1PC0
PB1
PE9
PD12
PC7OSC_OUT
PC15/OSC32_OUT
PD15PC6
PA13
PC10
PA14
VCAPGNDVDD
PA15
PC11
PC12
PD0
PA6
PA5
PC4
PA7
PC5
PB0
GN
DVD
D
PA3
PA4
PD1
PD2
PD3
PD4
U1
VCC-3.3V
AVCC
OSC32_OUT
OSC_INOSC_OUT
OSC32_IN
USB-D_PUSB-D_N R29
R30
LDO3V3J1A
VCC-3.3V
R7
100K
C4 2.2uF
C72.2uF
R33 100K
3V3
USB-DET
C26
10nF
FP2FERRITE
R24100 1
2345 GND
IDD+D-VBUS
CN2
USB MINIB
R251M
USB-D_NUSB-D_P
VCC-USB
USB-DET
X1
C522pF
C622pF
X2
32.768KHzC3410pF
C3310pF
25MHz
C9
100nF
C10
100nF
C11
100nF
VCC-3.3V VCC-3.3V VCC-3.3V
C12
100nF
3V3
C35
100nF
VCC-3.3V
C36
100nF
VCC-3.3V
C37
100nF
VCC-3.3V
C38
100nF
VCC-3.3V VCC-3.3V
C39
10uF
VCC-3.3V
C40
10uF
100pin TQFPSTM32F407VGT6
Figure 7-2: USB module connection schematic
Page 26
30 29 28 2734 33
58575655545352
46 36 3542434445 3750
9
4849
1112
32
72
69686766656463
43
7877
2423
181716151413
5678
10
79 80
12
22212019
62616059
3839404147
71
31
51
70
26
25
76
757473
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
PE11
PE10
PE6VBAT
PC13/TAMPER_RTCPC14/OSC32_IN
PA10PA9PA8
PD9
PE13
PE12
PB13PB14PB15PD8
PE14
PE15
PB5
PB4
PB3
PB7
PD7
PD6
PE5PE4
PE1
PE0
PB9
PB8
BOO
T0
PB6
OSC_IN
PA0-WKUPVDDA
VREF+GNDA
VDDPC3
PA12PA11
PB12
PC8
NRST
VDDGND
PE7
PDR_
ON
(RFU
)VD
D
PE2PE3
PA2PA1
VCAP
VDD
PC9
PD13
PB10
PB11
PD10
PE8
PB2
PD11
PD14
PD5
PC2PC1PC0
PB1
PE9
PD12
PC7OSC_OUT
PC15/OSC32_OUT
PD15PC6
PA13
PC10
PA14
VCAPGNDVDD
PA15
PC11
PC12
PD0
PA6
PA5
PC4
PA7
PC5
PB0
GN
DVD
D
PA3
PA4
PD1
PD2
PD3
PD4
U1
VCC-3.3V
AVCC
OSC32_OUT
X1
C522pF
C622pF
OSC_INOSC_OUT
X2
32.768KHzC3410pF
C3310pF
OSC32_IN
PB14-SPI2_MISOPB15-SPI2_MOSI
PB13-SPI2_SCK
PB10
-I2C
2_SC
LPB
11-I
2C2_
SDA
PA0-UART4_TXPA1-UART4_RXR9
R28
LDO3V3J1
VCC-3.3V
PE5-PWM
PB9-
PWM
PB8-
PWM
PB0-
PWM
PA7-
PWM
PA6-
PWM
PA5-
PWM
R7
100K
C4 2.2uF
C72.2uF
R33 100K
RESET#
3V3
PE2-GPIOPE3-GPIOPE4-GPIO
PE6-GPIO
PC8-GPIO
PD15-GPIOPD14-GPIOPD13-GPIO
PD11-GPIOPD10-GPIO
PD3-
INT
PD2-
INT
PD1-
INT
PD0-
INT
PC13-GPIO
PE1-
GPI
O
PB7-
GPI
O
PC3-ANPC2-ANPC1-ANPC0-AN
PA4-
AN
PC4-
AN
PB1-
AN
P
C9
100nF
C10
100nF
C11
100nF
VCC-3.3V VCC-3.3V VCC-3.3V
C12
100nF
3V3
C35
100nF
VCC-3.3V
C36
100nF
VCC-3.3V
C37
100nF
VCC-3.3V
C38
100nF
VCC-3.3V VCC-3.3V
C39
10uF
VCC-3.3V
C40
10uF
B6-G
PIO
PB5-
GPI
O
PD7-
GPI
O
PC7-GPIO
HDR2
RXTX
SDASCL
PWM
VCC-3.3V
PE1-GPIOPE2-GPIOPE3-GPIOPE4-GPIOPE6-GPIO
PA0-UART4_TXPA1-UART4_RX
RESET#
PA7-PWMPA6-PWMPA5-PWM
PE5-PWMPB0-PWM
PB8-PWMPB9-PWM
PC13-GPIO
PB6-GPIOPB5-GPIOPD7-GPIO
PB10-I2C2_SCLPB11-I2C2_SDA
HDR1
AN
INT
VCC-3.3V
SCKSDI
SDO
VSYS
PB13-SPI2_SCKPB14-SPI2_MISOPB15-SPI2_MOSI
PD3-INT
PD2-INTPD1-INT
PD0-INTPC8-GPIOPD15-GPIO
PD13-GPIOPD14-GPIO
PD11-GPIOPD10-GPIO
PB7-GPIO
PB1-AN
PC4-ANPA4-AN
PC3-ANPC2-ANPC1-ANPC0-AN
PC7-GPIO
25MHz
100pin TQFPSTM32F407VGT6
8. Pads
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.
Pads HDR2 Pads HDR1Figure 8-1: Connecting pads schematic
Page 27
SPI LinesInterrupt LinesAnalog LinesDigital lines I2C Lines UART lines PWM lines
9. PinoutVSYSRSTReset pin System power supplyGNDGNDReference Ground Reference GroundPC0PC1PC2PB9PC3PB8PB1PE5PA4PB0PC4PA5PD3PA6PD1PA7PD2PE1PD0PE2PC8PE3PD15PE4PD14PE6PD13PB6PB7PB5PC7PD7PD11PC13PD10PA1PB13PA0PB14PB10PB15PB113.3V3.3V3.3V power supplyGNDGNDReference Ground
Pin functions Pin functions
Digital I/O lines
SPI2 Lines
Interrupt Lines
Analog Lines
RXTX SCK
SCL SDISDA SDO
UART4 Lines
I2C2 Lines
PWM lines
Digital I/O lines
3.3V power supplyReference Ground
Page 28
PD9PD8PB10PB11
RXTXSCLSDA
UART3 Lines
I2C2 Lines
PB13PB14PB15
SPI2Lines
SCKMISOMOSI
PD6PD5PA8PC9
RXTXSCLSDA
UART2 Lines
I2C3 Lines
PC10PC11PC12
SPI3Lines
SCKMISOMOSI
Having two mikroBUS™ sockets and an additional connection pad, clicker 2 for STM32 utilizes all of the STM32F407VGT6’s 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.
Figure 9-1: mikroBUS™ individual and shared lines
9.1 mikroBUS™ pinouts
Up to now, MikroElektronika has
released more than 90 mikroBUS™
compatible click™ boards. On the
average, one click board is released
per week. It is our intention to
provide you with as many add-on
boards as possible, so you will be able
to expand your development board
with additional functionality. Each
board comes with a set of working
example code. Please visit the click™
boards webpage for the complete list
of currently available boards:
10. click™ boards are plug and play!
Figure 10-1: clicker 2 for STM32
driving click™ boards
Page 29
www.mikroe.com/click
Page 30
Relay click™
Gyro click™ LightHz click™7seg click™
Bluetooth2 click™
EEPROM click™THERMO click™
RFid click™ Thunder click™
Pressure click™
8x8 click™ FM click™
BarGraph click™
USB SPI click™
Page 31
11. Dimensions
Page 32
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.
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.
Copyright © 2014 MikroElektronika. All Rights Reserved.
HIGH RISK ACTIVITIES
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.
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,
do not hesitate to contact us at [email protected] ver. 1.00clicker 2 for STM32 manual
0 100000 027103