February 2016 DocID025953 Rev 2 1/33
UM1735User 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.
www.st.com
Contents UM1735
2/33 DocID025953 Rev 2
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 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
4.2 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
DocID025953 Rev 2 3/33
UM1735 Contents
3
7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
List of tables UM1735
4/33 DocID025953 Rev 2
List of tables
Table 1. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Table 2. Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Table 3. Debug connector CN2 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Table 4. Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Table 5. Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Table 6. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
DocID025953 Rev 2 5/33
UM1735 List of figures
5
List of figures
Figure 1. STM32F334 discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Figure 2. STM32F334 discovery board hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Figure 3. Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Figure 4. Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Figure 5. Updating the list of drivers in device manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Figure 6. STM32F334 discovery board connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Figure 7. ST-LINK/V2-1 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Figure 8. STM32F334 discovery board mechanical drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Figure 9. STM32F334 discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Figure 10. ST-LINK/V2-1 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Figure 11. STM32F334C8T6 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Figure 12. LED buck converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Figure 13. Buck/boost converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Conventions UM1735
6/33 DocID025953 Rev 2
1 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 2 7/33
UM1735 Ordering and product information
32
2 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:
• 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
2.2 Order code
To order the Discovery kit for STM32F334 line microcontrollers, use the order code: STM32F3348-DISCO.
Features UM1735
8/33 DocID025953 Rev 2
3 Features
The STM32F334 discovery board offers the following features:
• 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 9/33
UM1735 Hardware layout
32
4 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
Hardware layout UM1735
12/33 DocID025953 Rev 2
4.1 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 in-circuit debugger/programmer for STM8 and STM32) that describes in detail all the ST-LINK/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)
4.1.1 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: Prefer using the “USB Composite Device” handle for a full recovery.
Table 2. Jumper states
Jumper state Description
Both CN3 jumpers ON ST-LINK/V2-1 functions enabled for on board programming (default)
Both CN3 jumpers OFFST-LINK/V2-1 functions enabled for application through external CN2 connector (SWD supported)
DocID025953 Rev 2 13/33
UM1735 Hardware layout
32
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.
Hardware layout UM1735
14/33 DocID025953 Rev 2
4.1.4 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 2 15/33
UM1735 Hardware layout
32
4.1.5 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
Hardware layout UM1735
16/33 DocID025953 Rev 2
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:
• 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 17/33
UM1735 Hardware layout
32
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:
Hardware layout UM1735
18/33 DocID025953 Rev 2
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).
4.3 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.
4.4 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.
4.5 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 2 19/33
UM1735 Hardware layout
32
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 High-Resolution 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).
Hardware layout UM1735
20/33 DocID025953 Rev 2
4.8 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:
• 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.
4.10 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:
– SB13 closed
– SB12 open
– R30 removed
Note: Please refer to the AN2867 for oscillator design guide for STM32 microcontrollers.
DocID025953 Rev 2 21/33
UM1735 Hardware layout
32
4.11 Solder bridges
Table 4. Solder bridges
Bridge State(1) Description
SB13, 15 (X2 crystal)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
SB3,5,8,10 (default) ON Reserved, do not modify
SB2,4,7,9 (reserved) OFF Reserved, do not modify
SB20 (B2-RESET)ON B2 Push Button is connected to NRST of STM32F334C8T6
OFF B2 Push Button is not connected to NRST of STM32F334C8T6
SB21 (B1-USER)ON B1 Push Button is connected to PA0
OFF B1 Push Button is not connected to PA0
SB14, 16 (VCP RX, TX)(2)
OFF PA2, PA3 of STM32F103CBT6 are not connected to PB4, PB3 of STM32F334C8T6
ONPA2, PA3 of STM32F103CBT6 are connected to PB4, PB3 of STM32F334C8T6, then SW0 cannot be used and SB17 must be OFF
SB18 (Vext)ON LED Buck is powered from 5V_OUT
OFF LED Buck is powered from CN4
SB22 (L3)ON Default position.
OFF Use CN6 for Current measurement.
SB1 (ST-LINK/V2-1 PWR)
ON ST-LINK/V2-1 module is powered
OFF ST-LINK/V2-1 module is not powered
SB19 (LED)ON Default position.
OFF Use it connecting 2 wires for Current measurement.
SB11 (NRST)ON
T_NRST signal from connector CN2 and STM32F103CBT6, is connected to NRST of STM32F334C8T6
OFF T_NRST signal is not connected
SB17 (SWO)
OFF SWO signal is not connected
ONSWO signal of connector CN3 is connected to PB3, then USART_TX cannot be used and SB16 must be OFF
SB6 (STM_RST)OFF No incidence on NRST signal of STM32F103CBT6
ON NRST signal of STM32F103CBT6 is connected to GND
SB12 (MCO) ONMCO 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.
Hardware layout UM1735
22/33 DocID025953 Rev 2
4.12 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
MCU pin Board funtion
Mai
n f
un
ctio
n
LQ
FP
48 p
in n
um
.
SY
ST
EM
VC
P
Pu
shB
utt
on
s
LE
D
Bu
ck/b
oo
st
Bu
ck L
ED
Fre
e I/
O
Po
wer
Su
pp
ly
P1
P2
CN
5
CN
7
SB
x(1
)
- - - - - - Vin - - - - - 2 - -
- - - - - -
Vo
ut - - - - - - 2 -
BOOT0 44
BO
OT
0
- - - - - - - - 6 - - -
NRST 7
NR
ST
-
RE
SE
T
- - - - - 9 - - -
SB
11, 2
0
PA0 10 - -
US
ER
- - - - - 11 - - -
SB
21
PA1 11 - - - -
Vin
_Sen
se
- - - 12 - - - -PA2 12 - - - - - - - - 13 - - - -
PA3 13 - - - -
Vou
t_S
ense
- - - 14 - - - -
PA4 14 - - - - - -
PA
4 - 15 - - - -
PA5 15 - - - - - -
PA
5 - 16 - - - -
PA6 16 - - - - - -
PA
6 - 17 - - - -
PA7 17 - - - - - -
PA
7 - 18 - - - -
PA8 29 - - - -
P1_
Driv
e
- - - - 19 - - -
DocID025953 Rev 2 23/33
UM1735 Hardware layout
32
PA9 30 - - - -
N1_
Driv
e
- - - - 18 - - -
PA10 31 - - - -
N2_
Driv
e
- - - - 17 - - -
PA11 32 - - - -
P2
_Driv
e
- - - - 16 - - -
PA12 33 - - - - - -
PA
12 - - 15 - - -
PA13 34
SW
DIO
- - - - - - - - 14 - - -
PA14 37
SW
CLK
- - - - - - - - 13 - - -
PA15 38 - - - - - -
PA
15 - - 12 - - -PB0 18 - - - - -
BK
_Sen
se
- - 19 - - - -
PB1 19 - - - - - -
PB
1
- 20 - - - -
PB2 20 - - - - - -
PB
2 - 21 - - - -
PB3 39
SW
O
US
AR
T_T
X
- - - - - - - 11 - -
SB
17,
16
PB4 40 -
US
AR
T_R
X
- - - - - - - 10 - -
SB
14
PB5 41 - - - - - -
PB
5
- - 9 - - -
PB6 42 - - -
RE
D - - - - - 8 - - -
Table 5. Extension connectors (continued)
MCU pin Board funtionM
ain
fu
nct
ion
LQ
FP
48 p
in n
um
.
SY
ST
EM
VC
P
Pu
shB
utt
on
s
LE
D
Bu
ck/b
oo
st
Bu
ck
LE
D
Fre
e I/O
Po
wer
Su
pp
ly
P1
P2
CN
5
CN
7
SB
x(1)
Hardware layout UM1735
24/33 DocID025953 Rev 2
PB7 43 - - -
BLU
E
- - - - - 7 - - -
PB8 45 - - -
OR
AN
GE
- - - - - 4 - - -
PB9 46 - - -
GR
EE
N
- - - - - 3 - - -
PB10 21 - - - - - -
PB
10 - 22 - - - -
PB11 22 - - - - - -
PB
11 - 23 - - - -
PB12 25 - - - - -
BK
_Driv
e
- - - 23 - - -
PB13 26 - - - - - -
PB
13 - - 22 - - -
PB14 27 - - - - RC - - - - 21 - - -
PB15 28 - - - - - -
PB
15
- - 20 - - -
PC13 2 - - - - - -
PC
13 - 4 - - - -
PC14 3 - - - - - -
PC
14 - 5 - - - -
PC15 4 - - - - - -
PC
15 - 6 - - - -
PF0 5
OS
C_I
N
- - - - - - - 7 - - -
SB
12, 1
3
PF1 6
OS
C_
OU
T
- - - - - - - 8 - - -
SB
15
- - - - - - - - - 3V - 1 - - -
- - - - - - - - -
5V_I
N
1 - - - -
Table 5. Extension connectors (continued)
MCU pin Board funtionM
ain
fu
nct
ion
LQ
FP
48 p
in n
um
.
SY
ST
EM
VC
P
Pu
shB
utt
on
s
LE
D
Bu
ck/b
oo
st
Bu
ck
LE
D
Fre
e I/O
Po
wer
Su
pp
ly
P1
P2
CN
5
CN
7
SB
x(1)
DocID025953 Rev 2 25/33
UM1735 Hardware layout
32
- - - - - - - - -
5V_O
UT
3 - - - -
VDD 24 - - - - - - -
VD
D - 5 - - -
VDD 36 - - - - - - -
VD
D - - - - -
VDD 48 - - - - - - -
VD
D - - - - -
VBAT 1 - - - - - - -
VD
D - - - - -
VDDA 9 - - - - - - - - - - - - -
GND 23 - - - - - - -
GN
D2 2 1 1 -
GND 35 - - - - - - -
GN
D
10 - - - -
GND 47 - - - - - - -
GN
D
25 25 - - -
VSSA 8 - - - - - - -
GN
D
- - - - -1. Signals available depending on SBx value. Refer to Table 4: Solder bridges or schematics in Section 6.
Table 5. Extension connectors (continued)
MCU pin Board funtionM
ain
fu
nct
ion
LQ
FP
48 p
in n
um
.
SY
ST
EM
VC
P
Pu
shB
utt
on
s
LE
D
Bu
ck/b
oo
st
Bu
ck
LE
D
Fre
e I/O
Po
wer
Su
pp
ly
P1
P2
CN
5
CN
7
SB
x(1)
Mechanical drawing UM1735
26/33 DocID025953 Rev 2
5 Mechanical drawing
Figure 8. STM32F334 discovery board mechanical drawing
DocID025953 Rev 2 27/33
UM1735 Electrical schematics
32
6 Electrical schematics
Figure 9. STM32F334 discovery
15
STM32F3
34 DISCOVER
Y
MB11
42B-01
30-M
ay-14
Title
:
Size:
Reference:
Date:
Sheet:
of
A4
Revision:
STM32F3
348-DISCO
Project:
NRST
MCO
SWDIO
SWCL
K
SWO
USA
RT_
RX
USA
RT_
TX
U_S
T_LINK
ST_L
INK_V
2.SC
HDOC
SWDIO
SWCL
KPA
14PA
13
MCO
NRST
T_NRST
PB8
BOOT0
NRST
PC15
PC14
PF1
PF0
MCO
PC13
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PA10
PA11
PA12
PA13
PA14
PA15
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PB9
PB10
PB11
PB12
PB13
PB14
PB15
B_U
SER
LD_D
LD_U
LD_L
LD_R RC
Vout_Sense
P2_D
rive
BK_S
ense
Vin_S
ense
BK_D
rive
N1_Driv
e
P1_D
rive
N2_Driv
e
SWCL
KSW
DIO
SWO
USA
RT_
TXUSA
RT_
RX
U_S
TM32Fx
STM32Fx
.SchDoc
MCO
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PA10
PA11
PA12
PA13
PA14
PA15
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PB10
PB11
PB12
PB13
PB14
PB15
PC13
PC14
PC15
PF0
PF1
BOOT0
NRST
Rev A-01 --> PC
B label M
B11
42 A-01
Rev B-01 --> PC
B label M
B11
42 B-01,
M
OSF
ETs replaced by new
family
, several Resistors and
Capacito
rs values.
USA
RT_
TXUSA
RT_
RX
B_U
SER
BK_D
rive
BK_S
ense
LD_D
LD_U
LD_L
LD_R
VDD
3V_O
UT
GND
GND
GND
N1_Driv
eN2_Driv
eVout_Sense
P1_D
rive
P2_D
rive
Vin_S
enseRC
U_B
UCK_B
OOST
BUCK_B
OOST
.SchDoc
NRST
B_U
SER
BK_S
ense
BK_D
rive
LD_D
LD_U
LD_L
LD_R
U_B
UCK_L
EDBUCK_L
ED.SchDoc
SWO
PA0
PA1
PA2
NRST
PC13
PC14
PC15
PF1
PF0
PA4
PA5
PA6
PA7
PB10
PB11
PB1
PB2
PB0
PA3
PB5
PB6
PB7
PB8
PB9
PA15
PB3
PA14
PB4
BOOT0
PA11
PA12
PA9
PA10
PB12
PB13
PB14
PB15
PA13
PA8
B_U
SER
NRST
Vout_Sense
Vin_S
ense
LD_D
LD_U
LD_L
LD_R
RC
P2_D
rive
N1_Driv
eN2_Driv
eP1
_Driv
e
Vout_Sense
Vin_S
ense
RC
P2_D
rive
N1_Driv
eN2_Driv
eP1
_Driv
e
BK_D
rive
BK_S
ense
SWDIO
SWCL
K
PB3
PB4
PB3
SWO
USA
RT_
TXUSA
RT_
RX
5V_IN
5V_O
UT
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 Header 2
5
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
P1 Header 2
5NC
NC
Electrical schematics UM1735
28/33 DocID025953 Rev 2
Figure 10. ST-LINK/V2-1 (SWD only)
25
ST-LIN
K/V2-1 (SWD only)
MB11
42B-01
28-M
ay-14
Title
:
Size:
Reference:
Date:
Sheet:
of
A4
Revision:
STM32F3
348-DISCO
Project:
USB
_DM
USB_D
P
STM
_RST
T_JTCKT_
JTCK
T_JTDOT_JTDI
T_JT
MS
STM
_JTM
S
STM
_JTC
K
OSC_IN
OSC_O
UT
T_NRST
AIN_1
+3V3_ST
_LIN
K
+3V3_ST
_LIN
K
SWIM_IN
SWIM_INSWIM
SWIM_RST_INSWIM_RST
USB
_DM
USB_D
P
USB VCC
1
D-
2
D+
3
ID4
GND
5
SHEL
L6
CN1
USB
-MIN
I-typeB
COM
ST-LIN
K Po
wer
+3V3_ST
_LIN
K
Jumper
s ON --> D
ISCOVERY S
elec
ted
Jumper
s OFF
-->
ST-L
INK S
elec
ted
Boa
rd Id
ent: PC13
=0
T_JT
CK
T_JT
MS
SWD
+3V3_ST
_LIN
K
1234
CN3
SB3
SB2
SB5
SB4
SB8
SB7
SB10
SB9
STM
_JTM
S
STM
_JTC
KSW
CLK
SWDIO
SWD
RESERVED
DEFAULT
+3V3_ST
_LIN
K
T_SW
DIO
_IN
T_SW
OLE
D_S
TLINK
LED_S
TLINK
+3V3_ST
_LIN
K
Red
_Green
21
34
LD2
LD_B
ICOLO
R_C
MS
SWDIO
SWCL
KTC
K/SWCL
KTM
S/SW
DIO
VDD
3V
Not Fitted
MCO
MCO
T_JRST
1 2 3 4 5 6
CN2
Header 6
AIN_1
T_NRST
T_SW
O
NRST
SWO
SB11
SB17
T_NRST
T_SW
O
SB6
RC M
ust b
e very close to
STM
32F103 pin 29
51
2
GND
3
4
BYPA
SSIN
H
Vin
Vou
t
U2
LD39
85M33
R
D1
BAT6
0JFILM
Idd
TX RX
SB14
SB16
USA
RT_
RX
USA
RT_
TX
Close to
JP
Not Fitted
STLINK_TX
STLINK_R
X
Not Fitted
LD1
LED, red
C12
100n
F
C6
100n
F
C16
100n
F
C10
100n
F
C3
1uF
C11
1uF
C8
100n
FC4
100n
FC9
10nF
C13
20pF
C14
20pF
C15
100n
FC40
20pF
12
X1
8MHz
+3V3_ST
_LIN
K
R16
4K7
R17
2K7
USB
_REN
UMn
PWR_EXT
PWR_E
Nn
+3V3_ST
_LIN
K
JP1
3
1
2
T190
13-SOT2
3
R13
10K
R15
36K
U5V
+3V3_ST
_LIN
K
R14
100
USB
_REN
UMn
U5V
PA14
PA13
R65
100
R18
100
R6
1K
R23
10K
R9
1K5
R10
0R8
100K
R11
0
R27
4K7
R28
4K7
R26
100K
R24
10K
R22
100K
R25
[NA]
R3
10K
R4
22R1
[NA]
R12
22R19
22R21
22
R2
0
R7
100
R5
100
PWR_E
Nn
TP2
TP1
U5V
3VEN
1
GND 2
VO
4
NC
5
GND 7
VI
6PG
3U1
LD39050P
U33R
R20
10K
C1
1uF
C2
100n
FC7
1uF
C5
100n
F
+3V3_ST
_LIN
K
5 Vo
lts Outpu
t3 Vo
lts Outpu
t
5 Vo
lts From Externa
l
SB1
5V_IN
5V_O
UT
5V_IN
5 Vo
lts From USB
ST-LINK
3V_O
UT
JP4
JP3
JP2
+3V3_ST
_LIN
K
+3V3_ST
_LIN
K
D2
STPS
1L30A
D3
STPS
1L30A
3
4
5
G
SD
6
21
T2ST
T7P2
UH7
VBAT
1
PA7 17
PC13
2
PA12
33PC
143
PB0 18
PC15
4JTMS/SW
DIO
34
OSC
IN5
PB1 19
OSC
OUT
6
VSS
_235
NRST
7
PB2/BOOT1 20
VSS
A8
VDD_2
36
VDDA
9
PB10 21
PA0
10
JTCK/SWCLK37
PA1
11
PB11 22
PA2
12
PA15/JTDI38
PA3 13
VSS_1 23
PA4 14
PB3/JTDO39
PA5 15
VDD_1 24
PA6 16
PB4/JNTRST40
PB12
25
PB541
PB13
26
PB642
PB14
27
PB743
PB15
28
BOOT044
PA8
29
PB845
PA9
30
PB946
PA10
31
VSS_347
PA11
32
VDD_348
U3
STM32F1
03CBT6
Not Fitted
DocID025953 Rev 2 29/33
UM1735 Electrical schematics
32
Figure 11. STM32F334C8T6 MCU
35
STM32F3
348C
T6 M
CU
MB11
42B-01
16-A
pr-14
Title
:
Size:
Reference:
Date:
Sheet:
of
A4
Revision:
STM32F3
348-DISCO
Project:
PB5
PB6
PB7
PA4 PA
5 PA6 PA
7
PA11
PA12
PA9
PA10
PB12
PB13
PB14
PB15
PB10PB
11
PB8
PA0
PB9
PA1
PB1PB
2
PA15
PB3
PB0
PA3
PA13
PA14
PB4
PA2
PA8
BOOT0
MCO
PF1-OSC
_OUT
PA0
NRST
PB0
PC15
PC14
BOOT0
PF1
PF0
Must b
e close to th
e Crysta
l
NRST
MCO
12X2
8MHz
PC13
PF0-OSC
_IN
PA1
PA2
PA3 PA
4 PA5 PA
6 PA7
PA8
PA9
PA10
PA11
PA12
PA13
PA14
PA15
PB1PB
2
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PB10PB
11
PB12
PB13
PB14
PB15
PC13
Not Fitted
R31
510
PA0
B_U
SER
SBx Must b
e very close to
the ST
M32F334
RC
Vout_Sense
P2_D
rive
BK_S
ense
Vin_S
ense
BK_D
rive
B_U
SER
PB6
LD_D
LD_D
LD_U
LD_L
LD_R
LD_U
LD_L
LD_R
VDD
All this block must b
e very close to
the ST
M32F334
VDDA
VBAT
1
PA7 17
PC13
2
PA12
33PC
143
PB0 18
PC15
4PA
1334
PF0/OSC
IN5
PB1 19
PF1/OSC
OUT
6
VSS
_235
NRST
7
PB2 20
VSS
A8
VDD_2
36
VDDA
9
PB10 21
PA0
10
PA1437
PA1
11
PB11 22
PA2
12
PA1538
PA3 13
VSS_1 23
PA4 14
PB339
PA5 15
VDD_1 24
PA6 16
PB440
PB12
25
PB541
PB13
26
PB642
PB14
27
PB743
PB15
28
BOOT044
PA8
29
PB845
PA9
30
PB946
PA10
31
VSS_347
PA11
32
VDD_348
U4
STM32F3
34C8T
6
PC14
PC15
PF1-OSC
_OUT
PF0-OSC
_IN
VDD
VDD
VDD
BOOT0
BK_D
rive
BK_S
ense
PB0
PB12
Vout_Sense
Vin_S
ense
PA1
PA3
RC
P2_D
rive
PA11
PB14
N1_Driv
eN2_Driv
ePA
10PA
9P1
_Driv
ePA
8N1_Driv
eP1
_Driv
e
N2_Driv
e
SWCL
KSW
DIO
SWDIO
SWCL
KPA
14PA
13
C25
100n
FC24
100n
FC17
100n
F
L1 Ferrite
C22
100n
FUSA
RT_
TXUSA
RT_
RX
PB3
PB4
VDDA
PB7
PB8
PB9
VDD
USA
RT_
TXUSA
RT_
RX
SWO
SWO
PB3
C21
20pF
C20
20pF
R29
220
R30
0
SB12
SB13
SB15
C18
1uF
C19
100n
F
Electrical schematics UM1735
30/33 DocID025953 Rev 2
Figure 12. LED buck converter
45
LED BUCK con
verter MB11
42B-01
14-M
ay-14
Title
:
Size:
Reference:
Date:
Sheet:
of
A4
Revision:
STM32F3
348-DISCO
Project:
NRST
NRST R
ESET
Button
VDD R42
[NA]
VDD
B_U
SERU
SER &
WAKE-
UP Button
PA0
BK_S
ense
BK_D
rive
R33
10K
D4
STPS
1L40A
R37
33R
LED B
UCK converter
VEXT
PB12
PB0
With
LPB
1
LEDs
LD_D
LD_D
LD_U
LD_L
LD_R
LD_U
LD_L
LD_R
R36
330
R38
1KR35
1K R40
510
U D
LR
LD6
LED, b
lue
LD3
LED, red
LD5
LED, green
LD4
LED, orange
White
LPB
LPB1
LPB_1
0_10
1 234
B2SW-PUSH-CMS_BLACK
1 234
B1SW-PUSH-CMS_BLUE
SB20
SB21
B_U
SER
C30
100n
F
R43
10K
R41
10K
C31
100n
F
C29
100n
F
C28
47uF
C26
1nFC27
1uF
R34
10
5V_O
UT
CN4
SB18
SB19
P3
Wire
d on
Solder S
ide
P4
R39
1
L2 82μH
10%
3
45
G
SD
6 2 1
T3 STT5
N2V
H5
LD7
LED LE-CWC12100_[D
]_1W
DocID025953 Rev 2 31/33
UM1735 Electrical schematics
32
Figure 13. Buck/boost converter
55
BUCK / BO
OST
CONVER
TER
MB11
42B-01
30-M
ay-14
Title
:
Size:
Reference:
Date:
Sheet:
of
A4
Revision:
STM32F3
348-DISCO
Project:
N1_Driv
e
R53
1KR54
1K
R56
10R
R62
10K
R57
10R
R63
10K
N2_Driv
e
R55
270R
R58
270R
P1_D
rive
P2_D
rive
Vout
Vin
Vin_S
ense
CN6
R48
47R
R50
47R
12
D6
SMAJ15A
12
D8
SMAJ15A
PA8
PA9
PA10
PA11
PA1
RC
GND
PB14
Vout_Sense
PA3
R45
6.8K
0.1%
R51
27K 0.1%
BUCK/BOOST C
onverter
CN5
CN7
TP4
TP3
C36
100n
F
C33
100n
F
C34
100n
F
C37
100n
FC35
6.8nF
C38
47uF
SB22
C39
47uF
L3 82μH
10%
2
1
3 T6 BC817
2
1
3
T7 BC817
2
1
3
T9 BC807
2
1
3
T8BC807
R47
10R
1
3
G
SD 2
T10
NDS7
002A
R61
270R
R49
10R
1
3
G
SD
2
T13
NDS7
002A
R59
10K
R60
10K
1
3
G
SD
2
T15
NDS7
002A
1
3
G
SD 2
T14
NDS7
002A
R64
270R
R44
13
4 5
G
S D
621
T4ST
T4P3
LLH6
3
45
G
SD
6 2 1
T12
STT5
N2V
H5
3
45
G
SD
6 2 1T1
1 STT5
N2V
H5
3
4 5
G
S D
621T5
STT4
P3LL
H6
Not Fitted
13
nc 2
D5
BAT5
4FILM
13 nc 2
D7
BAT5
4FILM
C23
10nF
_X7R
_10%
_080
5
R32
15K_1
%_0
805
C32
22nF
_X7R
_10%
_060
3
R46
3K3_
0.1%
_080
5
R52
13K3_
0.1%
_080
5
Not Fitted
RC Low P
ass
Filte
rNot Fitted
Revision history UM1735
32/33 DocID025953 Rev 2
7 Revision history
Table 6. Document revision history
Date Revision Changes
19-Jun-2014 1 Initial release
01-Feb-2016 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
DocID025953 Rev 2 33/33
UM1735
33
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