STM32 F0 Microcontrollers User Manual

June 16, 2024
ST

STM32 F0 Microcontrollers

Specifications:

  • Product Name: STM32F0DISCOVERY
  • Part Number: STM32F0DISCOVERY
  • Microcontroller: STM32F051R8T6
  • Embedded Debugger: ST-LINK/V2
  • Power Supply: Various options available
  • LEDs: Yes
  • Push Buttons: Yes
  • Extension Connectors: Yes

Product Usage Instructions:

1. Quick Start:

To quickly get started with the STM32F0DISCOVERY kit, follow the
steps below:

  1. Connect the kit to your computer using a USB cable.

  2. Install the required development toolchain supporting the
    STM32F0DISCOVERY.

  3. Open the development tool and select the appropriate board
    settings for STM32F0DISCOVERY.

  4. Load your code onto the microcontroller using the embedded
    ST-LINK/V2 debugger.

  5. You can now start using the kit for your desired
    applications.

2. System Requirements:

The STM32F0DISCOVERY kit requires the following system
requirements:

  • A computer with a USB port
  • An internet connection to download the required development
    toolchain

3. Development Toolchain:

The STM32F0DISCOVERY kit is compatible with a development
toolchain that supports STM32F0 microcontrollers. You can download
the necessary toolchain from the official website of the
manufacturer.

4. Hardware and Layout:

4.1 STM32F051R8T6 Microcontroller:

The kit is equipped with an STM32F051R8T6 microcontroller, which
is the main processing unit of the kit. It provides various
features and functionalities for your applications.

4.2 Embedded ST-LINK/V2:

The kit includes an embedded ST-LINK/V2 debugger, which allows
you to program and debug the STM32F0 microcontroller on board. You
can also use it to program and debug an external STM32
application.

4.3 Power Supply and Power Selection:

The kit supports various power supply options. You can choose to
power the kit using a USB cable connected to your computer or an
external power supply. The power selection can be controlled using
the provided jumpers.

4.4 LEDs:

The kit features LEDs that can be used for visual indication or
debugging purposes. The user manual provides details on how to use
these LEDs effectively.

4.5 Push Buttons:

The kit includes push buttons that can be used as user inputs
for your applications. These buttons are connected to the
microcontroller and can be programmed accordingly.

4.6 JP2 (Idd):

JP2 is a solder bridge that allows you to measure the current
consumption of the microcontroller. The user manual provides
instructions on how to use this feature.

4.7 OSC Clock:

The kit includes an OSC clock for accurate timing in your
applications. It provides both the main clock supply and a 32 KHz
clock supply for low-power operations.

4.8 Solder Bridges:

The kit has multiple solder bridges that can be used to
configure or customize certain features of the microcontroller. The
user manual provides details on each solder bridge and its
purpose.

4.9 Extension Connectors:

The kit provides extension connectors that allow you to connect
additional modules or accessories for enhanced functionality. The
user manual provides details on how to connect different types of
modules.

5. Connecting Modules on the Prototyping Board:

5.1 Mikroelektronica Accessory Boards:

The kit is compatible with Mikroelektronica accessory boards.
The user manual provides instructions on how to connect and use
these boards with the STM32F0DISCOVERY kit.

5.2 ST MEMS Adapter Boards, Standard DIL24 Socket:

The kit supports ST MEMS adapter boards with a standard DIL24
socket. The user manual provides instructions on how to connect and
use these boards with the STM32F0DISCOVERY kit.

5.3 Arduino Shield Boards:

The kit is compatible with Arduino shield boards. The user
manual provides instructions on how to connect and use these boards
with the STM32F0DISCOVERY kit.

6. Mechanical Drawing:

The user manual includes a mechanical drawing of the
STM32F0DISCOVERY kit, providing detailed dimensions and layout
information.

7. Electrical Schematics:

The user manual includes electrical schematics of the
STM32F0DISCOVERY kit, providing detailed circuit diagrams and
component connections.

FAQ:

Q: What are the system requirements for the STM32F0DISCOVERY

kit?

A: The kit requires a computer with a USB port and an internet
connection to download the necessary development toolchain.

Q: Can I use the kit with Arduino shield boards?

A: Yes, the kit is compatible with Arduino shield boards. The
user manual provides instructions on how to connect and use these
boards.

Q: How can I measure the current consumption of the

microcontroller?

A: You can measure the current consumption by using the JP2
solder bridge provided on the kit. The user manual provides
instructions on how to use this feature.

UM1525 User manual
STM32F0DISCOVERY Discovery kit for STM32 F0 microcontrollers
Introduction
The STM32F0DISCOVERY helps you to discover the STM32 F0 CortexTM-M0 features and to develop your applications easily. It is based on STM32F051R8T6, an STM32 F0 series 32-bit ARM® CortexTM microcontroller, and includes an ST- LINK/V2 embedded debug tool, LEDs, push buttons and a prototyping board.
Figure 1. STM32F0DISCOVERY

Table 1.

Applicable tools Type
Evaluation tools

Part number STM32F0DISCOVERY

May 2012

Doc ID 022910 Rev 2

1/41
www.st.com

Downloaded from Arrow.com.

Contents
Contents

UM1525

1

Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2

Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.2 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.3 Development toolchain supporting the STM32F0DISCOVERY . . . . . . . . . 7

2.4 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

3

Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

4

Hardware and layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

4.1 STM32F051R8T6 microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

4.2 Embedded ST-LINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

4.2.1 Using ST-LINK/V2 to program/debug the STM32 F0 on board . . . . . . . 15

4.2.2 Using ST-LINK/V2 to program/debug an external STM32 application . . 16

4.3 Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.4 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.5 Push buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.6 JP2 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4.7 OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

4.7.1 OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

4.7.2 OSC 32 KHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

4.8 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

4.9 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

5

Connecting modules on the prototyping board . . . . . . . . . . . . . . . . . . 27

5.1 Mikroelektronica accessory boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

5.2 ST MEMS “adapter boards”, standard DIL24 socket . . . . . . . . . . . . . . . . 30

5.3 Arduino shield boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

6

Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

7

Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

2/41

Doc ID 022910 Rev 2

Downloaded from Arrow.com.

