ST STM32F0DISCOVERY User Manual

ST STM32F0DISCOVERY User Manual

Discovery kit for stm32 f0 microcontrollers
Hide thumbs Also See for STM32F0DISCOVERY:
Table of Contents

Advertisement

May 2012
Arrow.com.
Downloaded from
Discovery kit for STM32 F0 microcontrollers
Introduction
The STM32F0DISCOVERY helps you to discover the STM32 F0 Cortex™-M0 features and
to develop your applications easily. It is based on STM32F051R8T6, an STM32 F0 series
32-bit ARM® Cortex™ 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
Doc ID 022910 Rev 2
UM1525
User manual
STM32F0DISCOVERY
Part number
STM32F0DISCOVERY
1/41
www.st.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F0DISCOVERY and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST STM32F0DISCOVERY

  • Page 1: Table 1. Applicable Tools

    Discovery kit for STM32 F0 microcontrollers Introduction The STM32F0DISCOVERY helps you to discover the STM32 F0 Cortex™-M0 features and to develop your applications easily. It is based on STM32F051R8T6, an STM32 F0 series 32-bit ARM® Cortex™ microcontroller, and includes an ST-LINK/V2 embedded debug tool, LEDs, push buttons and a prototyping board.
  • Page 2: Table Of Contents

    Embedded ST-LINK/V2 ........
  • Page 3 UM1525 Contents Revision history ......... . . 40 Doc ID 022910 Rev 2 3/41 Arrow.com.
  • Page 4 List of tables UM1525 List of tables Table 1. Applicable tools............1 Table 2.
  • Page 5 STM32F0DISCOVERY connections image ........15...
  • Page 6: Conventions

    Conventions UM1525 Conventions 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 Doc ID 022910 Rev 2...
  • Page 7: Quick Start

    Check jumper position on the board, JP2 on, CN2 on (Discovery selected). 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.
  • Page 8: 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 ●...
  • Page 9: Hardware And Layout

    UM1525 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 (ST- LINK/V2, push button, LEDs and connectors). Figure 3 Figure 4 help you to locate these features on the STM32F0DISCOVERY.
  • Page 10: Figure 3. Top Layout

    Hardware and layout UM1525 Figure 3. Top layout (red/green LED) LD2 LD1 (red LED) ST-LINK/V2 5V power supply 3V power supply input output input output SWD connector ST-LINK/DISCOVERY selector IDD measurement SB1 (VBAT) SB3 (B1-USER) B2 reset button STM32F051R8T6 SB4 (B2-RESET)
  • Page 11: Figure 4. Bottom Layout

    UM1525 Hardware and layout Figure 4. Bottom layout SB5, SB7, SB9, SB11 (RESERVED) SB6, SB8, SB10, SB12 (DEFAULT) SB13 (STM_RST) SB14, SB15 (RX, TX) SB16, SB17 (X2 crystal) SB18 (MCO) SB19 (NRST) SB20, SB21 (X3 crystal) SB22 (T_SWO) MS30025V1 Doc ID 022910 Rev 2 11/41 Arrow.com.
  • Page 12: Stm32F051R8T6 Microcontroller

    Hardware and layout UM1525 STM32F051R8T6 microcontroller This 32-bit low- and medium-density advanced ARM™ MCU with a high-performance ARM Cortex™-M0 32-bit RISC core has 64 Kbytes Flash, 8 Kbytes RAM, RTC, timers, ADC, DAC, comparators and communication interfaces. Figure 5. STM32F051R8T6 package The STM32 F0 delivers 32-bit performance and STM32 DNA essentials into applications typically addressed by 8- or 16-bit microcontrollers.
  • Page 13: Figure 6. Stm32F051R8T6 Block Diagram

    UM1525 Hardware and layout Figure 6. STM32F051R8T6 block diagram Doc ID 022910 Rev 2 13/41 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from Downloaded from...
  • Page 14: Embedded St-Link/V2

    Hardware and layout UM1525 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 ● Program/debug the MCU on board, ●...
  • Page 15: Using St-Link/V2 To Program/Debug The Stm32 F0 On Board

    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.
  • Page 16: Using St-Link/V2 To Program/Debug An External Stm32 Application

    UM1525 4.2.2 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...
  • Page 17: Power Supply And Power Selection

    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.
  • Page 18: Osc Clock

    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.
  • Page 19: Solder Bridges

    SWO signal is not connected. No incidence on STM32F103C8T6 (ST-LINK/V2) NRST signal. SB13 (STM_RST) 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) BOOT0 signal of the STM32F051R8T6 MCU can be set high through a 10 KOhm pull-up resistor R27 to solder.
  • Page 20: Extension Connectors

    Hardware and layout UM1525 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.
  • Page 21 UM1525 Hardware and layout Table 6. MCU pin description versus board function (page 2 of 7) MCU pin Board function Main Alternate function functions 1_NSS / 1_WS, 2_CK, IN4, 14_CH1, DAC1_OUT, 1_INM4, 2_INM4, TSC_G2_IO1 1_SCK / 1_CK, CEC, IN5, 2_CH1_ETR, (DAC2_OUT), 1_INM5, 2_INM5,...
  • Page 22 Hardware and layout UM1525 Table 6. MCU pin description versus board function (page 3 of 7) MCU pin Board function Main Alternate function functions 1_RX, 1_CH3, PA10 17_BKIN, TSC_G4_IO2 1_CTS, 1_CH4, PA11 1_OUT, TSC_G4_IO3, EVENTOUT 1_RTS, 1_ETR, PA12 2_OUT, TSC_G4_IO4, EVENTOUT IR_OUT, PA13...
  • Page 23 UM1525 Hardware and layout Table 6. MCU pin description versus board function (page 4 of 7) MCU pin Board function Main Alternate function functions 1_MISO / 1_MCK, 3_CH1, TSC_G5_IO2, EVENTOUT 1_MOSI / 1_SD, 1_SMBA, 16_BKIN, 3_CH2 1_SCL, 1_TX, 16_CH1N, TSC_G5_IO3 1_SDA, 1_RX, 17_CH1N,...
  • Page 24 Hardware and layout UM1525 Table 6. MCU pin description versus board function (page 5 of 7) MCU pin Board function Main Alternate function functions 2_MISO, 1_CH2N, PB14 15_CH1, G6_IO4 2_MOSI, 1_CH3N, PB15 15_CH1N, 15_CH2, RTC_REFIN IN10, EVENTOUT IN11, EVENTOUT IN12, EVENTOUT IN13, EVENTOUT...
  • Page 25 UM1525 Hardware and layout Table 6. MCU pin description versus board function (page 6 of 7) MCU pin Board function Main Alternate function functions PC14- OSC32_ OSC32_IN PC15- OSC32_ OSC32_OUT 3_ETR PF0- OSC_IN OSC_IN PF1- OSC_ OSC_OUT EVENTOUT EVENTOUT 2_SCL 2_SDA VBAT VBAT...
  • Page 26 Hardware and layout UM1525 Table 6. MCU pin description versus board function (page 7 of 7) MCU pin Board function Main Alternate function functions 26/41 Doc ID 022910 Rev 2 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 27: Connecting Modules On The Prototyping Board

    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.
  • Page 28: Table 8. Connecting Using Idc10

    Connecting modules on the prototyping board UM1525 Table 8. Connecting using IDC10 Mikroelektronica IDC10 connector STM32F0DISCOVERY GPIO GPIO OUTPUT (3.3V tolerant) GPIO GPIO OUTPUT (3.3V tolerant) GPIO GPIO OUTPUT (3.3V tolerant) GPIO GPIO OUTPUT (3.3V tolerant) GPIO GPIO OUTPUT (3.3V tolerant) GPIO GPIO OUTPUT (3.3V tolerant)
  • Page 29: Figure 10. Using Idc10 And Mikrobus™ Connectors

    UM1525 Connecting modules on the prototyping board Figure 10 illustrates the connections between the STM32F0 Discovery and the 2 connectors, IDC10 and mikroBUS™. Figure 10. Using IDC10 and mikroBUS™ connectors Doc ID 022910 Rev 2 29/41 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 30: 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.
  • Page 31: Figure 11. Dil24 Socket Connections

    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 Doc ID 022910 Rev 2 31/41 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 32: Table 10. Supported Mems Adapter Boards

    STEVAL-MKI123V1 LSM330D 10AXISMODULE [LSM303DLHC + L3GD20+ STEVAL-MKI124V1 LPS331AP] STEVAL-MKI125V1 A3G4250D Note: 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 Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 33: Arduino Shield Boards

    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 STM32F0DISCOVERY Reset Reset from Shield board NRST Reset discovery VCC 3.3V power line...
  • Page 34 Connecting modules on the prototyping board UM1525 Connecting with Arduino shields (continued) Arduino ICSP connector STM32F0DISCOVERY MISO SPI1_MISO VCC 3.3V SPI1_SCK MOSI SPI1_MOSI NRST Reset discovery Reference Ground 34/41 Doc ID 022910 Rev 2 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 35: Figure 12. Arduino Shield Board Connections

    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 Doc ID 022910 Rev 2 35/41 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 36: Mechanical Drawing

    Mechanical drawing UM1525 Mechanical drawing Figure 13. STM32F0DISCOVERY mechanical drawing 36/41 Doc ID 022910 Rev 2 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 37: Electrical Schematics

    UM1525 Electrical schematics Electrical schematics Figure 14. STM32F0DISCOVERY Doc ID 022910 Rev 2 37/41 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 38: Figure 15. St-Link/V2 (Swd Only)

    Electrical schematics UM1525 Figure 15. ST-LINK/V2 (SWD only) 38/41 Doc ID 022910 Rev 2 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 39: Figure 16. Mcu

    UM1525 Electrical schematics Figure 16. MCU Doc ID 022910 Rev 2 39/41 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 40: Table 12. Document Revision History

    Revision history UM1525 Revision history Table 12. Document revision history Date Revision Changes 20-Mar-2012 Initial release. Added Section 5: Connecting modules on the prototyping board on 30-May-2012 page 40/41 Doc ID 022910 Rev 2 Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com. Arrow.com.
  • Page 41 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.

Table of Contents