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.
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...
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.
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 ●...
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.
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.
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...
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, ●...
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.
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...
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.
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.
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.
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.
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.
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.
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.
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.
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...
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.
Need help?
Do you have a question about the STM32F0DISCOVERY and is the answer not in the manual?
Questions and answers