ST STM32F051R8T6 User Manual Download Page 1

May 2012

Doc ID 022910 Rev 2

1/41

UM1525

User manual

STM32F0DISCOVERY 

 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

Part number

Evaluation tools

STM32F0DISCOVERY

www.st.com

Summary of Contents for STM32F051R8T6

Page 1: ...iscover 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 Part number Evaluation tools STM32F0DISCOVERY www st com ...

Page 2: ...am 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 ...

Page 3: ...UM1525 Contents Doc ID 022910 Rev 2 3 41 8 Revision history 40 ...

Page 4: ...4 Debug connector CN3 SWD 16 Table 5 Solder bridge settings 19 Table 6 MCU pin description versus board function 20 Table 7 Connecting using mikroBUS 27 Table 8 Connecting using IDC10 28 Table 9 Connecting with a DIL24 board 30 Table 10 Supported MEMS adapter boards 32 Table 11 Connecting with Arduino shields 33 Table 12 Document revision history 40 ...

Page 5: ...e 6 STM32F051R8T6 block diagram 13 Figure 7 Typical configuration 14 Figure 8 STM32F0DISCOVERY connections image 15 Figure 9 ST LINK connections image 16 Figure 10 Using IDC10 and mikroBUS connectors 29 Figure 11 DIL24 socket connections 31 Figure 12 Arduino shield board connections 35 Figure 13 STM32F0DISCOVERY mechanical drawing 36 Figure 14 STM32F0DISCOVERY 37 Figure 15 ST LINK V2 SWD only 38 F...

Page 6: ... 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 ...

Page 7: ...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 ...

Page 8: ...ly 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 fo...

Page 9: ...controller 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 and Figure 4 help you to locate these features on the STM32F0DISCOVERY Figure 2 Hardware block diagram 3 6 53 2 INI 53 0 234 2 3 4 EADER EADER 37 MBEDDED 34 6 34 2 4 0 ...

Page 10: ...nector IDD measurement ST LINK V2 B1 user button B2 reset button LD1 red LED PWR CN2 ST LINK DISCOVERY selector green LED LD3 LD4 blue LED STM32F051R8T6 JP2 5V power supply input output 3V power supply input output SB1 VBAT SB3 B1 USER SB4 B2 RESET Note Pin 1 of CN2 CN3 P1 and P2 connectors are identified by a square ...

Page 11: ...d layout Doc ID 022910 Rev 2 11 41 Figure 4 Bottom layout SB6 SB8 SB10 SB12 MS30025V1 SB5 SB7 SB9 SB11 RESERVED DEFAULT SB20 SB21 X3 crystal SB14 SB15 RX TX SB19 NRST SB16 SB17 X2 crystal SB13 STM_RST SB22 T_SWO SB18 MCO ...

Page 12: ... 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 supp...

Page 13: ...CH 42 AS 0OWER 77 6 637 0 2 0 2 3500 9 6 6 6 6 4 6 TO 6 28 48 43 243 AS 28 48 43 243 AS 6 30 3 ONTROLLER 6 350 26 3 06 2ESET NT 6 0 0 2 4 0 2 24 2 3 4 42 0 BIT 6 54 AS 4 2 2 54 3ERIAL 7IRE EBUG 3 0 0 0 0 CHANNELS CH 42 AS CHANNEL AS 6 AS 2 3 Z 53 24 CHANNEL COMPL 2 AS CHANNEL COMPL 2 AS COMPL 2 AS CONTROLLER 32 2 4OUCH 3ENSING ONTROLLER 0 OMPARATOR 0 OMPARATOR 054 54054 393 GROUPS OF CHANNELS NALO...

Page 14: ...r 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 3 6 ARDWARE REQUIREMENTS 53 CABLE TYPE TO MINI COMPUTER WITH 7INDOWS 80 6ISTA OR EVELOPMENT TOOLCHAIN LTIUM 4 3 68 4OOLSET TOLLIC 4RUE345 2 7 2 EIL 2 Tab...

