UM1690 User manual Discovery kit for STM32 F0 series with STM32F072RB MCU Introduction The STM32F072 discovery kit (32F072BDISCOVERY) helps you to discover the full features of the STM32F0 series and to develop your applications. It is based on an STM32F072RBT6 and includes an ST-LINK/V2 embedded debug tool interface, ST MEMS Gyroscope, LEDs, pushbuttons, linear touch sensor, touch keys, RF EEprom connector and a USB mini-B connector. Figure 1. STM32F072 discovery board June 2014 DocID025474 Rev 2 1/31 www.st.com Contents UM1690 Contents 1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 Ordering and product information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4 Hardware layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.1 Embedded ST-LINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 4.1.1 Using ST-LINK/V2 to program/debug the STM32F072 on board . . . . . 11 4.1.2 Using ST-LINK/V2 to program/debug an external STM32 application . . 12 4.2 Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.4 Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.5 Linear touch sensor / touch keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.6 USB device support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.7 BOOT0 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.8 Embedded USB Bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.9 Gyroscope MEMS (ST MEMS L3GD20) . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.10 JP2 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.11 Extension and RF EEprom connector . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.12 OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.12.1 OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.12.2 OSC 32 KHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.13 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.14 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5 Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 6 Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 2/31 DocID025474 Rev 2 UM1690 List of tables List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Debug connector CN2 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Extension and RF EEprom connector (CN3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 MCU pin description versus board function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 DocID025474 Rev 2 3/31 3 List of figures UM1690 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. 4/31 STM32F072 discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 STM32F072 discovery board connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 ST-Link connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Extension and RF EEprom connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 STM32F072 discovery board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 STM32F072 discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 ST-LINK/V2 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 STM32F072RBT6 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 MEMS and USB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Linear sensor and pushbutton . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 DocID025474 Rev 2 UM1690 1 Conventions Conventions Table 1 provides the definition of some conventions used in the present document. Table 1. ON/OFF conventions Convention Definition Jumper JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Solder bridge SBx ON SBx connections closed by solder Solder bridge SBx OFF SBx connections left open DocID025474 Rev 2 5/31 30 Ordering and product information 2 UM1690 Ordering and product information The STM32F072 discovery is a low-cost and easy-to-use development kit to quickly evaluate and start a development with an STM32F0 series microcontroller. Before installing and using the product, please accept the Evaluation Product License Agreement from www.st.com/stm32f0-discovery. For more information on the STM32F072 discovery board and for demonstration software, visit www.st.com/stm32f0-discovery. To order the discovery kit for the STM32 F0 series, use the order code: STM32F072BDISCO. 6/31 DocID025474 Rev 2 UM1690 3 Features Features The STM32F072 discovery board offers the following features: • STM32F072RBT6 microcontroller featuring 128 KB of Flash memory, 16 KB of SRAM in an LQFP64 package • On-board ST-LINK/V2 with selection mode switch to use the kit as a standalone STLINK/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 • L3GD20, ST MEMS motion sensor, 3-axis digital output gyroscope • One linear touch sensor or four touch keys • Six LEDs: – LD1 (red/green) for USB communication – LD2 (red) for 3.3 V power on – Four user LEDs: LD3 (orange), LD4 (green), LD5 (red) and LD6 (blue) • Two pushbuttons (user and reset) • USB USER with Mini-B connector • RF EEprom daughter board connector • Extension header for LQFP64 I/Os for a quick connection to the prototyping board and easy probing DocID025474 Rev 2 7/31 30 Hardware layout 4 UM1690 Hardware layout The STM32F072 discovery board has been designed around the STM32F072RBT6 microcontroller in a 64-pin LQFP package. Figure 2 illustrates the connections between the STM32F072RBT6 and its peripherals (STLINK/V2, ST MEMS gyroscope L3GD20, LEDs, pushbuttons, linear touch sensor, touch keys, RF EEprom connector and a USB mini-B connector). Figure 3 and Figure 4 help you to locate these features on the STM32F072 discovery board. Figure 2. Hardware block diagram DŝŶŝͲh^ ^t ŵďĞĚĚĞĚ ^dͲ>/E<ͬsϮ ^dDϯϮ&ϬϳϮZdϲ /ͬK /ͬK >Ɛ >ϯƚŽ>ϲ ,ĞĂĚĞƌ ,ĞĂĚĞƌ /ͬK Z^d Ϯ Z^d ϭ h^Z >ϯ'ϮϬ >ŝŶĞĂƌdŽƵĐŚ ^ĞŶƐŽƌ DŝŶŝͲh^ ydͬZ&ͲW D^ϯϯϮϲϳsϭ 8/31 DocID025474 Rev 2 UM1690 Hardware layout Figure 3. Top layout 34,).+6 86%67/,1. ,$ 86%86(5 ,$ 072 #/#.EXTENSIONOR 2&%%PROMCONNECTOR 6POWER SUPPLYINPUTOUTPUT 6POWER SUPPLYINPUTOUTPUT #. 34,).+$)3#/6%29 SELECTOR #. 37$CONNECTOR ,$/RANGE,%$ ,$ 'REEN,%$ *0 )$$MEASUREMENT ,$2ED,%$ ,$"LUE,%$ 34-&2"4 " RESETBUTTON " USERBUTTON ,INEARTOUCHSENSOR TOUCHKEYS -36 DocID025474 Rev 2 9/31 30 Hardware layout UM1690 Figure 4. Bottom layout 3FRQQHFWRU 3FRQQHFWRU 6% 5HVHUYHG 6% 'HIDXOW 6%670B567 6%1567 5;7;6% -3 6%9%$7 9'',26% 86%86(56% 6%;&U\VWDO 6%;&U\VWDO 0&26% %5(6(76% 6%%86(5 6%*1'9'' 6%9''$ 6%7RXFKVHQVRU 069 10/31 DocID025474 Rev 2 UM1690 4.1 Hardware layout Embedded ST-LINK/V2 The ST-LINK/V2 programming and debugging tool is integrated on the STM32F072 discovery board. The embedded ST-LINK/V2 can be used in 2 different ways according to the jumper states (see Table 2): • Program/debug the MCU on board, • Program/debug an MCU in an external application board using a cable connected to SWD connector CN4. 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. Table 2. Jumper states 4.1.1 Jumper state Description Both CN5 jumpers ON ST-LINK/V2 functions enabled for on board programming (default) Both CN5 jumpers OFF ST-LINK/V2 functions enabled for application through external CN4 connector (SWD supported) Using ST-LINK/V2 to program/debug the STM32F072 on board To program the STM32F072 on board, simply plug in the two jumpers on CN5, as shown in Figure 5 in red, but do not use the CN4 connector as that could disturb communication with the STM32F072RBT6 of the STM32F072 discovery board. Figure 5. STM32F072 discovery board connections DocID025474 Rev 2 11/31 30 Hardware layout 4.1.2 UM1690 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 CN5 as shown in Figure 6, and connect your application to the CN4 debug connector according to Table 3. Note: SB10 must be OFF if you use CN4 pin 5 in your external application. Table 3. Debug connector CN2 (SWD) Pin CN2 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 6. ST-Link connections 12/31 DocID025474 Rev 2 UM1690 4.2 Hardware layout Power supply and power selection The power supply is provided either by the host PC through the USB ST-LINK or USB USER connector, or by an external 5 V power supply. The D1 and D2 diodes protect the 5 V and 3 V pins from external power supplies: 4.3 4.4 • 5 V and 3 V can be used as output power supplies when another application board is connected to pins P1 and P2. In this case, the 5 V and 3 V pins deliver a 5 V or 3 V power supply and the power consumption must be lower than 100 mA. • 5 V can also be used as input power supplies, e.g. when the USB connector is not connected to the PC. In this case, the STM32F072 discovery board must be powered by a power supply unit or by an auxiliary equipment complying with standard EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with limited power capability. LEDs • LD1 COM: LD1 default status is red. LD1 turns to green to indicate that communications are in progress between the PC and the ST-LINK/V2. • LD2 PWR: This red LED indicates that the board is powered. • User LD3: This orange user LED is connected to the I/O PC8 of the STM32F072RBT6. • User LD4: This green user LED is connected to the I/O PC9 of the STM32F072RBT6. • User LD5: This red user LED is connected to the I/O PC6 of the STM32F072RBT6. • User LD6: This blue user LED is connected to the I/O PC7 of the STM32F072RBT6. Pushbuttons B1 USER: User and Wake-Up button connected to the I/O PA0 of the STM32F072RBT6. B2 RESET: The pushbutton connected to NRST is used to RESET the STM32F072RBT6. DocID025474 Rev 2 13/31 30 Hardware layout 4.5 UM1690 Linear touch sensor / touch keys To demonstrate touch sensing capabilities, the STM32F072 discovery includes a linear touch sensor which can be used either as a 3-position linear touch sensor or as 4 touch keys. Both functions are illustrated in the demonstration software. 3 pairs of I/O ports are assigned to the linear touch sensor / touch keys. Each pair must belong to the same analog switch group: • PA2, PA3 (group 1) • PA6, PA7 (group 2) • PB0, PB1 (group 3) To minimize the noise, these pairs are dedicated to the linear touch sensor and the touch keys and are not connected to external headers. To design a touch sensing application, refer to the following documentation and firmware: 4.6 • For details concerning I/O ports, refer to the STM32F072RBT6 datasheet. • For information on software development, see DISCOVER application software on www.st.com/stm32f0-discovery. • For more detail concerning touch sensing application design and layout, refer to AN2869 -Guidelines for designing touch sensing applications. • STM32 touch sensing library available from www.st.com/stm32f0-discovery. USB device support The STM32F072RBT6 MCU is also used to drive the second USB mini-B connector (USB USER) which allows the board to be used as a USB Device. The STM32F072 discovery can then act as a USB joystick, mouse, or other similar device. If both USBs are connected, diodes D1 and D2 protect the board and use the power from the USB ST-LINK. The board can be powered through this USB USER connector, in which case LED2 PWR lights up, LED1 COM blinks and it can run an application in standalone mode. The STM32F072RBT6 MCU controls the USB USER through PA11 and PA12. 4.7 BOOT0 configuration BOOT0 is at level “0” through a pull-down R33. If you want to set BOOT0 at level “1”, it can be configured by setting a jumper between P2.6 (BOOT0) and P2.5 (VDD). This facility is offered for fast and instantaneous configuration. Note: If you need to set BOOT0 at level "1" continuously, then unsolder the resistor R33 to avoid a consumption of 6 mA while connecting pin P2.6 (BOOT0) and P2.5 (VDD) with a jumper or with a wire. 4.8 Embedded USB Bootloader The STM32F072 line embeds a bootloader allowing to program blanked device or to upgrade the device firmware over the USB without the need of a specific programmer. When using this discovery kit, the STM32F072RBT6 MCU firmware can be thus programmed through the second USB mini-B connector (USER USB). 14/31 DocID025474 Rev 2 UM1690 Hardware layout To program the microcontroller FLASH using this approach, a jumper must be set between BOOT0 (P2.6) and VDD (P2.5), and a cable connected between the USER USB connector of the board and a PC. On the PC side, it is required to use the Device Firmware Upgrade Utility named "DfuSe". This software (STSW-STM32080) and its associated user manual (UM0412) are available from www.st.com. Several application notes are also available on that topic. • AN2606: STM32™ Microcontroller system memory boot mode • AN3156: USB DFU protocol used in the STM32™ bootloader Note: ST-LINK utilities must not be used when DFU Utility is running. 4.9 Gyroscope MEMS (ST MEMS L3GD20) The L3GD20 is an ultra-compact, low-power, three-axis angular rate sensor. It includes a sensing element and an IC interface able to provide the measured angular rate to the external world through the I2C/SPI serial interface. The L3GD20 has dynamically user-selectable full scales of ± 250 dps/ 500 dps/ ±2000 dps and is capable of measuring rates. The STM32F072RBT6 MCU controls this motion sensor through the SPI interface. 4.10 JP2 (Idd) Jumper JP2, labeled Idd, allows the consumption of STM32F072RBT6 to be measured by removing the jumper and connecting an ammeter. 4.11 • Jumper on: STM32F072RBT6 is powered (default). • Jumper off: an ammeter must be connected to measure the STM32F072RBT6 current, (if there is no ammeter, the STM32F072RBT6 is not powered). Extension and RF EEprom connector This connector is able to accept an Extension board or the RF EEprom board ANT7M24LR-A (see AN2972 for more details). Figure 7. Extension and RF EEprom connector DocID025474 Rev 2 15/31 30 Hardware layout UM1690 Table 4. Extension and RF EEprom connector (CN3) 16/31 Pin CN3 Designation 1 I2C SDA Data signal for I2C 2 NC Not Connected 3 I2C SCL Clock signal for I2C 4 EXT_RESET RESET signal for Extension board 5 3V 3 Volts power supply 6 NC Not Connected 7 GND Ground 8 5V 5 Volts power supply DocID025474 Rev 2 UM1690 4.12 Hardware layout OSC clock By default, the STM32F072RBT6 clock source is the High-speed internal (HSI) RC oscillator. Other clock sources are described hereunder. 4.12.1 OSC clock supply If PF0 and PF1 are only used as GPIOs instead of as a clock, then SB17 and SB18 are CLOSED and R36 and R37 are removed (SB19 must be OPEN). • • • 4.12.2 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 STM32F072RBT6. The required configuration is: – SB19 CLOSED and SB17 OPEN – R36 removed Oscillator onboard (from X3 crystal, not provided). For typical frequencies and its capacitors and resistors, please refer to the STM32F072RBT6 Datasheet. The required configuration is: – SB17, SB18, SB19 OPEN – X3, R36, R37, C22, C23 soldered Oscillator from external PF0 (from external oscillator through pin 7 of the P1 connector). The required configuration is: – SB17 CLOSED – SB19 OPEN – R36 removed OSC 32 KHz clock supply If PC14 and PC15 are only used as GPIOs instead of as a clock, then SB13 and SB14 are CLOSED, and R34 and R35 are removed. • • Oscillator onboard (from X2 Crystal, not provided). The required configuration is: – SB13, SB14 OPEN – X2, C19, C20, R21, R34, R35 soldered Oscillator from external PC14 (from external oscillator trough the pin 5 of P1 connector). The required configuration is: – SB14 CLOSED – R35 removed DocID025474 Rev 2 17/31 30 Hardware layout 4.13 UM1690 Solder bridges Table 5. Solder bridges Bridge State Description ON PF0, PF1 are connected to P1 (R36, R37 must not be fitted and SB19 must be OFF). OFF X3, C22, C23, R36 and R37 provide a clock. PF0, PF1 are disconnected from P1. ON PC14, PC15 are only connected to P1. Remove only R34, R35 OFF X2, C19, C20, R34 and R35 deliver a 32 KHz clock. PC14, PC15 are not connected to P1. OFF MCO signal of STM32F103C8T6 is not used. ON MCO clock signal from STM32F103C8T6 is connected to OSC_IN of STM32F072RBT6. (SB17 must be OFF). SB2,4,7,9 (Default) ON Reserved, do not modify. SB1,3,6,8 (Reserved) OFF Reserved, do not modify. SB24,25 (GND,VDD) ON Reserved, do not modify. SB11,12 (RX,TX) OFF Reserved, do not modify OFF Reserved to the linear touch sensor. PA2,3,6,7 and PB0,1 are not available. ON PA2,3,6,7 and PB0,1 are available then remove R38,39,40 and C26,27,28. (the linear touch sensor is not available) OFF Reserved to the USB USER CN2. PA11,12 are not available. ON PA11,12 are available then remove R12,13. (the USB USER CN2) ON B1 pushbutton is connected to PA0. OFF B1 pushbutton is not connected to PA0. ON B2 pushbutton is connected to the NRST pin of the STM32F072RBT6 MCU. OFF B2 pushbutton is not connected the NRST pin of the STM32F072RBT6 MCU. ON T_NRST pin of the STM32F103C8T6 (ST-LINK/V2) and CN4.5 are connected to the NRST pin of the STM32F072RBT6 MCU. OFF T_NRST pin of the STM32F103C8T6 (ST-LINK/V2) and CN4.5 are not connected to the NRST pin of the STM32F072RBT6 MCU. OFF No incidence on STM32F103C8T6 (ST-LINK/V2) NRST signal. ON STM32F103C8T6 (ST-LINK/V2) NRST signal is connected to GND. ON VBAT Power is supplied by VDD OFF VBAT Power is supplied by P1.3 connector ON VDDIO2 Power is supplied by VDD OFF VDDIO2 Power is supplied by P2.18 connector ON VDDA Power is supplied by VDD through L1 inductance. OFF VDDA Power is supplied by P2.19 connector SB17,18 (X3 crystal) SB13,14 (X2 crystal) SB19 (MCO) SB27,28,29,30,31,32 (touch sensor) SB20,23 (USB-USER) SB21 (B1-USER) SB22 (B2-RESET) SB10 (NRST) SB5 (STM_RST) SB15 (VBAT) SB16 (VDDIO2) SB26 (VDDA) 18/31 DocID025474 Rev 2 UM1690 Extension connectors The male headers P1 and P2 can connect the STM32F072 discovery board to a standard prototyping/wrapping board. STM32F072RBT6 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 DocID025474 Rev 2 SBx(1) - - 21 22 - - 23 - SB29 24 - SB30 - 25 - 24 - - - - SB28 - SB27 - - - 18 - - P2 - 17 - - 16 - 15 - 10 - P1 - CN4 - 6 - 5 - CN3 - Power supply - Free I/O PA9 PA8 - - PA5 PA4 - - PA1 - USB USER - LED - Pushbutton USER RESET - EXT/ RF-E2P - L3GD20 - 42 - PA9 Linear touch sensor 41 - PA8 - 23 - PA7 - 22 TS_G1_IO4 TS_G1_IO3 PA6 - 21 - PA5 TS_G2_IO4 TS_G2_IO3 20 - PA4 - 17 BOOT0 System PA3 NRST 16 - PA2 - 15 - PA1 - 14 - PA0 - 7 - NRST - 60 - BOOT0 Board function - LQFP64 pin num. MCU pin Main function 4.14 Hardware layout 19/31 30 20/31 PB2 28 PB3 55 PB4 56 PB5 57 PB6 58 PB7 59 PB8 61 PB9 62 PB10 29 DocID025474 Rev 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 30 - 3 - 4 - - - - - SBx(1) - 29 - P2 28 - 27 SB31 - 16 - 7 - P1 - - CN4 CN3 Power supply - - - - PA10 Free I/O - - - - - USB USER LED Pushbutton EXT/ RF-E2P L3GD20 Linear touch sensor - - - - - - - - - - - - - - - - - - - - - DP DM - - - - - 17 - - - - PA15 - - - - - - 20 - - - - - - - - - - - - - - 21 - - - - - - - - - - 2 22 - - - - - - - - - TS_G3_IO3 TS_G3_IO2 4 23 - - - - - - - - - - - - - - - - - - 8 - - - - 9 - - - - 10 - 3 11 - - - PB9 PB8 PB7 PB6 PB5 PB4 PB3 PB2 - - - - - - MCU pin - - - - SCL - - - - - System 27 - PB1 - 26 - PB0 SWCLK SWDIO 50 - PA15 - 49 - PA14 - 46 - PA13 - 45 - PA12 - 44 - PA11 - 43 - LQFP64 pin num. PA10 - Main function Hardware layout UM1690 Table 6. MCU pin description versus board function (continued) Board function SB23 SB20 SB32 PC3 11 PC4 24 PC5 25 PC6 37 PC7 38 PC8 39 PC9 40 PC10 51 DocID025474 Rev 2 - PC10 - - - - - - - - 27 26 15 - - - - - - - - - - - - 26 - 25 - 14 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 13 - - - - - - - - 12 - - 11 - - 30 - - - - 31 - - - - 32 - - PC4 PC3 - - - INT2 INT1 CS_I2C/ SDA/ SDO SCL/ SPI SDI/ SPC - - - - SBx(1) P2 P1 - CN4 - CN3 Power supply Free I/O USB USER LED Pushbutton - - - - PB12 - - - - L3GD20 Linear touch sensor SDA EXT/ RF-E2P - - - - - - - - 32 - - - - - - - - - 31 - - - - - - 28 - - - - - - 29 - - - - - - 4 - - - - - - - - EXT_RESET - - - - - 1 - - - - - - - - - GREEN ORANGE BLUE RED - - - - MCU pin - - - - - - System 10 - PC2 - 9 - PC1 - 8 - PC0 - 36 - PB15 - 35 - PB14 - 34 - PB13 - 33 - PB12 - 30 - LQFP64 pin num. PB11 - Main function UM1690 Hardware layout Table 6. MCU pin description versus board function (continued) Board function 21/31 30 22/31 DocID025474 Rev 2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7 2 2 - 9 - - - - - - - - - 5 SB14 6 SB13 12 - - - - - - - - - 13 - - - - - - - - - - - - - USB USER LED Pushbutton EXT/ RF-E2P L3GD20 Linear touch sensor SBx(1) P2 P1 CN4 CN3 Power supply PC13 PC12 PC11 Free I/O - - - - - - - - - - - - - - - - 4 - - - - PD2 - - - - - - - - - - - - - 14 - 1 - 3 - 1 - 5 - 20 - 18 7 8 - SB26 - - - - - - - - - - 19 - - - - - - - - - - SB15 - - - - - - - - - - SB18 - 5 SB17 - 8 - - GND GND 3V 5V VDD VDD VDD VDD - - - - - - - MCU pin - - - - - VDDIO2 48 - 13 - VDDA - 1 - VBAT - 6 - PF1 System 5 - PF0 - 54 - PD2 OSC32_OUT OSC32_IN 4 - PC15 OSC_OUT OSC_IN 3 - PC14 - LQFP64 pin num. 2 - Main function PC13 - - 53 - - - PC12 - - 52 - - - PC11 - - - Hardware layout UM1690 Table 6. MCU pin description versus board function (continued) Board function 3 SB16 UM1690 Hardware layout Table 6. MCU pin description versus board function (continued) SBx(1) - 33 - P1 33 P2 CN4 - 19 - CN3 - GND GND Power supply Free I/O - USB USER - LED - Pushbutton - EXT/ RF-E2P - L3GD20 - Linear touch sensor - - System Board function - LQFP64 pin num. - - - Main function MCU pin 1. Depending on SBx, connected to STM32F072RBT6 MCU pin or board function. (See Schematics for more detail) DocID025474 Rev 2 23/31 30 Mechanical drawing 5 UM1690 Mechanical drawing Figure 8. STM32F072 discovery board mechanical drawing 24/31 DocID025474 Rev 2 DocID025474 Rev 2 D C B A 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 1 Header 33 P1 B_USER NRST STM32F0_USART1_RX STM32F0_USART1_TX PA10 PA9 NRST PC13 PC14 PC15 PF0 PF1 GND NRST PC0 PC1 PC2 PC3 PA0 PA1 PA2 PA3 VSS3 VDD3 PA4 PA5 PA6 PA7 PC4 PC5 PB0 PB1 PB2 PB10 PB11 PB12 GND GND TS_G3_IO2 TS_G3_IO3 TS_G2_IO3 TS_G2_IO4 TS_G1_IO3 TS_G1_IO4 GND VDD VBAT 3V B_USER NRST U_SENSOR_PB SENSOR_PB.SchDoc PA10 PA9 MCO PA14 PA13 U_ST_LINK ST_LINK_V2.SCHDOC T_NRST TCK/SWCLK TMS/SWDIO TS_G3_IO2 TS_G3_IO3 TS_G2_IO3 TS_G2_IO4 TS_G1_IO3 TS_G1_IO4 NRST MCO PA14 PA13 2 2 NRST BOOT0 VSS3 VDD3 PF0 PF1 PD2 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 NRST BOOT0 VSS3 VDD3 PF0 PF1 PD2 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 EXT_RESET I2C2_SDA I2C2_SCL LD_U LD_D LD_L LD_R PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 MCO B_USER TS_G1_IO3 TS_G1_IO4 TS_G2_IO3 TS_G2_IO4 TS_G3_IO2 TS_G3_IO3 USBF4_DM USBF4_DP SPI2_SCK SPI2_MISO SPI2_MOSI NCS_MEMS_SPI MEMS_INT1 MEMS_INT2 U_STM32Fx STM32Fx.SchDoc MCO B_USER TS_G1_IO3 TS_G1_IO4 TS_G2_IO3 TS_G2_IO4 TS_G3_IO2 TS_G3_IO3 USBF4_DM USBF4_DP SPI2_SCK SPI2_MISO SPI2_MOSI NCS_MEMS_SPI MEMS_INT1 MEMS_INT2 EXT_RESET I2C2_SDA I2C2_SCL LD_U LD_D LD_L LD_R PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 3 3 PA13 PA12 PA11 PA10 PA9 PA8 PC9 PC8 PC7 PC6 PB15 PB14 PB13 GND PB9 PB8 VDD BOOT0 PB7 PB6 PB5 PB4 PB3 PD2 PC12 PC11 PC10 PA15 PA14 VDDIO2 Header 33 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 P2 SPI2_SCK SPI2_MISO SPI2_MOSI NCS_MEMS_SPI MEMS_INT1 EXT_RESET MEMS_INT2 I2C2_SDA I2C2_SCL USBF4_DM USBF4_DP LD_U LD_D LD_L LD_R USBF4_DM USBF4_DP SPI2_SCK SPI2_MISO SPI2_MOSI NCS_MEMS_SPI MEMS_INT1 MEMS_INT2 STM32F072B-DISCO Number:MB1076 Rev: C.1(PCB.SCH) Title: 4 Date: 10/28/2013 STMicroelectronics Sheet 1 of 5 Rev A.0 --> PCB label MB1076 A-00 Rev B.1 --> PCB label MB1076 B-01, Silkscreen modification and values of R29,30,31,32. Rev C.1 --> PCB label MB1076 C-01, Replace STM32F052 by STM32F072 on Silkscreen VDD_USB VDDA VDD 5V EXT_RESET I2C2_SDA I2C2_SCL LD_U LD_D LD_L LD_R U_MEMS_USB MEMS_USB.SchDoc 4 D C B A 6 1 UM1690 Electrical schematics Electrical schematics Figure 9. STM32F072 discovery board 25/31 30 D C B A C11 100nF 3V 1 2 1 2 3 4 5 6 U5V 1 USB-MINI-typeB VCC DD+ ID GND SHELL CN1 SB12 R8 R10 R9 R7 USB ST-LINK Close to JP Not Fitted STM32F0_USART1_TX PA9 PA10 SB11 TX RX 4K7 R27 VBAT PC13 PC14 PC15 OSCIN OSCOUT NRST VSSA VDDA PA0 PA1 PA2 9013-SOT23 Not Fitted STLINK_RX 1 2 3 4 5 6 7 8 9 10 11 12 3V 1K5 0 USB_DM 0 USB_DP 100K JP1 AIN_1 OSC_IN OSC_OUT STM_RST 4K7 C9 20pF [NA] R26 8MHz X1 R23 STM32F0_USART1_RX SB5 R25 100K 3V C10 20pF Board Ident: PC13=0 100K R19 SWIM_IN SWIM 10K 3V T1 1 R17 36K R16 10K U5V T_JRST R22 SWIM_IN SWIM_RST SWIM_RST_IN T_JTCK T_JTDO T_JTDI T_NRST 3 SWIM_IN SWIM STLINK_TX STM_JTCK 48 47 46 45 44 43 42 41 40 39 38 37 2 2 3V VDD_2 VSS_2 JTMS/SWDIO PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 VDD_3 VSS_3 PB9 PB8 BOOT0 PB7 PB6 PB5 PB4/JNTRST PB3/JTDO PA15/JTDI JTCK/SWCLK PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2/BOOT1 PB10 PB11 VSS_1 VDD_1 13 14 15 16 17 18 19 20 21 22 23 24 2 36 35 34 33 32 31 30 29 28 27 26 25 Idd 3V JP2 LD2 LED, red 1K R3 3V T_SWDIO_IN T_JTMS T_JTCK STM_JTMS USB_DP USB_DM T_SWO LED_STLINK 3V U2 STM32F103C8T6 10K R15 22 22 R24 R28 22 22 R21 R20 BAT60JFILM D4 T_SWO T_NRST T_JTMS T_JTCK [NA] AIN_1 MCO C5 100nF Not Fitted C8 100nF MCO U5V 3 BAT60JFILM D1 EXT_5V, Input or Output C7 100nF C32 20pF 5V 5V 1 Vin U1 COM 5 100 R5 100 R6 SWDIO SWCLK 3V PA14 PA13 NRST 4 R4 1 0 D3 LD_BICOLOR_CMS _Green Red LD1 C2 100nF Date: 10/22/2013 4 SWD Sheet 2 of 5 EXT_3V, Input or Output 3V 3V STM32F072B-DISCO ST-LINK/V2 (SWD only) Number:MB1076 Rev: C.1(PCB.SCH) Title: STM_JTMS STM_JTCK BAT60JFILM C6 1μF_X5R_0603 3 2 C1 10nF_X7R_0603 BYPASS Vout LD3985M33R PWR CN5 SB8 SB6 SB3 SB1 SB10 4 Jumpers ON --> DISCOVERY Selected Jumpers OFF --> ST-LINK Selected SB9 SB7 SB4 SB2 T_NRST STMicroelectronics C3 100nF TCK/SWCLK TMS/SWDIO DEFAULT LED_STLINK 3 INH C4 GND 1μF_X5R_0603 RC Must be very close to STM32F103 pin 29 C12 100nF VDD 100 R14 R44 100 1 2 3 4 5 6 Header 6 CN4 SWD R18 3 2 DocID025474 Rev 2 4 RESERVED 26/31 1 2 3 4 1 D C B A Electrical schematics UM1690 Figure 10. ST-LINK/V2 (SWD only) DocID025474 Rev 2 D C B PC15 PC14 PF1 PF0 MCO SB19 PC14-OSC32_IN PF1-OSC_OUT PF0-OSC_IN R34 R35 0 0 R37 R36 Not Fitted 1 SB26 C18 100nF fcm1608-0603 L1 C29 100nF VDD SB15 C25 1uF VDDA C23 20pF C22 20pF C17 100nF C24 100nF SB16 VDDIO2 C16 1uF C21 100nF 2 STM32F072RBT6 VBAT VDDA VDD_2 VDD_4 VSSA VSS_2 VSS_4 47 12 31 63 PB0 PB1 PA11 PA12 PA6 PA7 PA2 PA3 PB0 PB1 SB31 SB23 SB29 PA6 PA7 PA11 PA12 SB27 PA2 PA3 SB32 SB20 SB30 SB28 SBx Must be very close to the STM32F072 2 VDD_USB VSS_USB U4B VBAT 1 13 32 64 48 VDD_USB 6.8pF 6.8pF X2 MC306-G-06Q-32.768 C19 C20 X3 8MHz Not Fitted 220 0 All this block must be very close to the STM32F072 SB13 PC15-OSC32_OUT Must be close to the Crystal SB14 SB18 SB17 MCO Must be close to the Crystal 1 4 A 2 1 2 3 1 PB13 PB15 PB14 PC0 PC2 PC1 PB10 PB11 PC5 PC6 PC7 PC8 PC9 PA0 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PA13 PA14 PA15 PA8 PA9 PA10 PA4 PA5 PA0 PA1 26 27 28 55 56 57 58 59 61 62 29 30 33 34 35 36 14 15 16 17 20 21 22 23 41 42 43 44 45 46 49 50 3 BOOT0 60 USBF4_DM USBF4_DP USBF4_DM USBF4_DP TS_G1_IO3 TS_G1_IO4 TS_G2_IO3 TS_G2_IO4 TS_G3_IO2 TS_G3_IO3 4 Date: 10/28/2013 Sheet 3 of STM32F072B-DISCO - STM32F072BCT6 MCU Number:MB1076 Rev: C.1(PCB.SCH) Title: R33 VDD 5 Must be very close to the STM32F072 510 SB25 SB24 BOOT0 TS_G1_IO3 TS_G1_IO4 TS_G2_IO3 TS_G2_IO4 TS_G3_IO2 TS_G3_IO3 NRST 4 NRST VDD3 C33 100nF VSS3 PD2 PF0-OSC_IN PF1-OSC_OUT VDD3 VSS3 PD2 PC15-OSC32_OUT PC14-OSC32_IN PC13 PC13 PC12 PC12 PC11 PC11 PC10 PC10 PC9 PC9 PC8 PC8 PC7 PC7 PC6 PC6 PC5 PC5 PC4 PC4 PC3 PC3 PC2 PC2 PC1 PC1 PC0 PC0 7 5 6 19 18 54 4 3 2 53 52 51 40 39 38 37 25 24 11 10 9 8 STMicroelectronics BOOT0 NRST PF0-OSC_IN PF1-OSC_OUT VDD_3 VSS_3 PD2 PC15-OSC32_OUT PC14-OSC32_IN PC13 PC12 PC11 PC10 PC9 PC8 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 SPI2_SCK SPI2_MOSI SPI2_MISO NCS_MEMS_SPI MEMS_INT2 MEMS_INT1 I2C2_SCL I2C2_SDA EXT_RESET LD_U LD_D LD_L LD_R B_USER STM32F072RBT6 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PA0/WKUP1 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 U4A SPI2_SCK SPI2_MOSI SPI2_MISO NCS_MEMS_SPI MEMS_INT2 MEMS_INT1 I2C2_SCL I2C2_SDA EXT_RESET LD_U LD_D LD_L LD_R B_USER TS_G3_IO2 TS_G3_IO3 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PA13 PA14 PA15 USBF4_DM USBF4_DP PA0 PA1 TS_G1_IO3 TS_G1_IO4 PA4 PA5 TS_G2_IO3 TS_G2_IO4 PA8 PA9 PA10 3 D C B A UM1690 Electrical schematics Figure 11. STM32F072RBT6 MCU 27/31 30 28/31 DocID025474 Rev 2 D C B A LD_D R31 510 LD_R R30 330 LD_D LD_R 1 LD_L R32 1K LD_U R29 1K LD_L LD_U 1 2 3 4 5 6 USB-MINI-typeB VCC DD+ ID GND SHELL CN2 USB User 1 LED, green LED, blue LD5 5V 0 USBF4_DM 0 USBF4_DP 100K LED, orange LD6 LED, red LD4 LD3 R13 R12 R11 BAT60JFILM D2 L USBF4_DM USBF4_DP LEDs D U 2 TP1 R TP2 Test Point with hole 2 SPI2_SCK SPI2_MOSI SPI2_MISO NCS_MEMS_SPI MEMS_INT2 MEMS_INT1 3 R1 4K7 3V R2 4K7 3V 2 4 6 8 SSM-104-L-DH 1 3 5 7 CN3 5V EXT_RESET 4 EXT_RESET L3GD20 MEMS VDD_IO SCL/SPC SDA/SDI/SDO SA0/SDO CS_I2C/SPI DRDY/INT2 INT1 GND U3 VDD VDD C1 GND GND GND GND GND 16 15 14 13 12 11 10 9 10nF/25V C13 4 Date: 10/28/2013 Sheet 4 100nF C15 STM32F072B-DISCO MEMS and USB Number:MB1076 Rev: C.1(PCB.SCH) Title: STMicroelectronics 1 2 3 4 5 6 7 8 3V Extension / RF EEprom Connector I2C2_SDA I2C2_SCL SPI2_SCK SPI2_MOSI SPI2_MISO NCS_MEMS_SPI MEMS_INT2 MEMS_INT1 I2C2_SDA I2C2_SCL 3 of 10uF C14 5 D C B A Electrical schematics UM1690 Figure 12. MEMS and USB D C B 1 2 1 R39 10K C26 47nF R38 10K LS_P2 Linear Sensor 2 LS1 C28 47nF TS_G2_IO4 TS_G2_IO3 PA7 TS_G3_IO3 PA3 PA2 PA6 TS_G3_IO2 Linear sensor made of 3 electrodes C27 47nF TS_G1_IO4 TS_G1_IO3 R40 10K 3 3 LS_P3 1 LS_P1 PB1 PB0 2 2 3 3 NRST 100nF C30 SB21 RESET Button NRST B_USER 100nF C31 SB22 10K R41 R43 [NA] VDD R42 10K 4 4 Date: 10/22/2013 Sheet 5 of 5 STM32F072B-DISCO Linear Sensor and Push Button Number:MB1076 Rev: C.1(PCB.SCH) Title: STMicroelectronics PA0 USER & WAKE-UP Button VDD 4 1 3 2 4 1 DocID025474 Rev 2 3 2 SW-PUSH-CMS B1 SW-PUSH-CMS B2 A 1 D C B A UM1690 Electrical schematics Figure 13. Linear sensor and pushbutton 29/31 30 Revision history 7 UM1690 Revision history Table 7. Document revision history Date Revision 18-Dec-2013 1 Initial release. 2 Updated Figure 1: STM32F072 discovery board. Added Section 4.7 and Section 4.8. Added Figure 12: MEMS and USB and Figure 13: Linear sensor and pushbutton. 23-June-2014 30/31 Changes DocID025474 Rev 2 UM1690 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. ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B) AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT PURCHASER’S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR “AUTOMOTIVE, AUTOMOTIVE SAFETY OR MEDICAL” INDUSTRY DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY. 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. © 2014 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 DocID025474 Rev 2 31/31 31