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...
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.
Features UM1525 Features 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 ●...
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.
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.
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...
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.
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: –...
P1. (X3 crystal) 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-RESET) B2 push button is not connected the NRST pin of the STM32F051R8T6 MCU.
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.
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...
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. Mikroelektronica accessory boards Mikroelektronika, http://www.mikroe.com, has specified two standard connectors for their accessory boards, named mikroBUS™ (http://www.mikroe.com/mikrobus_specs.pdf) and IDC10.
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...
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...
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...
STEVAL-MKI120V1 LPS331AP STEVAL-MKI122V1 LSM330DLC 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...
UM1525 Connecting modules on the prototyping board Arduino shield boards Arduino™ 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.
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...
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...
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...
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 STM32F051R8T6 and is the answer not in the manual?
Questions and answers