Page 15: ... 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 ...

Page 16: ...the 2 jumpers from CN2 as shown in Figure 9 and connect your application to the CN3 debug connector according to Table 4 Note SB19 and SB22 must be OFF if you use CN3 pin 5 in your external application Table 4 Debug connector CN3 SWD Pin CN3 Designation 1 VDD_TARGET VDD from application 2 SWCLK SWD clock 3 GND Ground 4 SWDIO SWD data input output 5 NRST RESET of target MCU 6 SWO Reserved Figure 9 ...

Page 17: ...r 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 ...

Page 18: ...ncies 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 4 7 2 OSC 32 KHz clock supply PC14 and PC15 can be used as GPIO or as LSE oscillator By default...

Page 19: ...B1 USER ON B1 push button is connected to PA0 OFF B1 push button is not connected to PA0 SB1 VBAT powered from VDD ON VBAT is permanently powered from VDD OFF VBAT is not powered from VDD but pin3 of P1 SB14 15 RX TX OFF Reserved do not modify ON Reserved do not modify SB19 NRST ON NRST signal of the CN3 connector is connected to the NRST pin of the STM32F051R8T6 MCU OFF NRST signal of the CN3 con...

Page 20: ...gical analyzer or voltmeter Table 6 MCU pin description versus board function page 1 of 7 MCU pin Board function Main function Alternate functions LQFP64 Push button LED SWD OSC Free I O Power supply CN3 P1 P2 BOOT0 BOOT0 60 6 NRST NRST 7 RESET NRST 5 10 PA0 2_CTS IN0 2_CH1_ETR 1_INM6 1_OUT TSC_G1_IO1 RTC_TAMP2 WKUP1 14 USER 15 PA1 2_RTS IN1 2_CH2 1_INP TSC_G1_IO2 EVENTOUT 15 16 PA2 2_TX IN2 2_CH3...

Page 21: ...1_MISO 1_MCK IN6 3_CH1 1_BKIN 16_CH1 1_OUT TSC_G2_IO3 EVENTOUT 22 23 PA7 1_MOSI 1_SD IN7 3_CH2 14_CH1 1_CH1N 17_CH1 2_OUT TSC_G2_IO4 EVENTOUT 23 24 PA8 1_CK 1_CH1 EVENTOUT MCO 41 25 PA9 1_TX 1_CH2 15_BKIN TSC_G4_IO1 42 24 Table 6 MCU pin description versus board function page 2 of 7 MCU pin Board function Main function Alternate functions LQFP64 Push button LED SWD OSC Free I O Power supply CN3 P1...

Page 22: ...X SWCLK 49 SWCLK 2 17 PA15 1_NSS 1_WS 2_RX 2_CH1_ETR EVENTOUT 50 16 PB0 IN8 3_CH3 1_CH2N TSC_G3_IO2 EVENTOUT 26 27 PB1 IN9 3_CH4 14_CH1 1_CH3N TSC_G3_IO3 27 28 PB2 or NPOR 1 8V mode TSC_G3_IO4 28 29 PB3 1_SCK 1_CK 2_CH2 TSC_G5_IO1 EVENTOUT 55 SWO 6 11 Table 6 MCU pin description versus board function page 3 of 7 MCU pin Board function Main function Alternate functions LQFP64 Push button LED SWD OS...

Page 23: ...5_IO4 59 7 PB8 1_SCL CEC 16_CH1 TSC_SYNC 61 4 PB9 1_SDA IR_EVENTOUT 17_CH1 EVENTOUT 62 3 PB10 2_SCL CEC 2_CH3 SYNC 29 30 PB11 2_SDA 2_CH4 G6_IO1 EVENTOUT 30 31 PB12 2_NSS 1_BKIN G6_IO2 EVENTOUT 33 32 PB13 2_SCK 1_CH1N G6_IO3 34 32 Table 6 MCU pin description versus board function page 4 of 7 MCU pin Board function Main function Alternate functions LQFP64 Push button LED SWD OSC Free I O Power supp...