UM1525

Contents

8

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

3/41

List of tables
List of tables

UM1525

Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Table 9. Table 10. Table 11. Table 12.

Applicable tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Debug connector CN3 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Solder bridge settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 MCU pin description versus board function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Connecting using mikroBUSTM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Connecting using IDC10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Connecting with a DIL24 board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Supported MEMS adapter boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Connecting with Arduino shields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

4/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525
List of figures

List of figures

Figure 1. Figure 2. Figure 3. Figure 4. Figure 5. Figure 6. Figure 7. Figure 8. Figure 9. Figure 10. Figure 11. Figure 12. Figure 13. Figure 14. Figure 15. Figure 16.

STM32F0DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 STM32F051R8T6 package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 STM32F051R8T6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Typical configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 STM32F0DISCOVERY connections image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 ST-LINK connections image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Using IDC10 and mikroBUSTM connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 DIL24 socket connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Arduino shield board connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 STM32F0DISCOVERY mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 STM32F0DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ST-LINK/V2 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

5/41

Conventions

1

Conventions

UM1525

Table 2 provides the definition of some conventions used in the present document.

Table 2. ON/OFF conventions

Convention

Definition

Jumper JP1 ON

Jumper fitted

Jumper JP1 OFF

Jumper not fitted

Solder bridge SBx ON SBx connections closed by solder Solder bridge SBx OFF SBx connections left open

6/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

2

Quick start

Quick start

The STM32F0DISCOVERY is a low-cost and easy-to-use development kit to quickly evaluate and start development with an STM32 F0 series microcontroller.
Before installing and using the product, please accept the Evaluation Product License Agreement from www.st.com/stm32f0discovery.
For more information on the STM32F0DISCOVERY and for demonstration software, visit www.st.com/stm32f0discovery.

2.1

Getting started

