Download Discovery kit for STM32F3 series with STM32F334C8 MCU
Transcript
UM1735 User manual Discovery kit for STM32F3 series with STM32F334C8 MCU Introduction The STM32F334 discovery kit (32F3348DISCOVERY) helps you to discover the full features of the STM32F3x4 line and to develop your applications. It is based on an STM32F334C8T6 and includes an ST-LINK/V2-1 embedded debug tool interface, high brightness LED dimming with buck converter, buck/boost converter, LEDs, pushbuttons. Figure 1. STM32F334 discovery board June 2014 DocID025953 Rev 1 1/32 www.st.com Contents UM1735 Contents 1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 Ordering and product information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4 Hardware layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.1 4.2 Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 4.1.1 Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.1.2 ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.3 Using ST-LINK/V2-1 to program/debug the STM32F334 MCU on board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.1.4 Using ST-LINK/V2-1 to program/debug an external STM32 application 14 Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4.2.1 Power supply input from the USB connector . . . . . . . . . . . . . . . . . . . . . 16 4.2.2 External power supply inputs: 5V_IN . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.3 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.4 Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.5 High brightness LED dimming with buck converter . . . . . . . . . . . . . . . . . 17 4.6 Buck/boost converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.7 JP3 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.8 BOOT0 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.9 USART configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.10 OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.11 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.12 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5 Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 6 Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 2/32 DocID025953 Rev 1 UM1735 List of tables List of tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Debug connector CN2 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 DocID025953 Rev 1 3/32 3 List of figures UM1735 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/32 STM32F334 discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 STM32F334 discovery board hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Updating the list of drivers in device manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 STM32F334 discovery board connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 ST-LINK connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 STM32F334 discovery board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 STM32F334 discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 ST-LINK/V2-1 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 STM32F334C8T6 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 LED buck converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Buck/boost converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 DocID025953 Rev 1 UM1735 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 DocID025953 Rev 1 5/32 31 Ordering and product information 2 UM1735 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 Order code To order the STM32F334 discovery kit, use the order code: STM32F3348-DISCO. 6/32 DocID025953 Rev 1 UM1735 3 Features Features The STM32F334 discovery board offers the following features: • STM32F334C8T6 microcontroller featuring 64 KB of flash memory, 16 KB of RAM in an LQFP48 package • On-board ST-LINK/V2-1 with selection mode switch to use the kit as a standalone STLINK/V2-1 (with SWD connector for programming and debugging) • USB re-enumeration capability: three different interfaces supported on USB – 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 1 7/32 31 Hardware layout 4 UM1735 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 (STLINK/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 8/32 DocID025953 Rev 1 UM1735 Hardware layout 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 DocID025953 Rev 1 9/32 31 Hardware layout UM1735 Figure 4. Bottom layout 6% UHVHUYHG 6% 670B567 6% GHIDXOW 6% 1567 6% 0&2 6% 5;7; 6% 6:2 6% ;FU\VWDO 6% 9H[W 6% /(' 6% %86(5 6% %5(6(7 6% / 069 10/32 DocID025953 Rev 1 UM1735 4.1 Hardware layout 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 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. The changes versus ST-LINK/V2 version are listed below. • • New features supported on ST-LINK/V2-1: – USB software re-enumeration – Virtual com port interface on USB – 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 the embedded ST-LINK/V2-1 depending on the jumper states (see Table 2): • Program/debug the MCU on board (Section 4.1.3). • Program/debug an MCU in an external application board using a cable connected to SWD connector CN3 (Section 4.1.4). 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 The ST-LINK/V2-1 requires a dedicated USB driver, which can be found on www.st.com for Windows Vista, 7 and 8. On Windows XP the ST-LINK/V2-1 driver requires WinUsb to be installed before using the ST-LINK/V2-1 (either available from Microsoft website or included in the USB driver for ST-LINK/V2 for XP). 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: Prefer using the “USB Composite Device” handle for a full recovery. DocID025953 Rev 1 11/32 31 Hardware layout UM1735 Figure 5. Updating the list of drivers in device manager 4.1.2 ST-LINK/V2-1 firmware upgrade The 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. 12/32 DocID025953 Rev 1 UM1735 4.1.3 Hardware layout 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 DocID025953 Rev 1 13/32 31 Hardware layout 4.1.4 UM1735 Using ST-LINK/V2-1 to program/debug an external STM32 application It is very easy to use the ST-LINK/V2-1 to program the STM32 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 14/32 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 1 UM1735 Hardware layout Figure 7. ST-LINK 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: • 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 1 15/32 31 Hardware layout UM1735 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 The 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 USB connector CN1 (U5V or VBUS). Note that only the ST-LINK 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: 16/32 DocID025953 Rev 1 UM1735 4.3 4.4 4.5 Hardware layout 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 the 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: • Reference LE-CWC12100-D, 1W, Everluck • VF = 2.8V Typical • IF = 350mA Max DocID025953 Rev 1 17/32 31 Hardware layout UM1735 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. 18/32 • 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 1 UM1735 4.8 Hardware layout 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 MCU to use the Virtual Com Port function. By default the USART2 communication between the target STM32F334C8T6 and ST-LINK MCU is not enabled. To use the Virtual Com Port function with: 4.10 • The onboard 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 (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 onboard 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: – SB13 closed – SB12 open – R30 removed Please refer to the AN2867 for oscillator design guide for STM32 microcontrollers. DocID025953 Rev 1 19/32 31 Hardware layout 4.11 UM1735 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) 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 module is powered OFF ST-LINK 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. SB14, 16 (RX, TX) SB18 (Vext) SB22 (L3) SB1 (ST-LINK PWR) SB19 (LED) SB11 (NRST) SB17 (SWO) SB6 (STM_RST) SB12 (MCO) Reserved, do not modify 1. Default value is in bold. 20/32 DocID025953 Rev 1 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 DocID025953 Rev 1 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 - NRST - SYSTEM BOOT0 - 44 - BOOT0 NRST - LQFP48 pin num. Board funtion - - Main function MCU pin - 4.12 Hardware layout 21/32 31 22/32 PA15 38 PB0 18 PB1 19 PB2 20 - PB3 39 SWO PB4 40 PB5 41 PB6 42 DocID025953 Rev 1 - - - 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 Hardware layout UM1735 Table 5. Extension connectors (continued) Board funtion DocID025953 Rev 1 - - - - - - - - - - - - - - - - - - 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 - - - UM1735 Hardware layout Table 5. Extension connectors (continued) Board funtion 23/32 31 Hardware layout UM1735 Table 5. Extension connectors (continued) 24/32 DocID025953 Rev 1 SBx(1) - - - - - - - - - - 25 1. Signals available depending on SBx value. Refer to Table 4: Solder bridges or schematics in Section 6. - CN7 - 25 - 10 - - CN5 - 1 - 1 - - P2 2 - - - P1 2 - VDD VDD VDD VDD 5V_OUT Power Supply 5 - - - - - - - - - - - 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 UM1735 5 Mechanical drawing Mechanical drawing Figure 8. STM32F334 discovery board mechanical drawing DocID025953 Rev 1 25/32 31 26/32 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 1 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 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 BOOT0 B_USER 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 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 MCO SWCLK SWDIO SWO U_ST_LINK ST_LINK_V2.SCHDOC Electrical schematics UM1735 Electrical schematics Figure 9. STM32F334 discovery C13 8MHz 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 R22 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 20pF X1 20pF +3V3_ST_LINK1 2 C14 R25 10K T_JTCK T_JTDO T_JTDI T_NRST R24 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 T_SWO 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 SB11 PA14 PA13 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 T_NRST 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 Not Fitted +3V3_ST_LINK VDD_2 VSS_2 JTMS/SWDIO PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 +3V3_ST_LINK R23 JP1 DEFAULT TCK/SWCLK TMS/SWDIO 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 Board Ident: PC13=0 3 2 4 4K7 3 2 GND 2 1 2 5 6 RESERVED GND DocID025953 Rev 1 7 UM1735 Electrical schematics Figure 10. ST-LINK/V2-1 (SWD only) 27/32 31 PF1 PF0 MCO SB15 SB13 MCO DocID025953 Rev 1 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 28/32 13 14 15 16 17 18 19 20 21 22 23 24 SBx Must be very close to the STM32F334 Electrical schematics UM1735 Figure 11. STM32F334C8T6 MCU 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 BK_Sense SB19 C27 1uF LD7 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 Sheet: 4 of 5 Revision: B-01 R42 [NA] VDD R43 10K 3 2 4 1 DocID025953 Rev 1 3 2 SW-PUSH-CMS_BLUE B1 SW-PUSH-CMS_BLACK B2 LED BUCK converter UM1735 Electrical schematics Figure 12. LED buck converter 29/32 31 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 N1_Drive T14 NDS7002A 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 3 SMAJ15A D6 T6 BC817 R48 T8 BC807 1 1 T10 NDS7002A R53 1K 3 2 2 3 2 1 1 R51 27K 0.1% 3 2 3 2 nc 2 S D D G G G G D D S DocID025953 Rev 1 S 3 nc 2 2 1 1 3 2 2 3 S D 3 S D 2 3 30/32 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 Electrical schematics UM1735 Figure 13. Buck/boost converter UM1735 7 Revision history Revision history Table 6. Document revision history Date Revision 19-June-2014 1 Changes initial release DocID025953 Rev 1 31/32 31 UM1735 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 32/32 DocID025953 Rev 1