UM1735 User manual Discovery kit for STM32F3 series with STM32F334C8 MCU Introduction The STM32F334 discovery kit (32F3348DISCOVERY) helps the user discover the full range of features of the STM32F334 line and develop applications. It is based on STM32F334C8T6 and includes ST-LINK/V2-1 embedded debug tool interface, high-brightness LED dimming with buck converter, buck/boost converter, LEDs and pushbuttons. The board comes with a comprehensive STM32 software HAL library with various packaged software examples, as well as direct access to mbed™ online resources at http://mbed.org. Figure 1. STM32F334 discovery board Picture not contractual. February 2016 DocID025953 Rev 2 1/33 www.st.com Contents UM1735 Contents 1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Ordering and product information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 Hardware layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4.1 4.2 Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.1 Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.2 ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1.3 VCP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1.4 Using ST-LINK/V2-1 to program/debug the STM32F334 MCU on board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4.1.5 Using ST-LINK/V2-1 to program/debug an external STM32 application 15 Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.2.1 Power supply input from the USB connector . . . . . . . . . . . . . . . . . . . . . 17 4.2.2 External power supply inputs: 5V_IN . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.3 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.4 Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.5 High brightness LED dimming with buck converter . . . . . . . . . . . . . . . . . 18 4.6 Buck/boost converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.7 JP3 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.8 BOOT0 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.9 USART configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.10 OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.11 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.12 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5 Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6 Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2/33 DocID025953 Rev 2 UM1735 7 Contents Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 DocID025953 Rev 2 3/33 3 List of tables UM1735 List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. 4/33 ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Debug connector CN2 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 DocID025953 Rev 2 UM1735 List of figures 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. STM32F334 discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 STM32F334 discovery board hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Updating the list of drivers in device manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 STM32F334 discovery board connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 ST-LINK/V2-1 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 STM32F334 discovery board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 STM32F334 discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ST-LINK/V2-1 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 STM32F334C8T6 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 LED buck converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Buck/boost converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 DocID025953 Rev 2 5/33 5 Conventions 1 UM1735 Conventions Table 1 provides the definition of some conventions used in the present document. Table 1. ON/OFF conventions Convention 6/33 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 DocID025953 Rev 2 UM1735 2 Ordering and product information Ordering and product information The STM32F334 discovery kit is a low-cost and easy-to-use development kit to quickly evaluate and start a development with an STM32F3 series microcontroller. Before installing and using the product, please accept the Evaluation Product License Agreement from www.st.com/epla. For more information on the STM32F334 discovery board and for demonstration software, visit www.st.com/stm32f3-discovery. 2.1 Product marking Tools marked as "ES" or "E" are not yet qualified and as such, they may be used only for evaluation purposes. ST shall not be liable for any consequences related with other ways of use of such non-qualified tools, for example, as reference design or for production. Examples of location of "E" or "ES" marking: 2.2 • on target STM32 microcontroller part mounted on the board (for illustration, refer to section "Package information" in its datasheet at www.st.com) • next to the evaluation tool ordering part number, as a label stuck or a silk-screen printed on the board Order code To order the Discovery kit for STM32F334 line microcontrollers, use the order code: STM32F3348-DISCO. DocID025953 Rev 2 7/33 32 Features 3 UM1735 Features The STM32F334 discovery board offers the following features: 8/33 • STM32F334C8T6 microcontroller featuring 64 Kbytes of Flash memory, 16 Kbytes of RAM in an LQFP48 package • on-board ST-LINK/V2-1 with selection mode switch to use the kit as a standalone programming and debugging tool (with SWD connector for programming and debugging) • mbed™-enabled (mbed.org) • USB ST-LINK with re-enumeration capability and three different interfaces: – virtual COM port – mass storage – debug port • board power supply: through USB bus or from an external 5 V supply voltage • external application power supply: 3 V and 5 V • high brightness LED dimming with buck converter • one buck/boost converter • six LEDs: – LD1 (red) for 3.3 V power on – LD2 (red/green) for USB communication – four user LEDs: LD3 (red), LD4 (orange), LD5 (green) and LD6 (blue) • two pushbuttons (user and reset) • extension header for LQFP48 I/Os for a quick connection to the prototyping board and easy probing DocID025953 Rev 2 UM1735 4 Hardware layout Hardware layout The STM32F334 discovery board has been designed around the STM32F334C8T6 microcontroller in a 48-pin LQFP package. Figure 2 illustrates the connections between the STM32F334C8T6 and its peripherals (ST-LINK/V2-1, high brightness LED dimming with buck converter, buck/boost converter, LEDs, pushbuttons). Figure 3 and Figure 4 help you to locate these features on the STM32F334 discovery board. Figure 2. STM32F334 discovery board hardware block diagram 069 DocID025953 Rev 2 9/33 32 Hardware layout UM1735 Figure 3. Top layout 67/,1.9 86%67/,1. /'&20 /' 3:5 &1 6:'FRQQHFWRU 9SRZHU VXSSO\RXWSXW -3 UHVHUYHG 9SRZHU VXSSO\LQSXW &1 67/,1.',6&29(5< VHOHFWRU 9SRZHU VXSSO\RXWSXW %227 FRQILJXUDWLRQ -3 ,''PHDVXUHPHQW 670)&7 -35;7; /'5HG/(' /'2UDQJH/(' /'*UHHQ/(' /'%OXH/(' /' +LJKEULJKWQHVV/(' % XVHUEXWWRQ % UHVHWEXWWRQ 9LQ EXFNERRVWFRQYHUWHU 9RXW EXFNERRVWFRQYHUWHU 069 10/33 DocID025953 Rev 2 UM1735 Hardware layout Figure 4. Bottom layout 6% UHVHUYHG 6% 670B567 6% GHIDXOW 6% 1567 6% 0&2 6% 9&35;7; 6% 6:2 6% ;FU\VWDO 6% 9H[W 6% /(' 6% %86(5 6% %5(6(7 6% / 069 DocID025953 Rev 2 11/33 32 Hardware layout 4.1 UM1735 Embedded ST-LINK/V2-1 The ST-LINK/V2-1 programming and debugging tool is integrated on the STM32F334 discovery board. The embedded ST-LINK/V2-1 tool supports only SWD for STM32 devices. For information about debugging and programming features, refer to user manual UM1075 (ST-LINK/V2 incircuit debugger/programmer for STM8 and STM32) that describes in detail all the STLINK/V2 features. The changes versus ST-LINK/V2 are listed below. • • New features supported on ST-LINK/V2-1: – USB software re-enumeration – virtual COM port interface on USB (Section 4.1.3) – mass storage interface on USB – USB power management request for more than 100 mA power on USB Features not supported on ST-LINK/V2-1: – SWIM interface – minimum supported application voltage limited to 3 V There are two different ways to use ST-LINK/V2-1, depending on the jumper states (see Table 2): • program/debug the MCU on board (Section 4.1.4) • program/debug an MCU in an external application board using a cable connected to SWD connector CN3 (Section 4.1.5) Table 2. Jumper states Jumper state 4.1.1 Description Both CN3 jumpers ON ST-LINK/V2-1 functions enabled for on board programming (default) Both CN3 jumpers OFF ST-LINK/V2-1 functions enabled for application through external CN2 connector (SWD supported) Drivers ST-LINK/V2-1 requires a dedicated USB driver that, for Windows XP, 7 and 8, can be found at www.st.com. In case the STM32F334 discovery board is connected to the PC before the driver is installed, some discovery interfaces may be declared as “Unknown” in the PC device manager. In this case the user must install the driver files (Figure 5), and from the device manager update the driver of the connected device. Note: 12/33 Prefer using the “USB Composite Device” handle for a full recovery. DocID025953 Rev 2 UM1735 Hardware layout Figure 5. Updating the list of drivers in device manager 4.1.2 ST-LINK/V2-1 firmware upgrade ST-LINK/V2-1 embeds a firmware upgrade mechanism for in-situ upgrade through the USB port. As the firmware may evolve during the life time of the ST-LINK/V2-1 product (for example new functionality, bug fixes, support for new microcontroller families), it is recommended to visit www.st.com periodically in order to stay up-to-date with the latest firmware version. 4.1.3 VCP configuration ST-LINK/V2-1 supports virtual COM port (VCP). To enable this function, the solder bridges SB14 and SB16 (See Figure 4: Bottom layout) for mbed support are closed. Table 4: Solder bridges indicates this with ON state. DocID025953 Rev 2 13/33 32 Hardware layout 4.1.4 UM1735 Using ST-LINK/V2-1 to program/debug the STM32F334 MCU on board To program the STM32F334 MCU on board, simply plug in the two jumpers on CN3, as shown in Figure 6 in red, but do not use the CN2 connector as that could disturb communication with the STM32F334C8T6 of the STM32F334 discovery board. Figure 6. STM32F334 discovery board connections 14/33 DocID025953 Rev 2 UM1735 4.1.5 Hardware layout Using ST-LINK/V2-1 to program/debug an external STM32 application It is very easy to use ST-LINK/V2-1 to program an STM32 microcontroller on an external application. Simply remove the 2 jumpers from CN3 as shown in Figure 7 and connect your application to the CN2 debug connector according to Table 3. Note: SB11, must be OFF if you use CN2 pin 5 (NRST) in your external application. SB17, must be OFF if you use CN2 pin 6 (SWO) in your external application. Table 3. Debug connector CN2 (SWD) Pïn CN2 Designation 1 VDD_TARGET VDD from application 2 SWLCK SWD clock 3 GND Ground 4 SWDIO SWD data input/output 5 NRST RESET of target MCU 6 SWO Reserved DocID025953 Rev 2 15/33 32 Hardware layout UM1735 Figure 7. ST-LINK/V2-1 connections 4.2 Power supply and power selection The power supply is provided either by the host PC through the USB cable, or by an external 5 V power supply. The STM32F334 discovery board requires to the Host PC 500mA, but around 300mA is needed for its demo, 100mA for an extension board and a safety margin of 100mA. The D2 and D3 diodes protect the 5 V pins from external power supplies: 16/33 • 5 V and 3 V can be used as output power supplies when an extension board is connected to pins P1 and P2. In this case, the 5V_O and 3V_O pins deliver a 5 V or 3.3 V power supply and the power consumption of the extension board 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. ( 5V_I pin of P1 Header) In this case, the STM32F334 discovery board must be powered by a power supply unit DocID025953 Rev 2 UM1735 Hardware layout 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. 4.2.1 Power supply input from the USB connector ST-LINK/V2-1 supports USB power management allowing to request more than 100 mA current to the host PC. All parts of the STM32F334 discovery board and extension board can be powered from the ST-LINK/V2-1 USB connector CN1 (U5V or VBUS). Note that only the ST-LINK/V2-1 part is power supplied before the USB enumeration as the host PC only provides 100 mA to the board at that time. During the USB enumeration, the STM32F334 discovery board requires 500 mA of current to the Host PC. If the host is able to provide the required power, the targeted STM32 microcontroller is powered and the red LED LD1 is turned on, thus the STM32F334 discovery board and its extension board can consume a maximum of 500 mA current, not more. If the host is not able to provide the required current, the targeted STM32 microcontroller and the MCU part including the extension board are not power supplied. As a consequence the red LED LD1 remains turned OFF. In such case it is mandatory to use an external power supply as explained in the next chapter. Warning: If the maximum current consumption of the STM32F334 discovery and its extension boards exceeds 500 mA, it is mandatory to power the STM32F334 discovery using an external power supply connected to 5V_IN. Note: In case of this board is powered by an USB charger or USB battery then there is no USB enumeration so the led LD1 remains OFF permanently and the target MCU is not powered. In this specific case the jumper JP1 needs to be ON to allow target MCU to be powered anyway. This is a special use without enumeration and JP1 is not soldered. To use this optional power supply, solder a 2 pins header in JP1 and set a jumper (you can use a jumper plugged on P3 or P4) 4.2.2 External power supply inputs: 5V_IN The external power source 5V_IN is automatically detected, in this case the current consumption of STM32F334 discovery board and extension board exceed the allowed current on USB. In this condition it is still possible to use the USB for communication, for programming or debugging only, but it is mandatory to power supply the board first using 5V_IN then connect the USB cable to the PC. Proceeding this way ensures that the enumeration occurs thanks to the external power source. The following power sequence procedure must be respected: 1. Connect the external power source to 5V_IN. 2. Power on the external power supply 5V_IN. 3. Check that LD1 is turned on. 4. Connect the PC to USB connector CN1. If this order is not respected, the board may be supplied by VBUS first then by 5V_IN, and the following risks may be encountered: DocID025953 Rev 2 17/33 32 Hardware layout 4.3 4.4 4.5 UM1735 1. If more than 500 mA current is needed by the board, the PC may be damaged or the current supply can be limited by the PC. As a consequence the board is not powered correctly. 2. 500 mA is requested at enumeration (since JP1 must be OFF) so there is risk that the request is rejected and the enumeration does not succeed if the PC cannot provide such current. Consequently the board is not power supplied (LED LD1 remains OFF). LEDs • LD1 PWR: The red LED indicates that the board is powered. • LD2 COM: LD2 default status is red. LD2 turns to green to indicate that communications are in progress between the PC and ST-LINK/V2-1. • User LD3: The red LED is a user LED connected to the I/O PB6 of the STM32F334C8T6. • User LD4: The orange LED is a user LED connected to the I/O PB8 of the STM32F334C8T6. • User LD5: The green LED is a user LED connected to the I/O PB9 of the STM32F334C8T6. • User LD6: The blue LED is a user LED connected to the I/O PB7 of the STM32F334C8T6. Pushbuttons • B1 USER: User and Wake-Up button connected to the I/O PA0 of the STM32F334C8T6. • B2 RESET: The pushbutton connected to NRST is used to RESET the STM32F334C8T6. High brightness LED dimming with buck converter The STM32F334 discovery integrates a high brightness LED dimming feature. This function has been designed with on-chip peripherals MCU to reduce the number of external components generally included in analog components based solutions for LED dimming. The default LED Voltage supply is 5 Volts from 5V_OUT signal or can be provided by an external voltage through CN4 (Vext signal) and by removing the solder of SB18. This external voltage must be between 5 and 15 Volts. LED information: 18/33 • reference LE-CWC12100-D, 1W, Everluck • VF = 2.8V Typical • IF = 350mA Max DocID025953 Rev 2 UM1735 Hardware layout To design a high brightness LED dimming application, refer to the following documentation and firmware: • For details concerning I/O ports, refer to the STM32F334C8T6 datasheet. • For information on software development, see DISCOVER application software on www.st.com/stm32f3-discovery. • For more detail concerning high brightness LED dimming, refer to AN4885 high brightness LED dimming using the STM32F334 discovery kit. • STM32Cube library available from www.st.com/stm32f3-discovery. Warning: The high brightness of this LED can be very dangerous for your eyes... For safety reasons, the maximum high brightness LED forward current has been limited by software to 250 mA and an optical cube-shaped protection has been placed over the LED. Do not override this current limitation and do not remove the optical protection while the LED is operating. The STM32F334C8T6 MCU controls this high brightness LED dimming feature through the High-Resolution Timers interface. Note: If LED buck converter is used then buck/boost converter cannot be enabled. 4.6 Buck/boost converter The STM32F334 discovery includes a buck/boost converter. This DC/DC converter function has been designed with on-chip peripherals MCU and is able to convert an input Voltage (Vin on CN5) from 3 Volts to 15 Volts to an output voltage (Vout on CN7) from 3 Volts to 15 Volts. Input current on Vin (CN5) or output current on Vout (CN7) are limited to 500 mA max. Whatever the input or output voltage conditions are. The STM32F334C8T6 MCU controls this Buck / Boost converter feature through the HighResolution Timers interface. To design a buck/boost converter application, refer to the following documentation and firmware: • For details concerning I/O ports, refer to the STM32F334C8T6 datasheet. • For information on software development, see DISCOVER application software on www.st.com/stm32f3-discovery. • For more detail concerning the buck/boost converter, refer to AN4449 buck boost converter using the STM32F334 discovery kit. • STM32Cube library available from www.st.com/stm32f3-discovery. Note: If buck/boost converter is used then LED buck converter cannot be enabled. 4.7 JP3 (Idd) Jumper JP3, labeled Idd, allows the consumption of STM32F334C8T6 to be measured by removing the jumper and connecting an ammeter. • Jumper on: STM32F334C8T6 is powered (default). • Jumper off: an ammeter must be connected to measure the STM32F334C8T6 current, (if there is no ammeter, the STM32F334C8T6 is not powered). DocID025953 Rev 2 19/33 32 Hardware layout 4.8 UM1735 BOOT0 Configuration BOOT0 is at level “0” through a pull-down R31. 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 R31 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.9 USART configuration The USART2 interface available on PB3 and PB4 of the STM32F334C8T6 can be connected to ST-LINK/V2-1 MCU to use the virtual COM port function. By default the USART2 communication between the target STM32F334C8T6 and ST-LINK/V2-1 MCU is not enabled. To use the virtual COM port function with: 4.10 • The on-board STM32F334C8T6, then set SB14 and SB16 ON. • An external MCU then remove solder from SB14 and SB16, solder an 2 pins header on JP4, then you can connect RX and TX of the external MCU directly to RX and TX of JP4. OSC clock supply If PF0 and PF1 are only used as GPIOs instead of as a clock, then SB13 and SB15 are closed and R29 and R30 are removed. (SB12 must be open) MCO from ST-LINK/V2-1 (from MCO of the STM32F103CBT6) This frequency cannot be changed, it is fixed at 8 MHz and connected to PF0-OSC_IN of the STM32F334C8T6. The configuration needed is: – SB12 closed and SB13 open – R30 removed HSE Oscillator on board from X2 crystal (not provided) For typical frequencies and its capacitors and resistors, please refer to the STM32F334C8T6 Datasheet. The configuration needed is: – SB12, SB13, SB15 open – X2, R29, R30, C20, C21 soldered Oscillator from external PF0 (from external oscillator through pin 7 of the P1 connector) The configuration needed is: Note: 20/33 – SB13 closed – SB12 open – R30 removed Please refer to the AN2867 for oscillator design guide for STM32 microcontrollers. DocID025953 Rev 2 UM1735 4.11 Hardware layout Solder bridges Table 4. Solder bridges Bridge SB13, 15 (X2 crystal) SB3,5,8,10 (default) (1) State Description OFF X2, C20, C21, R29 and R30 provide a clock. PF0, PF1 are disconnected from P1. ON PF0, PF1 are connected to P1 Remove only R29 and R30 ON Reserved, do not modify SB2,4,7,9 (reserved) OFF SB20 (B2-RESET) SB21 (B1-USER) SB14, 16 (VCP RX, TX)(2) SB18 (Vext) SB22 (L3) SB1 (ST-LINK/V2-1 PWR) SB19 (LED) SB11 (NRST) SB17 (SWO) SB6 (STM_RST) SB12 (MCO) Reserved, do not modify ON B2 Push Button is connected to NRST of STM32F334C8T6 OFF B2 Push Button is not connected to NRST of STM32F334C8T6 ON B1 Push Button is connected to PA0 OFF B1 Push Button is not connected to PA0 OFF PA2, PA3 of STM32F103CBT6 are not connected to PB4, PB3 of STM32F334C8T6 ON PA2, PA3 of STM32F103CBT6 are connected to PB4, PB3 of STM32F334C8T6, then SW0 cannot be used and SB17 must be OFF ON LED Buck is powered from 5V_OUT OFF LED Buck is powered from CN4 ON Default position. OFF Use CN6 for Current measurement. ON ST-LINK/V2-1 module is powered OFF ST-LINK/V2-1 module is not powered ON Default position. OFF Use it connecting 2 wires for Current measurement. ON T_NRST signal from connector CN2 and STM32F103CBT6, is connected to NRST of STM32F334C8T6 OFF T_NRST signal is not connected OFF SWO signal is not connected ON SWO signal of connector CN3 is connected to PB3, then USART_TX cannot be used and SB16 must be OFF OFF No incidence on NRST signal of STM32F103CBT6 ON NRST signal of STM32F103CBT6 is connected to GND ON MCO clock signal from STM32F103CBT6 is connected to OSC_IN of STM32F334C8T6. OFF MCO signal of STM32F103CBT6 is not used. 1. Default value is in bold. 2. Default state is OFF for boards labeled MB1142 B-01 and older. DocID025953 Rev 2 21/33 32 Hardware layout 4.12 UM1735 Extension connectors The male headers P1 and P2 can connect the STM32F334 discovery board to a standard prototyping/wrapping board. STM32F334C8T6 GPI/Os are available on these connectors. P1 and P2 can also be probed by an oscilloscope, logical analyzer or voltmeter. Table 5. Extension connectors 22/33 DocID025953 Rev 2 SBx(1) SB21 SB11, 20 - - - - - CN7 - - - 19 - 18 - CN5 - - 17 - 16 - P2 - 15 - 14 - - P1 - - 13 - - Power Supply - 12 - - 11 - - 9 - 2 - - 2 6 - Free I/O PA7 PA6 PA5 PA4 Buck LED - Vout Vin Buck/boost P1_Drive - - - Vout_Sense Vin_Sense - LED - PushButtons - - VCP - RESET - - USER 29 - PA8 - 17 - PA7 - 16 - PA6 - 15 - PA5 - 14 - PA4 - 13 - PA3 - 12 - PA2 - 11 - PA1 - 10 - PA0 - 7 - BOOT0 NRST - SYSTEM 44 NRST - BOOT0 - - - LQFP48 pin num. Board funtion - - Main function MCU pin PA15 38 PB0 18 PB1 19 PB2 20 - PB3 39 SWO PB4 40 PB5 41 PB6 42 DocID025953 Rev 2 - - - 8 - - SB14 SB17, 16 - - - - - - - - - - - - - - - - - - - - - - - - - SBx(1) CN7 CN5 - - 21 - 20 - P2 19 - P1 - - - - Power Supply Free I/O - - - Buck LED - - - - - - - PA12 - 12 - LED PushButtons VCP 13 - - - - - - 14 - - - - - P2_Drive N2_Drive N1_Drive Buck/boost - - - - - - - - 15 - - - - - - - 16 - - - PA15 - - - BK_Sense - - - - - - - - - - - - 17 - 9 - - - - - PB2 PB1 - - - - - 18 - - - - 10 - - - - - - - 11 - - - PB5 - - - - - - - USART_RX USART_TX MCU pin - - - RED - - - - - - 37 SYSTEM PA14 - 34 - PA13 - 33 - PA12 SWCLK SWDIO 32 - PA11 - 31 - PA10 - 30 - LQFP48 pin num. PA9 - Main function UM1735 Hardware layout Table 5. Extension connectors (continued) Board funtion 23/33 32 24/33 DocID025953 Rev 2 - - - - - - - - - - - - - - - - - - SB15 - SB12, 13 - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - SBx(1) CN7 CN5 - P2 - 23 - - P1 - - - Power Supply Free I/O Buck LED Buck/boost - - - - - - - - - - - - - - 22 - 1 - PushButtons VCP 3 - - - - 4 - - 8 - - - GREEN ORANGE BLUE LED - - 7 - 7 - 6 - 5 - - - - - 4 - - - - - PB13 - - - - - PB11 PB10 - BK_Drive - - - - - - - - - - RC - - - - - - - - - - 20 - PC15 PC14 PC13 PB15 - - - - - 21 - - - - - - - 22 - - - - - - - 23 - 5V_IN 3V 6 - PF1 - 5 - PF0 - MCU pin - 4 - PC15 - 3 - PC14 - 2 - PC13 - 28 - PB15 - 27 SYSTEM PB14 - 26 - PB13 - 25 - PB12 - 22 - PB11 - 21 - PB10 - 46 - PB9 - 45 - LQFP48 pin num. PB8 OSC_OUT OSC_IN Main function 43 - - - PB7 - - - Hardware layout UM1735 Table 5. Extension connectors (continued) Board funtion UM1735 Hardware layout Table 5. Extension connectors (continued) SBx(1) - - - - - - 25 - - CN7 - 25 - 10 - - CN5 - 1 - 1 - - P2 2 - - - P1 2 - - - 5 - VDD VDD VDD VDD 5V_OUT Power Supply 3 GND GND GND GND Free I/O - - - - - - - - - - 8 - - VSSA - Buck LED 47 - - GND - - 35 - Buck/boost - GND - - - 23 - - - GND - LED - 9 - - - VDDA - - PushButtons 1 - - VBAT - 48 - VCP VDD - - 36 - VDD - SYSTEM 24 - - VDD - - LQFP48 pin num. Board funtion - Main function MCU pin 1. Signals available depending on SBx value. Refer to Table 4: Solder bridges or schematics in Section 6. DocID025953 Rev 2 25/33 32 Mechanical drawing 5 UM1735 Mechanical drawing Figure 8. STM32F334 discovery board mechanical drawing 26/33 DocID025953 Rev 2 VDD 3V_OUT PB4 PB3 BOOT0 PB7 PB6 PB5 PB4 PB3 PA15 PA14 PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 NC GND PB9 PB8 USART_RX USART_TX DocID025953 Rev 2 Header 25 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 P2 USART_RX USART_TX NRST MCO SWCLK SWDIO SWO PA14 PA13 PB3 T_NRST MCO SWCLK SWDIO SWO NRST N1_Drive N2_Drive P1_Drive P2_Drive NRST B_USER BK_Sense BK_Drive N1_Drive N2_Drive P1_Drive P2_Drive N1_Drive N2_Drive P1_Drive P2_Drive SWCLK SWDIO SWO MCO NRST N1_Drive N2_Drive P1_Drive P2_Drive RC Vin_Sense Vout_Sense BK_Sense BK_Drive LD_U LD_D LD_L LD_R PC13 PC14 PC15 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 RC Vin_Sense Vout_Sense LD_U LD_D LD_L LD_R USART_RX USART_TX U_BUCK_BOOST BUCK_BOOST.SchDoc NRST B_USER BK_Sense BK_Drive U_BUCK_LED BUCK_LED.SchDoc SWCLK SWDIO SWO MCO NRST BOOT0 B_USER PF0 PF1 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 U_STM32Fx STM32Fx.SchDoc BOOT0 B_USER PF0 PF1 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 RC Vin_Sense Vout_Sense LD_U LD_D LD_L LD_R USART_RX USART_TX RC Vin_Sense Vout_Sense BK_Sense BK_Drive LD_U LD_D LD_L LD_R PC13 PC14 PC15 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 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 GND PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB10 PB11 NC GND PC13 PC14 PC15 PF0 PF1 NRST 5V_OUT 5V_IN Reference: MB1142 Date: 30-May-14 Size: A4 Project: STM32F3348-DISCO Title: STM32F334 DISCOVERY Sheet: 1 of 5 Revision: B-01 Rev A-01 --> PCB label MB1142 A-01 Rev B-01 --> PCB label MB1142 B-01, MOSFETs replaced by new family, several Resistors and Capacitors values. Header 25 P1 6 U_ST_LINK ST_LINK_V2.SCHDOC UM1735 Electrical schematics Electrical schematics Figure 9. STM32F334 discovery 27/33 32 C13 R25 1 2 3 4 5 6 U5V R9 R11 R10 R8 JP4 1K5 0 USB_DM 0 USB_DP 100K VBAT PC13 PC14 PC15 OSCIN OSCOUT NRST VSSA VDDA PA0 PA1 PA2 R15 36K R13 10K 100K R14 100 JP2 USB_RENUMn Not Fitted STLINK_RX 1 2 3 4 5 6 7 8 9 10 11 12 +3V3_ST_LINK U5V 1 +3V3_ST_LINK SB16 SB14 TX RX T1 9013-SOT23 Close to JP Not Fitted AIN_1 OSC_IN OSC_OUT STM_RST [NA] +3V3_ST_LINK C15 100nF 4K7 R27 4K7 R28 USB-MINI-typeB VCC DD+ ID GND SHELL CN1 USB USART_TX USART_RX SB6 R26 100K 8MHz 20pF X1 20pF +3V3_ST_LINK1 2 C14 Board Ident: PC13=0 R22 T_JTCK T_JTDO T_JTDI T_NRST 10K SWIM_IN SWIM R16 SWIM_IN SWIM_RST SWIM_RST_IN 10K 36 35 34 33 32 31 30 29 28 27 26 25 C16 C10 LED_STLINK COM R5 R7 100 100 3 2 1 2 3 4 5 6 4 1 R1 R21 R19 R12 R4 22 22 22 22 BAT60JFILM D1 T_SWO T_NRST VDD C40 20pF MCO U5V 5V_IN R2 0 +3V3_ST_LINK D2 PWR_ENn STPS1L30A STPS1L30A D3 Not Fitted MCO 5 Volts From External LD1 LED, red JP3 Idd 100 R20 10K S DEFAULT CN3 1uF C3 1uF C7 SB9 SB7 SB4 SB2 100nF VI EN U1 Reference: MB1142 Date: 28-May-14 10nF C9 BYPASS Vout SWD TP1 TP2 SWDIO SWCLK +3V3_ST_LINK SWCLK SWDIO NRST SWO 1uF C1 5 3 4 1uF C11 5 Sheet: 2 of 5 C2 100nF 3V_OUT 3V 3 Volts Output 100nF C8 +3V3_ST_LINK ST-LINK Power Revision: B-01 NC PG VO LD39050PU33R Project: STM32F3348-DISCO Size: A4 STM_JTMS STM_JTCK LD3985M33R INH GND Vin U2 C4 100nF 3 1 Title: ST-LINK/V2-1 (SWD only) G 6 1 C5 5 Volts Output D SB17 SB11 PA14 PA13 Jumpers ON --> DISCOVERY Selected Jumpers OFF --> ST-LINK Selected SB10 SB8 SB5 SB3 5V_OUT STT7P2UH7 T2 SB1 AIN_1 T_JTMS T_JTCK [NA] RC Must be very close to STM32F103 pin 29 Header 6 CN2 SWD R3 10K 5 Volts From USB ST-LINK R6 1K 3V R18 100 R65 LD_BICOLOR_CMS _Green Red LD2 100nF 100nF 100nF 100nF C12 C6 +3V3_ST_LINK T_SWDIO_IN PWR_ENn T_JTMS T_JTCK STM_JTMS USB_DP USB_DM T_SWO LED_STLINK +3V3_ST_LINK U3 STM32F103CBT6 +3V3_ST_LINK +3V3_ST_LINK VDD_2 VSS_2 JTMS/SWDIO PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 +3V3_ST_LINK R23 JP1 Not Fitted T_SWO 1 2 3 4 5V_IN USB_RENUMn STM_JTCK R17 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 T_JRST STLINK_TX PWR_EXT VDD_3 VSS_3 PB9 PB8 BOOT0 PB7 PB6 PB5 PB4/JNTRST PB3/JTDO PA15/JTDI JTCK/SWCLK 48 47 46 45 44 43 42 41 40 39 38 37 2K7 4 R24 3 2 4 4K7 3 2 GND 2 1 2 5 6 T_NRST GND DocID025953 Rev 2 7 28/33 RESERVED TCK/SWCLK TMS/SWDIO Electrical schematics UM1735 Figure 10. ST-LINK/V2-1 (SWD only) PF1 PF0 MCO SB15 SB13 MCO DocID025953 Rev 2 R29 0 R30 Not Fitted 220 X2 8MHz C20 20pF C21 20pF BOOT0 C19 100nF VDDA C18 1uF Ferrite L1 C22 100nF C24 100nF C25 100nF C17 100nF VDD All this block must be very close to the STM32F334 PF1-OSC_OUT PF0-OSC_IN SB12 Must be close to the Crystal 2 1 R31 BOOT0 510 B_USER LD_U LD_D LD_L LD_R BK_Sense BK_Drive Vin_Sense Vout_Sense P2_Drive RC N2_Drive N1_Drive P1_Drive PB6 PB7 PB8 PB9 PB0 PB12 PA1 PA3 PA11 PB14 PA10 PA9 PA8 PA0 PA1 PA2 PC13 PC14 PC15 PF0-OSC_IN PF1-OSC_OUT NRST PA0 VDDA PA0 PA1 PA2 NRST VDD PC13 PC14 PC15 PB7 BOOT0 PB8 PB9 PB7 VBAT PC13 PC14 PC15 PF0/OSCIN PF1/OSCOUT NRST VSSA VDDA PA0 PA1 PA2 Vin_Sense Vout_Sense P2_Drive RC N2_Drive N1_Drive P1_Drive BK_Sense BK_Drive LD_U LD_D LD_L LD_R B_USER PA3 PA3 PA4 PA4 PA5 PA5 PA6 PA6 PA7 PA7 PB0 PB0 1 2 3 4 5 6 7 8 9 10 11 12 VDD PB8 PB9 PB11 PB11 PB10 PB10 PB2 PB2 PB1 PB1 SWCLK SWDIO SWO USART_TX USART_RX PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 Reference: MB1142 Date: 16-Apr-14 Size: A4 Project: STM32F3348-DISCO Sheet: 3 of 5 Revision: B-01 SWCLK SWDIO SWO USART_TX USART_RX PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 VDD U4 STM32F334C8T6 Title: STM32F3348CT6 MCU PA14 PA13 PB3 PB3 PB4 36 35 34 33 32 31 30 29 28 27 26 25 VDD VDD_2 VSS_2 PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 PB6 PB6 PB5 PB5 PB4 PB4 PB3 PB3 PA15 PA15 PA14 PA14 48 47 46 45 44 43 42 41 40 39 38 37 VDD_3 VSS_3 PB9 PB8 BOOT0 PB7 PB6 PB5 PB4 PB3 PA15 PA14 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB10 PB11 VSS_1 VDD_1 13 14 15 16 17 18 19 20 21 22 23 24 SBx Must be very close to the STM32F334 UM1735 Electrical schematics Figure 11. STM32F334C8T6 MCU 29/33 32 VEXT SB18 CN4 5V_OUT LD_U R35 1K LD_L R38 1K LD_D R40 510 LD_R R36 330 LD_U LD_L LD_D LD_R C29 100nF C28 47uF LED, green LED, blue LD5 LED, orange LD6 LED, red LD4 LD3 PB12 BK_Drive 10 R34 L G R33 10K 3 D S R39 1 33R R37 R 82μH 10% L2 T3 STT5N2VH5 LEDs D U 4 6 5 2 1 D4 STPS1L40A C26 1nF LPB_10_10 LPB White P4 P3 Wired on Solder Side PB0 LED LE-CWC12100_[D]_1W With LPB1 LD7 BK_Sense SB19 C27 1uF LPB1 PA0 B_USER NRST SB21 100nF C31 SB20 C30 100nF 10K R41 Reference: MB1142 Date: 14-May-14 Size: A4 Project: STM32F3348-DISCO Title: LED BUCK converter RESET Button NRST B_USER USER & WAKE-UP Button VDD 4 1 SW-PUSH-CMS_BLUE B1 Sheet: 4 of 5 Revision: B-01 R42 [NA] VDD R43 10K 3 2 4 1 DocID025953 Rev 2 3 2 30/33 SW-PUSH-CMS_BLACK B2 LED BUCK converter Electrical schematics UM1735 Figure 12. LED buck converter Vin CN5 PA8 P1_Drive R45 6.8K 0.1% C32 22nF_X7R_10%_0603 Vin_Sense PA1 270R R61 270R R55 C38 47uF 1 R59 10K 1 G G C36 100nF S D S D T8 BC807 1 1 PA9 10R R56 3 C33 100nF S R62 10K 3 4 6 5 2 1 SB22 D5 BAT54FILM 1 2 5 6 4 TP4 L3 82μH 10% CN6 STT4P3LLH6 STT4P3LLH6 T5 T11 STT5N2VH5 STT5N2VH5 T12 T4 PB14 RC 4 6 5 2 1 C34 100nF 3 R63 10K 10R R57 47R 10R R49 D7 BAT54FILM R50 D8 SMAJ15A PA10 N2_Drive T13 NDS7002A 1 T9 BC807 1 T7 BC817 T15 NDS7002A TP3 C23 10nF_X7R_10%_0805 GND R32 15K_1%_0805 3 Not Fitted 1 2 5 6 4 RC Low Pass Filter 10R R47 47R R48 3 SMAJ15A D6 T6 BC817 N1_Drive T14 NDS7002A T10 NDS7002A R53 1K 3 2 2 3 2 1 1 R51 27K 0.1% 3 2 3 2 nc 2 2 1 1 S D D G G G G D D S DocID025953 Rev 2 S 3 nc 2 3 2 2 3 S D 3 S D 2 3 2 BUCK/BOOST Converter R54 1K G G 1 1 Not Fitted 270R R64 270R R58 C39 47uF PA11 Reference: MB1142 Date: 30-May-14 Size: A4 Project: STM32F3348-DISCO C35 6.8nF R46 3K3_0.1%_0805 R52 13K3_0.1%_0805 Sheet: 5 of 5 Revision: B-01 Not Fitted P2_Drive R44 1 Title: BUCK / BOOST CONVERTER R60 10K C37 100nF PA3 Vout_Sense Vout CN7 UM1735 Electrical schematics Figure 13. Buck/boost converter 31/33 32 Revision history 7 UM1735 Revision history Table 6. Document revision history Date Revision 19-Jun-2014 1 Initial release 2 Change of STM32F3x4 to STM32F334 in Introduction. mbed-enabled logo added on the cover page. Added mbed-enabled in Section 3: Features. Added Section 2.1: Product marking. Text change in Section 2.2: Order code. Remove Windows Vista in Section 4.1.1: Drivers. SB14 and SB16 default position update in Table 4: Solder bridges Added Section 4.1.3: VCP configuration 01-Feb-2016 32/33 Changes DocID025953 Rev 2 UM1735 IMPORTANT NOTICE – PLEASE READ CAREFULLY STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement. Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products. No license, express or implied, to any intellectual property right is granted by ST herein. Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product. ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces information previously supplied in any prior versions of this document. © 2016 STMicroelectronics – All rights reserved DocID025953 Rev 2 33/33 33