Follow the sequence below to configure the STM32F0DISCOVERY board and launch the DISCOVER application:
1. Check jumper position on the board, JP2 on, CN2 on (Discovery selected).
2. Connect the STM32F0DISCOVERY board to a PC with a USB cable `type A to mini-B’ through USB connector CN1 to power the board. Red LED LD1 (PWR) and LD2 (COM) light up and green LED LD3 blinks.
3. Press user button B1 (bottom left corner of the board).
4. Observe how the green LED LD3 blinking changes according to USER button B1 clicks.
5. Each click on USER button B1 is confirmed by the blue LED LD4.
6. To study or modify the DISCOVER project related to this demo, visit www.st.com/stm32f0discovery and follow the tutorial.
7. Discover the STM32F0 features, download and execute programs proposed in the list of projects.
8. Develop your own application using available examples.

2.2

System requirements

Windows PC (XP, Vista, 7) USB type A to Mini-B USB cable

2.3

Development toolchain supporting the STM32F0DISCOVERY

Altium®, TASKINGTM VX-toolset ARM®, Atollic TrueSTUDIO® IARTM, EWARM (IAR Embedded Workbench®) KeilTM, MDK-ARMTM

2.4

Order code

To order the STM32F0 Discovery kit, use the order code STM32F0DISCOVERY.

Doc ID 022910 Rev 2

7/41

Downloaded from Arrow.com.

Features

3

Features

UM1525

The STM32F0DISCOVERY kit offers the following features: STM32F051R8T6 microcontroller featuring 64 KB Flash, 8 KB RAM in an LQFP64
package 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) Board power supply: through USB bus or from an external 5 V supply voltage External application power supply: 3 V and 5 V Four LEDs:
­ LD1 (red) for 3.3 V power on ­ LD2 (red/green) for USB communication ­ LD3 (green) for PC9 output ­ LD4 (blue) for PC8 output Two push buttons (user and reset) Extension header for LQFP64 I/Os for quick connection to prototyping board and easy probing. An additional board is provided with the kit which can be connected to the extension connector for even easier prototyping and probing. A large number of free ready-to-run application firmware examples are available on www.st.com/stm32f0discovery to support quick evaluation and development.

8/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

4

Hardware and layout

Hardware and layout

The STM32F0DISCOVERY is designed around the STM32F051R8T6 microcontroller in a 64-pin LQFP package. Figure 2 illustrates the connections between the STM32F051R8T6 and its peripherals (STLINK/V2, push button, LEDs and connectors). Figure 3 and Figure 4 help you to locate these features on the STM32F0DISCOVERY.
Figure 2. Hardware block diagram

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

9/41

Hardware and layout Figure 3. Top layout

(red/green LED) LD2 COM
3V power supply input output
CN3 SWD connector

ST-LINK/V2

UM1525
LD1 (red LED) PWR 5V power supply input output CN2 ST-LINK/DISCOVERY selector

STM32F051R8T6 B1 user button
(green LED) LD3

JP2 IDD measurement SB1 (VBAT)
SB3 (B1-USER) B2 reset button SB4 (B2-RESET)
LD4 (blue LED)

MS30024V1

Note:

Pin 1 of CN2, CN3, P1 and P2 connectors are identified by a square.

10/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525 Figure 4. Bottom layout
SB5, SB7, SB9, SB11 (RESERVED)
SB6, SB8, SB10, SB12 (DEFAULT)
SB13 (STM_RST) SB14, SB15 (RX, TX)

Hardware and layout
SB16, SB17 (X2 crystal) SB18 (MCO) SB19 (NRST) SB20, SB21 (X3 crystal) SB22 (T_SWO)
MS30025V1

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

11/41

Hardware and layout

UM1525

4.1

STM32F051R8T6 microcontroller

This 32-bit low- and medium-density advanced ARMTM MCU with a high-performance ARM CortexTM-M0 32-bit RISC core has 64 Kbytes Flash, 8 Kbytes RAM, RTC, timers, ADC, DAC, comparators and communication interfaces.

Figure 5. STM32F051R8T6 package 34-&24

The STM32 F0 delivers 32-bit performance and STM32 DNA essentials into applications typically addressed by 8- or 16-bit microcontrollers. It benefits from the combination of realtime performance, low-power operation, advanced architecture and peripherals associated to the STM32 ecosystem, which has made the STM32 a reference in the market. Now all this is accessible for cost- sensitive applications. The STM32 F0 offers unparalleled flexibility and scalability for home entertainment products, appliances, and industrial equipment.
This device provides the following benefits. Superior code execution for better performance and excellent code efficiency for
reduced embedded memory usage High-performance connectivity and advanced analog peripherals to support a wide
range of applications Flexible clock options and low power modes with fast wake-up for low power
consumption
It has the following key features: Core and operating conditions
­ ARM® CortexTM-M0 0.9 DMIPS/MHz up to 48 MHz ­ 1.8/2.0 to 3.6 V supply range High-performance connectivity ­ 6 Mbit/s USART ­ 18 Mbit/s SPI with 4- to 16-bit data frame ­ 1 Mbit/s I²C fast-mode plus ­ HDMI CEC Enhanced control ­ 1x 16-bit 3-phase PWM motor control timer ­ 5x 16-bit PWM timers ­ 1x 16-bit basic timer ­ 1x 32-bit PWM timer ­ 12 MHz I/O toggling

12/41

Doc ID 022910 Rev 2

Downloaded from Arrow.com.

UM1525 Figure 6. STM32F051R8T6 block diagram

Hardware and layout

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

13/41

Hardware and layout

UM1525

4.2

Embedded ST-LINK/V2

The ST-LINK/V2 programming and debugging tool is integrated on the STM32F0DISCOVERY. The embedded ST-LINK/V2 can be used in 2 different ways according to the jumper states (see Table 3):
Program/debug the MCU on board,
Program/debug an MCU in an external application board using a cable connected to SWD connector CN3.
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.

Figure 7. Typical configuration

Table 3. Jumper states

Jumper state

Description

Both CN2 jumpers ON ST-LINK/V2 functions enabled for on board programming (default)

Both CN2 jumpers OFF

ST-LINK/V2 functions enabled for application through external CN3 connector (SWD supported)

14/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Hardware and layout

4.2.1

Using ST-LINK/V2 to program/debug the STM32 F0 on board
To program the STM32 F0 on board, simply plug in the two jumpers on CN2, as shown in Figure 8 in red, but do not use the CN3 connector as that could disturb communication with the STM32F051R8T6 of the STM32F0DISCOVERY.
Figure 8. STM32F0DISCOVERY connections image

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

15/41

Hardware and layout

UM1525

4.2.2
Note:

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 CN2 as shown in Figure 9, and connect your application to the CN3 debug connector according to Table 4.
SB19 and SB22 must be OFF if you use CN3 pin 5 in your external application.

Table 4.

Debug connector CN3 (SWD)

Pin

CN3

1

VDD_TARGET

2

SWCLK

3

GND

4

SWDIO

5

NRST

6

SWO

Designation VDD from application
SWD clock Ground
SWD data input/output RESET of target MCU
Reserved

Figure 9. ST-LINK connections image

16/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Hardware and layout

4.3

Power supply and power selection

The power supply is provided either by the host PC through the USB cable, or by an external 5V power supply.
The D1 and D2 diodes protect the 5V and 3V pins from external power supplies:
5V and 3V can be used as output power supplies when another application board is connected to pins P1 and P2. In this case, the 5V and 3V pins deliver a 5V or 3V power supply and power consumption must be lower than 100 mA.
5V can also be used as input power supplies e.g. when the USB connector is not connected to the PC. In this case, the STM32F0DISCOVERY board must be powered by a power supply unit or by auxiliary equipment complying with standard EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with limited power capability.

4.4

LEDs

LD1 PWR: Red LED indicates that the board is powered. LD2 COM: Tricolor LED (COM) advises on the communication status as follows:
­ Slow blinking Red LED/Off: At power on before USB initialization ­ Fast blinking Red LED/Off: After the first correct communication between PC and
STLINK/V2 (enumeration) ­ Red LED On: When initialization between PC and ST- LINK/V2 is successfully
finished ­ Green LED On: After successful target communication initialization ­ Blinking Red/Green LED: During communication with target ­ Red LED On: Communication finished and OK ­ Orange LED On: Communication failure User LD3: Green user LED connected to the I/O PC9 of the STM32F051R8T6. User LD4: Blue user LED connected to the I/O PC8 of the STM32F051R8T6.

4.5

Push buttons

B1 USER: User push button connected to the I/O PA0 of the STM32F051R8T6. B2 RESET: Push button used to RESET the STM32F051R8T6.

4.6

JP2 (Idd)

Jumper JP2, labeled Idd, allows the consumption of STM32F051R8T6 to be measured by removing the jumper and connecting an ammeter.
Jumper on: STM32F051R8T6 is powered (default).
Jumper off: an ammeter must be connected to measure the STM32F051R8T6 current, (if there is no ammeter, the STM32F051R8T6 is not powered).

Doc ID 022910 Rev 2

17/41

Downloaded from Arrow.com.

Hardware and layout

UM1525

4.7
4.7.1
4.7.2

OSC clock
OSC clock supply
PF0 and PF1 can be used as GPIO or as HSE oscillator. By default these I/Os are configured as GPIO, so SB16 and SB17 are closed, SB18 is open and R22, R23, C13 and C14 are not populated.
An external HSE clock can be provided to the MCU in three ways: 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 STM32F051R8T6. Configuration needed: ­ SB16, SB18 CLOSED ­ R22, R23 removed ­ SB17 OPEN Oscillator onboard. From X2 crystal (not provided). For typical frequencies and its capacitors and resistors, please refer to the STM32F051R8T6 Datasheet. Configuration needed: ­ SB16, SB17 SB18 OPEN ­ R22, R23, C13, C14 soldered Oscillator from external PF0. From external oscillator through pin 7 of the P1 connector. Configuration needed: ­ SB16, SB17 CLOSED ­ SB18 OPEN ­ R22 and R23 removed
OSC 32 KHz clock supply
PC14 and PC15 can be used as GPIO or as LSE oscillator. By default these I/Os are configured as GPIO, so SB20 & SB21 are closed and X3, R24, R25 are not populated.
An external LSE clock can be provided to the MCU in two ways: Oscillator onboard. From X3 crystal (not provided). Configuration needed:
­ SB20, SB21 OPEN ­ C15, C16, R24 and R25 soldered. Oscillator from external PC14. From external oscillator trough the pin 5 of P1 connector. Configuration needed: ­ SB20, SB21 CLOSED ­ R24 and R25 removed

18/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Hardware and layout

4.8

Solder bridges

Table 5. Solder bridge settings

Bridge

State(1)

Description

SB16,17 (X2 crystal)(2)
SB6,8,10,12 (Default) SB5,7,9,11 (Reserved)

OFF
ON ON OFF

SB20,21 (X3 crystal)

OFF ON

SB4 (B2-RESET)

ON OFF

SB3 (B1-USER)

ON OFF

SB1

ON

(VBAT powered from VDD) OFF

SB14,15 (RX,TX)

OFF ON

SB19 (NRST)

ON OFF

SB22 (T_SWO)
SB13 (STM_RST)

ON OFF OFF ON

SB2 (BOOT0)

ON OFF

SB18 (MCO)(2)

ON OFF

X2, C13, C14, R22 and R23 provide a clock. PF0, PF1 are disconnected from P1. PF0, PF1 are connected to P1 (R22, R23 and SB18 must not be fitted). Reserved, do not modify. Reserved, do not modify. X3, C15, C16, R24 and R25 deliver a 32 KHz clock. PC14, PC15 are not connected to P1. PC14, PC15 are only connected to P1 (R24, R25 must not be fitted). B2 push button is connected to the NRST pin of the STM32F051R8T6 MCU. B2 push button is not connected the NRST pin of the STM32F051R8T6 MCU. B1 push button is connected to PA0. B1 push button is not connected to PA0. VBAT is permanently powered from VDD. VBAT is not powered from VDD but pin3 of P1. Reserved, do not modify. Reserved, do not modify. NRST signal of the CN3 connector is connected to the NRST pin of the STM32F051R8T6 MCU. NRST signal of the CN3 connector is not connected to the NRST pin of the STM32F051R8T6 MCU. SWO signal of the CN3 connector is connected to PB3. SWO signal is not connected. No incidence on STM32F103C8T6 (ST-LINK/V2) NRST signal. STM32F103C8T6 (ST-LINK/V2) NRST signal is connected to GND. BOOT0 signal of the STM32F051R8T6 MCU is held low through a 510 Ohm pull-down resistor. BOOT0 signal of the STM32F051R8T6 MCU can be set high through a 10 KOhm pull-up resistor R27 to solder. Provides the 8 MHz for OSC_IN from MCO of STM32F103C8T6. See SB16, SB17 description.

1. Default SBx state is shown in bold.
2. OSC_IN clock comes from MCO if SB18 is ON and SB16,17 are OFF and comes from X2 if SB18 is OFF and SB16,17 are ON.

Doc ID 022910 Rev 2

19/41

Downloaded from Arrow.com.

Hardware and layout

UM1525

4.9

Extension connectors

The male headers P1 and P2 can connect the STM32F0DISCOVERY to a standard prototyping/wrapping board. STM32F051R8T6 GPI/Os are available on these connectors. P1 and P2 can also be probed by an oscilloscope, logical analyzer or voltmeter.

Table 6.

MCU pin description versus board function (page 1 of 7)

MCU pin

Board function

P2 P1 CN3 Power supply Free I/O OSC SWD LED Push button LQFP64

Main function

Alternate functions

BOOT0 BOOT0

60

NRST NRST

7

2_CTS,

IN0,

2_CH1_ETR,

PA0

1_INM6, 1_OUT,

14

TSC_G1_IO1,

RTC_TAMP2,

WKUP1

2_RTS,

IN1,

PA1

2_CH2, 1_INP,

15

TSC_G1_IO2,

EVENTOUT

2_TX,

IN2,

2_CH3,

PA2

15_CH1,

16

2_INM6,

2_OUT,

TSC_G1_IO3

2_RX,

IN3,

PA3

2_CH4, 15_CH2,

17

2_INP,

TSC_G1_IO4,

USER

NRST RESET

6 5 10
15
16 17 18

20/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Hardware and layout

Table 6.

MCU pin description versus board function (page 2 of 7)

MCU pin

Board function

P2 P1 CN3 Power supply Free I/O OSC SWD LED Push button LQFP64

Main function

Alternate functions

1_NSS / 1_WS,

2_CK,

IN4,

PA4

14_CH1, DAC1_OUT,

20

1_INM4,

2_INM4,

TSC_G2_IO1

1_SCK / 1_CK,

CEC,

IN5,

PA5

2_CH1_ETR, (DAC2_OUT),

21

1_INM5,

2_INM5,

TSC_G2_IO2

1_MISO / 1_MCK,

IN6,

3_CH1,

PA6

1_BKIN, 16_CH1,

22

1_OUT,

TSC_G2_IO3,

EVENTOUT

1_MOSI / 1_SD,

IN7,

3_CH2,

14_CH1,

PA7

1_CH1N,

23

17_CH1,

2_OUT,

TSC_G2_IO4,

EVENTOUT

1_CK,

PA8

1_CH1, EVENTOUT,

41

MCO

1_TX,

PA9

1_CH2, 15_BKIN,

42

TSC_G4_IO1

21 22 23 24
25 24

Doc ID 022910 Rev 2

21/41

Downloaded from Arrow.com.

Hardware and layout

Table 6.

MCU pin description versus board function (page 3 of 7)

MCU pin

Board function

UM1525

P2 P1 CN3 Power supply Free I/O OSC SWD LED Push button LQFP64

Main function

Alternate functions

1_RX,

PA10

1_CH3, 17_BKIN,

43

TSC_G4_IO2

1_CTS,

1_CH4,

PA11 1_OUT,

44

TSC_G4_IO3,

EVENTOUT

1_RTS,

1_ETR,

PA12 2_OUT,

45

TSC_G4_IO4,

EVENTOUT

PA13

IR_OUT, SWDAT

46

PA14

2_TX, SWCLK

49

1_NSS / 1_WS,

PA15

2_RX, 2_CH1_ETR,

50

EVENTOUT

IN8,

3_CH3,

PB0

1_CH2N,

26

TSC_G3_IO2,

EVENTOUT

IN9,

3_CH4,

PB1

14_CH1,

27

1_CH3N,

TSC_G3_IO3

PB2 or

NPOR (1.8V

TSC_G3_IO4

28

mode)

1_SCK / 1_CK,

PB3

2_CH2, TSC_G5_IO1,

55

EVENTOUT

SWO

SWDIO SWCLK

23 22

21

4

20

2

17

16

27

28

29

6

11

22/41

Doc ID 022910 Rev 2

Downloaded from Arrow.com.

UM1525

Hardware and layout

Table 6.

MCU pin description versus board function (page 4 of 7)

MCU pin

Board function

P2 P1 CN3 Power supply Free I/O OSC SWD LED Push button LQFP64

Main function

Alternate functions

1_MISO / 1_MCK,

PB4

3_CH1, TSC_G5_IO2,

56

EVENTOUT

1_MOSI / 1_SD,

PB5

1_SMBA, 16_BKIN,

57

3_CH2

1_SCL,

PB6

1_TX, 16_CH1N,

58

TSC_G5_IO3

1_SDA,

PB7

1_RX, 17_CH1N,

59

TSC_G5_IO4

1_SCL,

PB8

CEC, 16_CH1,

61

TSC_SYNC

1_SDA,

PB9

IR_EVENTOUT, 17_CH1,

62

EVENTOUT

2_SCL,

PB10

CEC, 2_CH3,

29

SYNC

2_SDA,

PB11

2_CH4, G6_IO1,

30

EVENTOUT

2_NSS,

PB12

1_BKIN, G6_IO2,

33

EVENTOUT

2_SCK,

PB13 1_CH1N,

34

G6_IO3

10 9 8 7 4 3 30 31 32 32

Doc ID 022910 Rev 2

23/41

Downloaded from Arrow.com.

Hardware and layout

Table 6.

MCU pin description versus board function (page 5 of 7)

MCU pin

Board function

Main function

Alternate functions

2_MISO,

PB14

1_CH2N, 15_CH1,

35

G6_IO4

2_MOSI,

1_CH3N,

PB15 15_CH1N,

36

15_CH2,

RTC_REFIN

PC0

IN10, EVENTOUT

8

PC1

IN11, EVENTOUT

9

PC2

IN12, EVENTOUT

10

PC3

IN13, EVENTOUT

11

PC4

IN14, EVENTOUT

24

PC5

IN15, TSC_G3_IO1

25

PC6

3_CH1

37

PC7

3_CH2

38

PC8

3_CH3

39

PC9

3_CH4

40

PC10

51

PC11

52

PC12

53

RTC_TAMP1,

PC13

RTC_TS, RTC_OUT,

2

WKUP2

BLUE GREEN

P2 P1 CN3 Power supply Free I/O OSC SWD LED Push button LQFP64

UM1525
31
30
11 12 13 14 25 26
29 28 27 26 15 14 13 4

24/41

Doc ID 022910 Rev 2

Downloaded from Arrow.com.

UM1525

Hardware and layout

Table 6.

MCU pin description versus board function (page 6 of 7)

MCU pin

Board function

P2

P1

CN3

OSC

LED

Main function

Alternate functions

Power supply

Free I/O

SWD

Push button

LQFP64

OSC32_IN OSC32_OUT

PC14-

OSC32_ OSC32_IN

3

IN

PC15-

OSC32_ OSC32_OUT

4

OUT

PD2

3_ETR

54

PF0OSC_IN

OSC_IN

5

PF1-

OSC_ OSC_OUT

6

OUT

PF4

EVENTOUT

18

PF5

EVENTOUT

19

PF6

2_SCL

47

PF7

2_SDA

48

VBAT VBAT

1

VDD_1

64

VDD_2

32

VDDA

13

VSS_1

63

VSS_2

31

VSSA

12

OSC_IN OSC_OUT

5
6
12 7
8 19 20
19 18 3

5V

1

3V

1

5

22

3

VDD GND GND GND

Doc ID 022910 Rev 2

25/41

Downloaded from Arrow.com.

P2 P1 CN3 Power supply GND GND Free I/O OSC SWD LED Push button LQFP64

Hardware and layout

Table 6.

MCU pin description versus board function (page 7 of 7)

MCU pin

Board function

Main function

Alternate functions

UM1525

9 33 33

26/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Connecting modules on the prototyping board

5

Connecting modules on the prototyping board

This section gives some examples of how to connect ready-to-use modules available from different manufacturers to the STM32F0DISCOVERY kit via the prototyping board included in the kit.
Software examples, based on the connections described below, are available at www.st.com/stm32f0discovery.

5.1

Mikroelektronica accessory boards
Mikroelektronika, http://www.mikroe.com, has specified two standard connectors for their accessory boards, named mikroBUSTM (http://www.mikroe.com/mikrobus_specs.pdf) and IDC10.
MikroBUSTM is a 16-pin connector to connect accessory boards very quickly and easily to a microcontroller board through SPI, USART or I2C communications, along with additional pins such as Analog Input, PWM and Interrupt.
The set of mikroElektronika boards compatible with mikroBUSTM is called “Click boards”.
IDC10 is a 10-pin connector to connect the general purpose I/O of an MCU to other accessory boards.
The tables below are one solution for connecting mikroBUSTM and IDC boards to the STM32F0DISCOVERY; this solution used in the different examples is available at www.st.com/stm32f0discovery.

Table 7. Connecting using mikroBUSTM

Mikroelektronica mikroBUSTM

Pin

Description

AN RST CS SCK

Analog pin Reset pin SPI Chip Select line SPI Clock line

MISO

SPI Slave Output line

MOSI PWM INT

SPI Slave Input line PWM output line Hardware Interrupt line

RX

UART Receive line

TX SCL SDA 5V

UART Transmit line I2C Clock line I2C Data line VCC 5V power line

STM32F0DISCOVERY

Pin PA4 PB13 PA11 PB3 PB4 PB5 PA8 PB12 PA3 PA2 PF6 PF7 5V

Description DAC1_OUT GPIO OUTPUT (5V tolerant) GPIO OUTPUT (5V tolerant) SPI1_SCK SPI1_MISO SPI1_MOSI TIM1_CH1 GPIO INPUT EXTI (5V tolerant) USART2_RX USART2_TX I2C2_SCL I2C2_SDA Power line

Doc ID 022910 Rev 2

27/41

Downloaded from Arrow.com.

Connecting modules on the prototyping board

Table 8. Connecting using IDC10

Mikroelektronica IDC10 connector

P0

GPIO

P1

GPIO

P2

GPIO

P3

GPIO

P4

GPIO

P5

GPIO

P6

GPIO

P7 VCC GND P0

GPIO VCC 5V power line Reference Ground GPIO

P1

GPIO

P2

GPIO

P3

GPIO

UM1525

STM32F0DISCOVERY

PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 3V GND PC0 PC1 PC2 PC3

GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (5V tolerant) GPIO OUTPUT (5V tolerant) VDD VSS GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (3.3V tolerant) GPIO OUTPUT (3.3V tolerant)

28/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Connecting modules on the prototyping board

The Figure 10 illustrates the connections between the STM32F0 Discovery and the 2 connectors, IDC10 and mikroBUSTM.
Figure 10. Using IDC10 and mikroBUSTM connectors

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

29/41

Connecting modules on the prototyping board

UM1525

5.2

ST MEMS “adapter boards”, standard DIL24 socket
STMicroelectronics has defined a standard DIL24 connector to easily evaluate its MEMS sensors connected to a microcontroller through SPI or I2C communications.
Table 9 is one solution for connecting the DIL24 boards to the STM32F0DISCOVERY, this solution is used in different examples and available at www.st.com/stm32f0discovery.

Table 9. Connecting with a DIL24 board ST MEMS DIL24 Eval board
P01 VDD Power supply P02 Vdd_IO Power supply for I/O pins P03 NC P04 NC P05 NC P06 NC P07 NC P08 NC P09 NC P10 NC P11 NC P12 NC P13 GND 0V supply P14 INT1 Inertial interrupt 1 P15 INT2 inertial interrupt 2 P16 NC P17 NC P18 NC P19 CS – 0:SPI enabled 1:I2C mode

P20

SCL (I2C serial clock) SPC (SPI serial clock)

3V 3V
GND PB12 PB11
PA11 PB6 PB3

STM32F0DISCOVERY VDD VDD
GND GPIO INPUT EXTI (5V tolerant) GPIO INPUT EXTI (5V tolerant)
GPIO OUTPUT (5V tolerant) I2C1_SCL SPI1_SCK

P21

SDA I2C Serial Data SDI SPI Serial Data Input

PB7 I2C1_SDA PB5 SPI1_MOSI

P22

SDO SPI Serial Data Output I2C less significant bit of the device address

PB4

SPI1_MISO

P23 NC P24 NC

30/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Connecting modules on the prototyping board

Figure 11 illustrates the connections between the STM32F0 Discovery and the DIL24 socket.
Figure 11. DIL24 socket connections

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

31/41

Connecting modules on the prototyping board

UM1525

Note:

Supported MEMS adapter boards
Table 10 is a list of supported MEMS adapter boards as of April, 2012.

Table 10. Supported MEMS adapter boards

ST MEMS DIL24 Eval Board

Core product

STEVAL-MKI009V1

LIS3LV02DL

STEVAL-MKI013V1 STEVAL-MKI015V1

LIS302DL LIS344ALH

STEVAL-MKI082V1

LPY4150AL

STEVAL-MKI083V1

LPY450AL

STEVAL-MKI084V1

LPY430AL

STEVAL-MKI085V1

LPY410AL

STEVAL-MKI086V1

LPY403AL

STEVAL-MKI087V1

LIS331DL

STEVAL-MKI088V1

LIS33DE

STEVAL-MKI089V1 STEVAL-MKI090V1

LIS331DLH LIS331DLF

STEVAL-MKI091V1

LIS331DLM

STEVAL-MKI092V1

LIS331HH

STEVAL-MKI095V1 STEVAL-MKI096V1

LPR4150AL LPR450AL

STEVAL-MKI097V1

LPR430AL

STEVAL-MKI098V1

LPR410AL

STEVAL-MKI099V1

LPR403AL

STEVAL-MKI105V1 STEVAL-MKI106V1

LIS3DH LSM303DLHC

STEVAL-MKI107V1

L3G4200D

STEVAL-MKI107V2

L3GD20

STEVAL-MKI108V1 STEVAL-MKI108V2 STEVAL-MKI110V1

9AXISMODULE v1 [LSM303DLHC + L3G4200D] 9AXISMODULE v2 [LSM303DLHC + L3GD20] AIS328DQ

STEVAL-MKI113V1

LSM303DLM

STEVAL-MKI114V1

MAG PROBE (based on LSM303DLHC)

STEVAL-MKI120V1 STEVAL-MKI122V1

LPS331AP LSM330DLC

STEVAL-MKI123V1

LSM330D

STEVAL-MKI124V1

10AXISMODULE [LSM303DLHC + L3GD20+ LPS331AP]

STEVAL-MKI125V1

A3G4250D

For an up-to-date list, visit http://www.st.com/internet/evalboard/subclass/1116.jsp. The DIL24 boards are described as “adapter boards” in the field “General Description”.

32/41

Doc ID 022910 Rev 2

Downloaded from Arrow.com.

UM1525

Connecting modules on the prototyping board

5.3

Arduino shield boards
ArduinoTM is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. See http://www.arduino.cc for more information.
Arduino accessory boards are called “Shields” and can be easily connected to the STM32F0 Discovery according to the following table.

Table 11. Connecting with Arduino shields

Connecting with Arduino shields

Arduino power connector

Reset 3V3 5V GND GND Vin

Reset from Shield board VCC 3.3V power line VCC 5V power line Reference Ground Reference Ground External alimentation

Arduino analog in connector

A0

Analog input or Digital pin 14

A1

Analog input or Digital pin 15

A2

Analog input or Digital pin 16

A3

Analog input or Digital pin 17

A4

Analog input or SDA or Digital pin 18

A5

Analog input or SCL or Digital pin 19

Arduino digital connector

D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 GND AREF

Digital pin 0 or RX Digital pin 1 or TX Digital pin 2 / External interrupt Digital pin 3 / Ext int or PWM Digital pin 4 Digital pin 5 or PWM Digital pin 6 or PWM Digital pin 7 Digital pin 8 Digital pin 9 or PWM Digital pin 10 or CS or PWM Digital pin 11 or MOSI or PWM Digital pin 12 or MISO Digital pin 13 or SCK Reference Ground ADC voltage reference

STM32F0DISCOVERY

NRST 3V 5V
GND GND VBAT

Reset discovery VDD VDD Reference Ground Reference Ground Jumper to fit

STM32F0DISCOVERY

PC0

ADC_IN10

PC1

ADC_IN11

PC2

ADC_IN12

PC3

ADC_IN13

PC4 or PF7 ADC_IN14 or I2C2_SDA

PC5 or PF6 ADC_IN15 or I2C2_SCL

STM32F0DISCOVERY

PA3 PA2 PB12 PB11 PA7 PB9 PB8 PA6 PA5 PA4 PA11 PB5 PB4 PB3 GND NC

USART2_RX USART2_TX EXTI (5V tolerant) EXTI (5V tolerant) or TIM2_CH4 GPIO (3V tolerant) TIM17_CH1 TIM16_CH1 GPIO (3V tolerant) GPIO (3V tolerant) TIM14_CH1 TIM1_CH4 SPI1_MOSI or TIM3_CH2 SPI1_MISO SPI1_SCK Reference Ground Not connected

Doc ID 022910 Rev 2

33/41

Downloaded from Arrow.com.

Connecting modules on the prototyping board

UM1525

Connecting with Arduino shields (continued)

Arduino ICSP connector

1

MISO

2

VCC 3.3V

3

SCK

4

MOSI

5

RST

6

GND

STM32F0DISCOVERY

PB4 3V PB3 PB5 NRST GND

SPI1_MISO VDD SPI1_SCK SPI1_MOSI Reset discovery Reference Ground

34/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Connecting modules on the prototyping board

Figure 12 illustrates the connections between the STM32F0 Discovery and the Arduino shield boards.
Figure 12. Arduino shield board connections

Downloaded from Arrow.com.

Doc ID 022910 Rev 2

35/41

Mechanical drawing

6

Mechanical drawing

Figure 13. STM32F0DISCOVERY mechanical drawing

UM1525

36/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

Downloaded from Arrow.com.

37/41

Doc ID 022910 Rev 2

1

P1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
Header 33

PC13 PC14 PC15 PF0 PF1
NRST PC0 PC1 PC2 PC3 PA0 PA1 PA2 PA3 PF4 PF5 PA4 PA5 PA6 PA7 PC4 PC5 PB0 PB1 PB2 PB10 PB11 PB12

3V VBAT

1

2

3

4

ST_LINK_V2.SCHDOC U_ST_LINK

PA10 PA9

PA10 PA9

MCO PA14 PA13

NRST PB3

MCO PA14 PA13
NRST PB3

TCK/SWCLK TMS/SWDIO
T_NRST T_SWO

PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15

U_STM32Fx STM32Fx.SchDoc
PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15

PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15

PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15

PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15
PD2
PF0 PF1 PF4 PF5 PF6 PF7
MCO
VBAT
BOOT0
NRST

PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15
PD2
PF0 PF1 PF4 PF5 PF6 PF7
MCO
VBAT
BOOT0
NRST

2

3

5V VDD

PB9 PB8
BOOT0 PB7 PB6 PB5 PB4 PB3 PD2 PC12 PC11 PC10 PA15 PA14 PF7 PF6 PA13 PA12 PA11 PA10 PA9 PA8 PC9 PC8 PC7 PC6 PB15 PB14 PB13

P2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
Header 33

RevB.0 –> PCB label MB1034 B-00 PA6, PA7, PC4, PC5, PB0, PB1 are available and P1, P2 are Header 33 pts
RevA.0 –> PCB label MB1034 A-00

STMicroelectronics
Title:
STM32F0DISCOVERY
Number:MB1034 Rev: B.0(PCB.SCH) Date:2/3/2012 4

Sheet1 of 3

Figure 14. STM32F0DISCOVERY

Electrical schematics

7

Electrical schematics

UM1525

38/41 Downloaded from Arrow.com.

2 4
DEFAULT
1 2 3 4
RESERVED

Electrical schematics Figure 15. ST-LINK/V2 (SWD only)

Board Ident: PC13=0

R18 10K R19 10K

R13 100K

Not Fitted

3V

C11

C10

20pF X1

20pF

1

3V 1

2

2

3

8MHz

4

R16

OSC_IN

5

100K

OSC_OUT 6

STM_RST 7

8

C8 100nF 3V

9 R20 4K7 AIN_1 10

SB13

11

R21 4K7

12

VBAT PC13 PC14 PC15 OSCIN OSCOUT NRST VSSA VDDA PA0 PA1 PA2

VDD_3 VSS_3
PB9 PB8 BOOT0 PB7 PB6 PB5 PB4/JNTRST PB3/JTDO PA15/JTDI JTCK/SWCLK

48 47 46 SWIM_IN 45 SWIM 44 43 SWIM_IN 42 SWIM_RST 41 SWIM_RST_IN 40 39 38 37 STM_JTCK

Not Fitted

VDD_2 VSS_2 JTMS/SWDIO
PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12

R9 10K
SWD

D3 R10

AIN_1

100

BAT60JFILM CN3

U2 STM32F103C8T6

1 2

R12

T_JTCK

22

3

36 35

3V

4 5 6
Header 6

R14

T_JTMS

22

R15

T_NRST

22

34 STM_JTMS

R17

T_SWO

33 USB_DP

22

32 USB_DM

31 T_SWO 30 LED_STLINK 29 28 27 T_JTMS

RC Must be very close to STM32F103 pin 29

R34

MCO MCO

100

C24

26 T_JTCK 25

20pF R11
100

Not Fitted

T_SWDIO_IN

TCK/SWCLK TMS/SWDIO
T_SWO

T_NRST SB19
SB22

PA14 PA13 NRST PB3

SWD

SB6 SB8 SB10 SB12

SB5

3V

STM_JTCK SWCLK

SB7

SB9 STM_JTMS
SB11

SWDIO

CN2
Jumpers ON –> DISCOVERY Selected Jumpers OFF –> ST-LINK Selected

Doc ID 022910 Rev 2

PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2/BOOT1 PB10 PB11 VSS_1 VDD_1

STLINK_TX

STM32F0_USART1_RX PA10
PA9 STM32F0_USART1_TX

SB14 JP1
SB15

TX RX
STLINK_RX

Close to JP Not Fitted

Not Fitted

USB

U5V

CN1

VCC DD+ ID
GND SHELL

1 2 3 4 5 0

5075BMR-05-SM

D1

EXT_5V

5V

BAT60JFILM

R6 R8

1K5 0 USB_DM

3V

R7 0 USB_DP

R5 100K

13

14

T_JTCK 15

T_JTDO 16

T_JTDI 17

T_NRST 18

T_JRST 19

20

SWIM_IN 21

22

23

24

SWIM

Idd

3V

3V

JP2

VDD

R2 1K

LD1 RED

3V

C6

C7

C12

C9

100nF 100nF 100nF 100nF

COM
LED_STLINK

LD2

Red

R4 2

1

100

R3 3 100

4

R1 0

3V

_Green

LD_BICOLOR_CMS

PWR

5V

U1

1 Vin

Vout 5

D2

OUT_3V

3V

C1

3 INH
GND

1µF_X5R_0603

BYPASS

BAT60JFILM C4 1µF_X5R_0603

LD3985M33R

C2

C3

100nF

10nF_X7R_0603

C5 100nF

STMicroelectronics

Title:
STM32F0DISCOVERY ST-LINK/V2 (SWD only)

Number:MB1034 Rev: B 0(PCB SCH) Date:2/3/2012

Sheet2 of 3

UM1525

Downloaded from Arrow.com.

39/41

Doc ID 022910 Rev 2

48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33

PF7 PF6 PA13 PA12 PA11 PA10 PA9 PA8 PC9 PC8 PC7 PC6 PB15 PB14 PB13 PB12

PF7 PF6 PA13 PA12 PA11 PA10 PA9 PA8 PC9 PC8 PC7 PC6 PB15 PB14 PB13 PB12

Not Fitted
BOOT0

VDD

R27 10K
R26 510

SB2

PA14 PA15 PC10 PC11 PC12
PD2 PB3 PB4 PB5 PB6 PB7
PB8 PB9

PA14 49

PA15 50

PC10 51

PC11 52

PC12 53

PD2 54

PB3 55

PB4 56

PB5 57

PB6 58

PB7 59

BOOT0 60

PB8 61

PB9 62

63

VDD

64

PA14 PA15 PC10 PC11 PC12 PD2 PB3 PB4 PB5 PB6 PB7 BOOT0 PB8 PB9 VSS_1 VDD_1

Not Fitted

C17

1uF

SB1

Close to STM32

VBAT PC13 PC14 PC15

PC13 PC14 SB21 PC15

SB20

Close to XTAL & MCU Not Fitted

R25 X3

R24

0

0

1

4

C16

2

3

C15

6.8pF

6.8pF

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

VBAT PC13 – TAMPER1 – WKUP2 PC14 – OSC32_IN PC15 – OSC32_OUT PF0 – OSC_IN PF1 – OSC_OUT NRST PC0 PC1 PC2 PC3 VSSA / VREFVDDA / VREF+ PA0 – TAMPER2 – WKUP1 PA1 PA2

PF7 PF6 PA13 PA12 PA11 PA10 PA9 PA8 PC9 PC8 PC7 PC6 PB15 PB14 PB13 PB12

U3 STM32F051R8T6

VDD_2 VSS_2
PB11 PB10 PB2 or NPOR (1.8V mode)
PB1 PB0 PC5 PC4 PA7 PA6 PA5 PA4 PF5 PF4 PA3

32 31

VDD

30 PB11 29 PB10 28 PB2 27 PB1 26 PB0 25 PC5 24 PC4 23 PA7 22 PA6 21 PA5 20 PA4 19 PF5 18 PF4 17 PA3

PB11 PB10 PB2 PB1 PB0 PC5 PC4 PA7 PA6 PA5 PA4 PF5 PF4 PA3

PA2 PA1 PA0

PA2 PA1 PA0

VDD

NRPSCTP0CP1CNP2CRP3SCTP0CP1CP2C3

MC306-G-06Q-32.768 (JFVNY)

MCO

MCO

PF0

PF0

SB18 SB17
Not Fitted

PF1

PF1

SB16

R23

R22

0 X2

390

1

2

8MHz C14 20pF

C13 20pF

VDD

VDD

C18

C20

C21 C19

1uF

100nF 100nF 100nF

PC9

R30

330

PC8

R31

660

LD3 green LD4 blue

VDD
Not Fitted
R33 100K
NRST SB4
B2 C23
100nF

1

2

SW-PUSH-CMS

4

3

RESET Button

Not Fitted
PA0 SB3

VDD
R32 100
B1 C22

1

2

SW-PUSH-CMS

100nF R28 330

3

4

R29 220K

USER & WAKE-UP Button

STMicroelectronics
Title:
STM32F0DISCOVERY MCU
Number:MB1034 Rev: B.0(PCB.SCH) Date:3/1/2012

Sheet3 of 3

UM1525 Figure 16. MCU

Electrical schematics

Revision history

8

Revision history

UM1525

Table 12. Document revision history

Date

Revision

Changes

20-Mar-2012

1

Initial release.

30-May-2012

2

Added Section 5: Connecting modules on the prototyping board on page 27.

40/41 Downloaded from Arrow.com.

Doc ID 022910 Rev 2

UM1525

Please Read Carefully:
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS “AUTOMOTIVE GRADE” MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2012 STMicroelectronics – All rights reserved
STMicroelectronics group of companies Australia – Belgium – Brazil – Canada – China – Czech Republic – Finland – France – Germany – Hong Kong – India – Israel – Italy – Japan –
Malaysia – Malta – Morocco – Philippines – Singapore – Spain – Sweden – Switzerland – United Kingdom – United States of America www.st.com

Doc ID 022910 Rev 2

41/41

Downloaded from Arrow.com.

References

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals