ST STM32F072 User Manual
ST STM32F072 is a discovery kit for STM32F0 Series microcontrollers. It is based on an STM32F072 microcontroller and includes an ST-LINK/V2 embedded debug tool interface, ST MEMS gyroscope, LEDs, push-buttons, linear touch sensor, touch keys, RF EEPROM connector and a USB Mini-B connector.
This allows users to explore the full capabilities of the STM32F0 Series and to develop their own applications. The kit includes a comprehensive set of software tools, including examples and libraries, to help users get started quickly.
The STM32F072 is a powerful and versatile microcontroller.
Reklama
Reklama
UM1690
User manual
Discovery kit for STM32F0 Series microcontrollers with STM32F072RB
Introduction
The STM32F072 Discovery kit (32F072BDISCOVERY) helps users to discover the full features of the STM32F0 Series and develop their applications. It is based on an
STM32F072RBT6 microcontroller and includes an ST-LINK/V2 embedded debug tool interface, ST MEMS gyroscope, LEDs, push-buttons, linear touch sensor, touch keys, RF
EEPROM connector and a USB Mini-B connector.
Figure 1. STM32F072 Discovery kit
March 2020
Picture is not contractual.
UM1690 Rev 3
www.st.com
Contents
Contents
UM1690
Development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Embedded ST-LINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Using ST-LINK/V2 to program/debug the STM32F072 on board . . . . . 12
Using ST-LINK/V2 to program/debug an external STM32 application . . 13
Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Linear touch sensor / touch keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Embedded USB Bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Gyroscope MEMS (ST MEMS I3G4250D) . . . . . . . . . . . . . . . . . . . . . . . . 16
Extension and RF EEPROM connector . . . . . . . . . . . . . . . . . . . . . . . . . . 16
OSC 32 KHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
UM1690 Rev 3
UM1690
Contents
UM1690 Rev 3
3
List of tables
List of tables
UM1690
UM1690 Rev 3
UM1690
List of figures
List of figures
UM1690 Rev 3
5
Features
1 Features
UM1690
The STM32F072 Discovery kit offers the following features:
• STM32F072RBT6 microcontroller based on the Arm
®(a) Cortex ®
-M0 processor, featuring 128 Kbytes of Flash memory, 16 Kbytes of SRAM in an LQFP64 package
• USB FS with Mini-B connector
• I3G4250D ST MEMS motion sensor 3-axis digital output gyroscope
• One linear touch sensor or four touch keys
• Six LEDs:
– LD1 (red/green) for USB communication
– LD2 (red) for 3.3 V power on
– Four user LEDs: LD3 (red), LD4 (orange), LD5 (green) and LD6 (blue)
• Two push-buttons (user and reset)
• RF EEPROM daughterboard connector
• Extension header for LQFP64 I/Os for quick connection to a prototyping board and easy probing
• On-board ST-LINK/V2 with switch to use the kit as a standalone ST-LINK/V2 (with
SWD connector for programming and debugging)
• Flexible power supply options:
– USB bus or external 5 V supply voltage
• Power supply output for external applications: 3 V and 5 V
• Comprehensive free software including a variety of examples, part of STM32CubeF0 or STM32SnippetsL0 packages or STSW-STM32139 for legacy Standard Libraries usage
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and or elsewhere.
UM1690 Rev 3
UM1690 Ordering information
To order the 32F072BDISCOVERY Discovery kit, refer to Table 1 . Additional information is
available from the datasheet and reference manual of the target STM32.
Order code
STM32F072B-DISCO
Table 1. Ordering information
Board reference
MB1076
Target STM32
STM32F072RBT6
Evaluation tools marked as “ES” or “E” are not yet qualified and are therefore not ready to be used as reference designs or in production. Any consequences arising from such usage will not be at ST’s charge. In no event will ST be liable for any customer usage of these engineering sample tools as reference designs or in production.
‘E’ or ‘ES’ marking examples of location:
• on the targeted STM32 that is soldered on the board (For an illustration of STM32 marking, refer to the section ‘Package information’ of the STM32 datasheet at www.st.com
).
• next to the evaluation tool ordering part number, that is stuck or silkscreen printed on the board
2.2 Codification
The meaning of the codification is explained in
.
32XXYYZDISCOVERY
32XX
YY
Z
DISCOVERY
Table 2. Codification explanation
Description Example: 32F072BDISCOVERY
MCU series in STM32 32-bit Arm
Cortex MCUs
MCU product line in the series
STM32 Flash memory size:
– B for 128 Kbytes
Discovery kit
STM32F0 Series
STM32F072
128 Kbytes
Discovery kit
UM1690 Rev 3
26
Development environment UM1690
• Windows
®
OS (7, 8 and 10), Linux
®
64-bit or macOS
®(a) (b)
• USB Type-A to Mini-B cable
• IAR™ - EWARM
(c)
• Keil ® - MDK-ARM (c) (d)
• STMicroelectronics - STM32CubeIDE
The demonstration software, included in the STM32Cube MCU Package, is preloaded in the
STM32 Flash memory for easy demonstration of the device peripherals in standalone mode.
The latest versions of the demonstration source code and associated documentation can be downloaded from the www.st.com/stm32f0-discovery webpage.
4 Conventions
Table 3 provides the definition of some conventions used in the present document.
Convention
Table 3. ON/OFF conventions
Definition
Jumper JPx ON
Jumper JPx OFF
Jumper fitted
Jumper not fitted
Solder bridge SBx ON SBx connections closed by solder
Solder bridge SBx OFF SBx connections left open
a. macOS
®
is a trademark of Apple Inc. registered in the U.S. and other countries.
b. All other trademarks are the property of their respective owners.
c. On Windows
®
only.
d. Free MDK-ARM for Arm
®
Cortex
®
-M0/M0+ cores.
UM1690 Rev 3
UM1690 Hardware layout
The STM32F072 Discovery kit is designed around the STM32F072RBT6 microcontroller in a 64-pin LQFP package.
Figure 2 illustrates the connections between the STM32F072RBT6 and its peripherals (ST-
LINK/V2, ST MEMS gyroscope I3G4250D, LEDs, push buttons, linear touch sensor, touch keys, RF EEPROM connector and a USB Mini-B connector).
help to locate these features on the STM32F072 Discovery board.
Figure 2. Hardware block diagram
Mini-USB
Embedded
ST-LINK/V2
STM32F072RBT6
I/O I/O
I/O RESET
LEDs
LD3 to LD6
I3G4250D
Linear touch
sensor
Mini-USB
B2
RESET
B1
USER
EXT/RF-EEP
UM1690 Rev 3
MS33267V2
26
Hardware layout
LD1
COM LED
ST-LINK/V2
CN3
extension or
RF EEPROM connector
3 V power supply input/output
CN4
SWD connector
Figure 3. Top layout
USB ST-LINK USB USER
LD4
(orange LED)
JP2
Idd measurement
LD2
PWR LED
UM1690
5 V power supply input/output
CN5
ST-LINK/DISCOVERY selector
LD3
(red LED)
LD5
(green LED)
LD6
(blue LED)
STM32F072RBT6
B2 reset button
B1 user button
Linear touch sensor
/touchkeys
UM1690 Rev 3
MSv33268V2
UM1690
P2
connector
SB1, 3, 6, 8
Reserved
SB2, 4, 7, 9
Default
SB11,12
RX, TX
SB19
MCO
SB16
VDDIO2
SB20, 23
USB-USER
SB22
B2-RESET
Figure 4. Bottom layout
Hardware layout
P1 connector
SB5
STM_RST
SB10
NRST
JP2
SB15
VBAT
SB13, 14
X2 crystal
SB17, 18
X3 crystal
SB21
B1-USER
SB24, 25
GND, VDD
SB26
VDDA
SB27-32
Touch sensor
UM1690 Rev 3
MSv33269V2
26
Hardware layout UM1690
5.1.1
The ST-LINK/V2 programming and debugging tool is integrated on the STM32F072
Discovery kit. The embedded ST-LINK/V2 can be used in 2 different ways according to the
):
• Program/debug the MCU on board
• Program/debug an MCU in an external application board using a cable connected to
SWD connector CN4
The embedded ST-LINK/V2 supports only SWD for STM32 devices. For information about debugging and programming features, refer to user manual UM1075 (ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32), which describes in detail all the ST-LINK/V2 features.
Jumper state
Table 4. Jumper states
Description
Both CN5 jumpers ON ST-LINK/V2 functions enabled for on board programming (default)
Both CN5 jumpers OFF
ST-LINK/V2 functions enabled for application through external CN4 connector (SWD supported)
Using ST-LINK/V2 to program/debug the STM32F072 on board
To program the STM32F072 on board, simply plug in the two jumpers on CN5, as shown in
Figure 5 in pink, but do not use the CN4 connector as that could disturb communication with
the STM32F072RBT6 of the STM32F072 Discovery kit.
Figure 5. STM32F072 Discovery kit connections
UM1690 Rev 3
UM1690
5.1.2
Note:
Hardware layout
Using ST-LINK/V2 to program/debug an external STM32 application
It is very easy to use the ST-LINK/V2 to program the STM32 on an external application.
Simply remove the 2 jumpers from CN5 as shown in
Figure 6 , and connect the application
to the CN4 debug connector according to
.
SB10 must be OFF if CN4 pin 5 is used by the external application.
Table 5. Debug connector CN4 (SWD)
Pin
1 VDD_TARGET
2 SWCLK
3 GND
4
5
SWDIO
NRST
6 SWO
CN4 Designation
Ground
SWD data input/output
Reset of the target MCU
Reserved
Figure 6. ST-LINK connections
UM1690 Rev 3
26
Hardware layout
5.2 Power supply and power selection
UM1690
The power supply is provided either by the host PC through the USB ST-LINK or USB
USER connector, or by an external 5 V power supply.
The D1 and D2 diodes protect the 5 V and 3 V pins from external power supplies:
• 5 V and 3 V can be used as output power supplies when another application board is connected to pins P1 and P2.
In this case, the 5 V and 3 V pins deliver a 5 V or 3 V power supply and the power consumption must be lower than 100 mA.
• 5 V can also be used as input power supplies, for instance when the USB connector is not connected to the PC.
In this case, the STM32F072 Discovery kit must be powered by a power supply unit or by an auxiliary equipment complying with standard EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with limited power capability.
5.3 LEDs
• LD1 COM: LD1 default status is red. LD1 turns to green to indicate that communications are in progress between the PC and the ST-LINK/V2.
• LD2 PWR: This red LED indicates that the board is powered.
• User LD3: This red user LED is connected to the I/O PC6 of the STM32F072RBT6.
• User LD4: This orange user LED is connected to the I/O PC8 of the STM32F072RBT6.
• User LD5: This green user LED is connected to the I/O PC9 of the STM32F072RBT6.
• User LD6: This blue user LED is connected to the I/O PC7 of the STM32F072RBT6.
5.4 Pushbuttons
B1 USER: User and Wake-Up button connected to the I/O PA0 of the STM32F072RBT6.
B2 RESET: The push button connected to NRST is used to reset the STM32F072RBT6.
UM1690 Rev 3
UM1690
5.5
Hardware layout
Linear touch sensor / touch keys
To demonstrate touch sensing capabilities, the STM32F072 Discovery kit includes a linear touch sensor, which can be used either as a 3-position linear touch sensor or as 4 touch keys. Both functions are illustrated in the demonstration software.
3 pairs of I/O ports are assigned to the linear touch sensor / touch keys. Each pair must belong to the same analog switch group:
• PA2, PA3 (group 1)
• PA6, PA7 (group 2)
• PB0, PB1 (group 3)
To minimize the noise, these pairs are dedicated to the linear touch sensor and the touch keys and are not connected to external headers. To design a touch sensing application, refer to the following documentation and firmware:
• For details concerning I/O ports, refer to the STM32F072RBT6 datasheet.
• For information on software development, see DISCOVER application software on www.st.com/stm32f0-discovery.
• STM32 touch sensing library available from www.st.com/stm32f0-discovery.
5.6 USB device support
The STM32F072RBT6 MCU is also used to drive the second USB Mini-B connector (USB
USER) which allows the board to be used as a USB Device. The STM32F072 Discovery kit can then act as a USB joystick, mouse, or other similar device. If both USBs are connected, diodes D1 and D2 protect the board and use the power from the USB ST-LINK.
The board can be powered through this USB USER connector, in which case LED2 PWR lights up, LED1 COM blinks and it can run an application in standalone mode.
The STM32F072RBT6 MCU controls the USB USER through PA11 and PA12.
Note:
5.8
BOOT0 is at level “0” through pull-down resistor R33. If the user wants to set BOOT0 at level “1”, it can be configured by setting a jumper between P2.6 (BOOT0) and P2.5 (VDD).
This facility is offered for fast and instantaneous configuration.
If it is needed to set BOOT0 at level "1" continuously, then unsolder resistor R33 to avoid a consumption of 6 mA while connecting pin P2.6 (BOOT0) and P2.5 (VDD) with a jumper or with a wire.
Embedded USB Bootloader
The STM32F072 line microcontrollers embed a bootloader allowing the programming of blanked device or the upgrade device firmware over the USB without the need of a specific programmer. When using this Discovery kit, the STM32F072RBT6 MCU firmware can be thus programmed through the second USB Mini-B connector (USER USB).
To program the microcontroller Flash memory using this approach, a jumper must be set between BOOT0 (P2.6) and VDD (P2.5), and a cable connected between the USER USB
UM1690 Rev 3
26
Hardware layout
Note:
UM1690 connector of the board and a PC. On the PC side, it is required to use the Device Firmware
Upgrade Utility named "DfuSe". This software (STSW-STM32080) and its associated user manual (UM0412) are available from www.st.com
.
Several application notes are also available on that topic.
• AN2606: STM32 microcontroller system memory boot mode
• AN3156: USB DFU protocol used in the STM32 bootloader
ST-LINK utilities must not be used when the DFU utility is running.
The I3G4250D is an ultra-compact, low-power, three-axis angular rate sensor. It includes a sensing element and an IC interface able to provide the measured angular rate to the external world through the I
2
C/SPI serial interface.
The I3G4250D has dynamically-user-selectable full scales:
• ±245 dps
• ±500 dps
• ±2000 dps
The I3G4250D is capable of measuring rates.
The STM32F072RBT6 MCU controls this motion sensor through the SPI interface.
Jumper JP2, labeled Idd, allows the consumption of STM32F072RBT6 to be measured by removing the jumper and connecting an ammeter.
• Jumper ON: STM32F072RBT6 is powered (default).
• Jumper OFF: an ammeter must be connected to measure the STM32F072RBT6 current, (if there is no ammeter, the STM32F072RBT6 is not powered).
5.11 Extension and RF EEPROM connector
This connector is able to accept an extension board or the RF EEPROM board ANT7-
M24LR-A (see application note How to design an antenna for dynamic NFC tags (AN2972) for more details).
Figure 7. Extension and RF EEPROM connector
UM1690 Rev 3
UM1690
Pin
7
8
5
6
3
4
1
2
I2C SDA
NC
I2C SCL
EXT_RESET
3V
NC
GND
5V
Table 6. Extension and RF EEPROM connector (CN3)
CN3 Designation
Data signal for I
2
C
Not connected
Clock signal for I
2
C
Reset signal for extension board
3 volt power supply
Not connected
Ground
5 volt power supply
Hardware layout
UM1690 Rev 3
26
Hardware layout UM1690
By default, the STM32F072RBT6 clock source is the high-speed internal (HSI) RC oscillator. Other clock sources are described hereunder.
If PF0 and PF1 are only used as GPIOs instead of clock, then SB17 and SB18 are ON and
R36 and R37 are removed (SB19 must be OFF).
• MCO from ST-LINK (from MCO of the STM32F103). This frequency cannot be changed, it is fixed at 8 MHz and connected to PF0-OSC_IN of the STM32F072RBT6.
The required configuration is:
– SB19 ON and SB17 OFF
– R36 removed
• Oscillator on board (from X3 crystal, not provided). For typical frequencies and its capacitors and resistors, refer to the STM32F072RBT6 datasheet.
The required configuration is:
– SB17, SB18, SB19 OFF
– X3, R36, R37, C22, C23 soldered
• Oscillator from external PF0 (from external oscillator through pin 7 of the P1 connector).
The required configuration is:
– SB17 ON
– SB19 OFF
– R36 removed
5.12.2 OSC 32 KHz clock supply
If PC14 and PC15 are only used as GPIOs instead of clock, then SB13 and SB14 are ON, and R34 and R35 are removed.
• Oscillator on board (from X2 crystal, not provided).
The required configuration is:
– SB13, SB14 OFF
– X2, C19, C20, R34, R35 soldered
• Oscillator from external PC14 (from external oscillator trough the pin 5 of P1 connector).
The required configuration is:
– SB14 ON
– R35 removed
UM1690 Rev 3
UM1690 Hardware layout
Bridge
SB17,18 (X3 crystal)
SB13,14 (X2 crystal)
SB19 (MCO)
SB2,4,7,9 (Default) ON
SB1,3,6,8 (Reserved) OFF
SB24,25 (GND,VDD) ON
SB11,12 (RX,TX) OFF
OFF
SB27,28,29,30,31,32
(touch sensor)
ON
SB20,23 (USB-
USER)
SB21 (B1-USER)
SB22 (B2-RESET)
SB10 (NRST)
SB5 (STM_RST)
SB15 (VBAT)
SB16 (VDDIO2)
SB26 (VDDA)
OFF
ON
ON
OFF
ON
OFF
ON
OFF
1. The default state is in bold.
OFF
ON
ON
OFF
ON
OFF
State
(1)
ON
OFF
ON
OFF
OFF
ON
ON
OFF
Table 7. Solder bridges
Description
PF0, PF1 are connected to P1 (R36, R37 must not be fitted and SB19 must be
OFF).
X3, C22, C23, R36 and R37 provide a clock. PF0, PF1 are disconnected from
P1.
PC14, PC15 are only connected to P1. Remove only R34, R35
X2, C19, C20, R34 and R35 deliver a 32 KHz clock. PC14, PC15 are not connected to P1.
MCO signal of STM32F103C8T6 is not used.
MCO clock signal from STM32F103C8T6 is connected to OSC_IN of
STM32F072RBT6. (SB17 must be OFF).
Reserved, do not modify.
Reserved, do not modify.
Reserved, do not modify.
Reserved, do not modify
Reserved to the linear touch sensor. PA2,3,6,7 and PB0,1 are not available.
PA2,3,6,7 and PB0,1 are available then remove R38,39,40 and C26,27,28. (the linear touch sensor is not available)
Reserved to the USB USER CN2. PA11,12 are not available.
PA11,12 are available then remove R12,13. (the USB USER CN2)
B1 pushbutton is connected to PA0.
B1 pushbutton is not connected to PA0.
B2 pushbutton is connected to the NRST pin of the STM32F072RBT6 MCU.
B2 pushbutton is not connected the NRST pin of the STM32F072RBT6 MCU.
T_NRST pin of the STM32F103C8T6 (ST-LINK/V2) and CN4.5 are connected to the NRST pin of the STM32F072RBT6 MCU.
T_NRST pin of the STM32F103C8T6 (ST-LINK/V2) and CN4.5 are not connected to the NRST pin of the STM32F072RBT6 MCU.
No incidence on STM32F103C8T6 (ST-LINK/V2) NRST signal.
STM32F103C8T6 (ST-LINK/V2) NRST signal is connected to GND.
VBAT Power is supplied by VDD
VBAT Power is supplied by P1.3 connector
VDDIO2 Power is supplied by VDD
VDDIO2 Power is supplied by P2.18 connector
VDDA Power is supplied by VDD through L1 inductance.
VDDA Power is supplied by P2.19 connector
UM1690 Rev 3
26
Hardware layout UM1690
5.14 Extension connectors
The male headers P1 and P2 can connect the STM32F072 Discovery kit to a standard prototyping/wrapping board. STM32F072RBT6 GPIOs are available on these connectors.
P1 and P2 can also be probed by an oscilloscope, logical analyzer or voltmeter.
MCU pin
Table 8. MCU pin description versus board function
Board function
BOOT0 60
NRST 7
PA0
PA1
14
15
PA2 16
PA3 17
PA4
PA5
20
21
PA6 22
PA7 23
UM1690 Rev 3
6
5 10
15
16
17 SB27
18
21
22
23
SB28
SB29
24 SB30
UM1690 Hardware layout
MCU pin
Table 8. MCU pin description versus board function (continued)
Board function
PA8
PA9
PA10
PA11
PA12
PA13
43
44
45
41
42
46
PA14 49
PA15 50
PB0 26
PB1 27
PB2
PB3
PB4
PB5
PB6
PB7
PB8
56
57
58
59
61
28
55
UM1690 Rev 3
4
2
27
17
16
25
24
23
22 SB23
21 SB20
20
SB31
28
29
11
7
4
10
9
8
SB32
26
Hardware layout
MCU pin
Table 8. MCU pin description versus board function (continued)
Board function
UM1690
PB9
PB10
PB11
PB12
PB13
PB14
PB15
34
35
36
62
29
30
33
PC0 8
PC1
PC2
PC3
PC4
9
10
11
24
PC5 25
PC6
PC7
37
38
PC8 39
UM1690 Rev 3
3
1
4
30
31
32
3
32
31
30
11
12
13
14
25
26
29
28
27
UM1690 Hardware layout
MCU pin
Table 8. MCU pin description versus board function (continued)
Board function
PC15 4
PD2
PF0
54
5
PF1 6
VBAT 1
VDDA 13
VDDIO2 48
PC9 40
PC10 51
PC11 52
PC12 53
PC13 2
PC14 3
UM1690 Rev 3
4
5
26
15
14
13
SB14
8
6 SB13
7
12
SB17
8 SB18
3
20 5
1
SB15
19 SB26
18 SB16
26
Hardware layout
MCU pin
Table 8. MCU pin description versus board function (continued)
Board function
UM1690
5
7 3
1
2
9
19
2
33 33
1. Depending on SBx, connected to STM32F072RBT6 MCU pin or board function. (Refer to the schematics on www.st.com
for more detail)
UM1690 Rev 3
UM1690 Mechanical drawing
Figure 8. STM32F072 Discovery kit mechanical drawing
UM1690 Rev 3
26
Revision history UM1690
Date
18-Dec-2013
23-June-2014
19-Mar-2020
Table 9. Document revision history
Revision Changes
1
2
3
Initial release.
Updated Figure 1: STM32F072 discovery board .
Added Section 4.7
and Section 4.8
.
Added Figure 12: MEMS and USB and Figure 13: Linear sensor and pushbutton .
Updated ST MEMS gyroscope and user LEDs descriptions in
LEDs , and across the document.
Removed Electrical schematics .
Reorganized the entire document:
,
and
UM1690 Rev 3
UM1690
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks . All other product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2020 STMicroelectronics – All rights reserved
UM1690 Rev 3 27/27
27
Atsisiųsti
Reklama