Page 24: ...0 13 PC3 IN13 EVENTOUT 11 14 PC4 IN14 EVENTOUT 24 25 PC5 IN15 TSC_G3_IO1 25 26 PC6 3_CH1 37 29 PC7 3_CH2 38 28 PC8 3_CH3 39 BLUE 27 PC9 3_CH4 40 GREEN 26 PC10 51 15 PC11 52 14 PC12 53 13 PC13 RTC_TAMP1 RTC_TS RTC_OUT WKUP2 2 4 Table 6 MCU pin description versus board function page 5 of 7 MCU pin Board function Main function Alternate functions LQFP64 Push button LED SWD OSC Free I O Power supply C...

Page 25: ...OSC_ OUT OSC_OUT 6 OSC_OUT 8 PF4 EVENTOUT 18 19 PF5 EVENTOUT 19 20 PF6 2_SCL 47 19 PF7 2_SDA 48 18 VBAT VBAT 1 3 VDD_1 64 VDD_2 32 VDDA 13 VSS_1 63 VSS_2 31 VSSA 12 5V 1 3V 1 VDD 5 GND 2 2 GND GND 3 Table 6 MCU pin description versus board function page 6 of 7 MCU pin Board function Main function Alternate functions LQFP64 Push button LED SWD OSC Free I O Power supply CN3 P1 P2 ...

Page 26: ...25 26 41 Doc ID 022910 Rev 2 GND 9 GND 33 33 Table 6 MCU pin description versus board function page 7 of 7 MCU pin Board function Main function Alternate functions LQFP64 Push button LED SWD OSC Free I O Power supply CN3 P1 P2 ...

Page 27: ...alog Input PWM and Interrupt The set of mikroElektronika boards compatible with mikroBUS 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 mikroBUS and IDC boards to the STM32F0DISCOVERY this solution used in the different examples is available at www st com stm32f0discovery Tab...

Page 28: ... P2 GPIO PC2 GPIO OUTPUT 3 3V tolerant P3 GPIO PC3 GPIO OUTPUT 3 3V tolerant P4 GPIO PC4 GPIO OUTPUT 3 3V tolerant P5 GPIO PC5 GPIO OUTPUT 3 3V tolerant P6 GPIO PC6 GPIO OUTPUT 5V tolerant P7 GPIO PC7 GPIO OUTPUT 5V tolerant VCC VCC 5V power line 3V VDD GND Reference Ground GND VSS P0 GPIO PC0 GPIO OUTPUT 3 3V tolerant P1 GPIO PC1 GPIO OUTPUT 3 3V tolerant P2 GPIO PC2 GPIO OUTPUT 3 3V tolerant P3 ...

Page 29: ...g modules on the prototyping board Doc ID 022910 Rev 2 29 41 The Figure 10 illustrates the connections between the STM32F0 Discovery and the 2 connectors IDC10 and mikroBUS Figure 10 Using IDC10 and mikroBUS connectors ...

Page 30: ...IL24 board ST MEMS DIL24 Eval board STM32F0DISCOVERY P01 VDD Power supply 3V VDD P02 Vdd_IO Power supply for I O pins 3V VDD P03 NC P04 NC P05 NC P06 NC P07 NC P08 NC P09 NC P10 NC P11 NC P12 NC P13 GND 0V supply GND GND P14 INT1 Inertial interrupt 1 PB12 GPIO INPUT EXTI 5V tolerant P15 INT2 inertial interrupt 2 PB11 GPIO INPUT EXTI 5V tolerant P16 NC P17 NC P18 NC P19 CS 0 SPI enabled 1 I2C mode ...

Page 31: ...UM1525 Connecting modules on the prototyping board Doc ID 022910 Rev 2 31 41 Figure 11 illustrates the connections between the STM32F0 Discovery and the DIL24 socket Figure 11 DIL24 socket connections ...

Page 32: ...S331DLM STEVAL MKI092V1 LIS331HH STEVAL MKI095V1 LPR4150AL STEVAL MKI096V1 LPR450AL STEVAL MKI097V1 LPR430AL STEVAL MKI098V1 LPR410AL STEVAL MKI099V1 LPR403AL STEVAL MKI105V1 LIS3DH STEVAL MKI106V1 LSM303DLHC STEVAL MKI107V1 L3G4200D STEVAL MKI107V2 L3GD20 STEVAL MKI108V1 9AXISMODULE v1 LSM303DLHC L3G4200D STEVAL MKI108V2 9AXISMODULE v2 LSM303DLHC L3GD20 STEVAL MKI110V1 AIS328DQ STEVAL MKI113V1 LS...

Page 33: ...N10 A1 Analog input or Digital pin 15 PC1 ADC_IN11 A2 Analog input or Digital pin 16 PC2 ADC_IN12 A3 Analog input or Digital pin 17 PC3 ADC_IN13 A4 Analog input or SDA or Digital pin 18 PC4 or PF7 ADC_IN14 or I2C2_SDA A5 Analog input or SCL or Digital pin 19 PC5 or PF6 ADC_IN15 or I2C2_SCL Arduino digital connector STM32F0DISCOVERY D0 Digital pin 0 or RX PA3 USART2_RX D1 Digital pin 1 or TX PA2 US...

Page 34: ...M1525 34 41 Doc ID 022910 Rev 2 Arduino ICSP connector STM32F0DISCOVERY 1 MISO PB4 SPI1_MISO 2 VCC 3 3V 3V VDD 3 SCK PB3 SPI1_SCK 4 MOSI PB5 SPI1_MOSI 5 RST NRST Reset discovery 6 GND GND Reference Ground Connecting with Arduino shields continued ...

Page 35: ...onnecting modules on the prototyping board Doc ID 022910 Rev 2 35 41 Figure 12 illustrates the connections between the STM32F0 Discovery and the Arduino shield boards Figure 12 Arduino shield board connections ...

Page 36: ...Mechanical drawing UM1525 36 41 Doc ID 022910 Rev 2 6 Mechanical drawing Figure 13 STM32F0DISCOVERY mechanical drawing ...

Page 37: ... PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 PF0 BOOT0 NRST PD2 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 PA4 PA5 PA0 PA3 PA2 PA1 PB14 PB15 PB2 PB12 PB13 PC0 PC1 PC2 PC...

Page 38: ...12 PA15 JTDI 38 PA3 13 VSS_1 23 PA4 14 PB3 JTDO 39 PA5 15 VDD_1 24 PA6 16 PB4 JNTRST 40 PB12 25 PB5 41 PB13 26 PB6 42 PB14 27 PB7 43 PB15 28 BOOT0 44 PA8 29 PB8 45 PA9 30 PB9 46 PA10 31 VSS_3 47 PA11 32 VDD_3 48 U2 STM32F103C8T6 Board Ident PC13 0 T_JTCK T_JTMS SWD 3V 1 2 3 4 CN2 SB6 SB5 SB8 SB7 SB10 SB9 SB12 SB11 STM_JTMS STM_JTCK SWCLK SWDIO SWD RESERVED DEFAULT 3V T_SWDIO_IN T_SWO LED_STLINK LE...

Page 39: ... PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 PF0 PF1 PF4 PF5 PF6 PF7 PD2 C15 6 8pF C16 6 8pF R24 0 R25 0 C13 20pF C14 20pF R22 390 VDD R27 10K VDD NRST BOOT0 1 2 X2 8MHz 4 1 3 2 X3 MC306 G 06Q 32 768 JFVNY R26 510 SB2 BOOT0 PA14 PA15 PC10 PC1...

Page 40: ...1525 40 41 Doc ID 022910 Rev 2 8 Revision history 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 ...

Page 41: ...ARRANTIES 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 APPLICA...

Reviews: