搜档网
当前位置:搜档网 › STM32F4Discovery manual

STM32F4Discovery manual

February 2016DocID022256 Rev 51/39

UM1472User manual

Discovery kit with STM32F407VG MCU

Introduction

The STM32F4DISCOVERY Discovery kit allows users to easily develop applications with the STM32F407 high performance microcontroller with ARM ? Cortex ?-M4 32-bit core. It includes everything required either for beginners or for experienced users to get quickly started.

Based on the STM32F407VGT6, it includes an ST-LINK/V2 or ST-LINK/V2-A embedded debug tool, two ST MEMS digital accelerometers, a digital microphone, one audio DAC with integrated class D speaker driver, LEDs and push buttons and an USB OTG micro-AB connector. To expand the functionality of the STM32F4DISCOVERY Discovery kit with the Ethernet connectivity, LCD display and more, visit the https://www.sodocs.net/doc/788973548.html,/stm32f4dis-expansion webpage. The STM32F4DISCOVERY Discovery kit comes with the STM32 comprehensive software HAL library, together with various packaged software examples, as well as a direct access to the ARM ? mbed ? on-line resources at https://www.sodocs.net/doc/788973548.html,.

Figure 1. STM32F4DISCOVERY

1.

Picture not contractual

https://www.sodocs.net/doc/788973548.html,

Contents UM1472

Contents

1Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

5Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

5.1Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

5.2System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

5.3Development toolchains supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

6Hardware and layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

6.1Embedded ST-LINK/V2 (or V2-A) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11

6.1.1Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

6.1.2ST-LINK/V2 (or V2-A) firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . 13

6.1.3ST-LINK/V2-A VCP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

6.1.4Using ST-LINK/V2 (or V2-A) to program/debug the STM32F4 on board 14

6.1.5Using ST-LINK/V2 (or V2-A) to program/debug an external STM32

application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

6.2Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

6.3LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

6.4Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

6.5On board audio capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

6.6USB OTG supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

6.7Motion sensor (ST MEMS LIS302DL or LIS3DSH) . . . . . . . . . . . . . . . . . 17

6.8JP1 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

6.9OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

6.9.1OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

6.9.2OSC 32 KHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

6.10Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

6.11Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 2/39DocID022256 Rev 5

UM1472Contents 7Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 8Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 9Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

DocID022256 Rev 53/39

List of tables UM1472 List of tables

Table 1.List of the order codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Table 2.ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Table 3.Jumper states. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Table 4.Debug connector CN2 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Table 5.Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Table 6.STM32 pin description versus board functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Table 7.Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4/39DocID022256 Rev 5

UM1472List of figures List of figures

Figure 1.STM32F4DISCOVERY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Figure 2.Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 3.Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 4.Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 5.Updating the list of drivers in Device Manager. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 6.ST-LINK VCP connection to USART2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 7.STM32F4DISCOVERY connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 8.ST-LINK connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Figure 9.STM32F407G-DISC1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Figure 10.ST-LINK/V2 (SWD only). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Figure 11.MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Figure 12.Audio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Figure https://www.sodocs.net/doc/788973548.html,B_OTG_FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Figure 14.Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Figure 15.STM32F4DISCOVERY mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

DocID022256 Rev 55/39

Features UM1472

6/39DocID022256 Rev 5

1 Features

The STM32F4DISCOVERY offers the following features:

?STM32F407VGT6 microcontroller featuring 32-bit ARM Cortex ? -M4 with FPU core, 1-Mbyte Flash memory, 192-Kbyte RAM in an LQFP100 package

?On-board ST-LINK/V2 on STM32F4DISCOVERY or ST-LINK/V2-A on STM32F407G-DISC1

?ARM ? mbed ? -enabled (https://www.sodocs.net/doc/788973548.html,) with ST-LINK/V2-A only

?USB ST-LINK with re-enumeration capability and three different interfaces:

–virtual com port (with ST-LINK/V2-A only)–

mass storage (with ST-LINK/V2-A only)

–debug port ?Board power supply:

–Through USB bus –External power sources:

3 V and 5 V

?LIS302DL or LIS3DSH ST MEMS 3-axis accelerometer

?MP45DT02 ST MEMS audio sensor omni-directional digital microphone ?CS43L22 audio DAC with integrated class D speaker driver ?

Eight LEDs:

–LD1 (red/green) for USB communication –LD2 (red) for 3.3 V power on

–Four user LEDs, LD3 (orange), LD4 (green), LD5 (red) and LD6 (blue)– 2 USB OTG LEDs LD7 (green) VBUS and LD8 (red) over-current ?Two push buttons (user and reset)?USB OTG FS with micro-AB connector

?

Extension header for all LQFP100 I/Os for quick connection to prototyping board and easy probing

?Comprehensive free software including a variety of examples, part of STM32CubeF4 package or STSW-STM32068 for legacy standard libraries usage

DocID022256 Rev 57/39

UM1472Product marking

2 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” of a STM32 datasheet at https://www.sodocs.net/doc/788973548.html, ).

?

next to the evaluation tool ordering part number, as a label stuck or a silk-screen printed on the board.

3 Ordering information

To order the Discovery kit for the STM32F407 line of microcontrollers, refer to Table 1.

4 Conventions

Table 2 provides the definition of some conventions used in the present document.

Table 1. List of the order codes

Order code ST-LINK version STM32F4DISCOVERY ST-LINK/V2

STM32F407G-DISC1

ST-LINK/V2-A (mbed-enabled)

Table 2. ON/OFF conventions

Convention Definition

Jumper JP1 ON Jumper fitted Jumper JP1 OFF Jumper not fitted

Solder bridge SBx ON

SBx connections closed by solder

Solder bridge SBx OFF SBx connections left open

Quick start UM1472

8/39DocID022256 Rev 5

5 Quick start

The STM32F4DISCOVERY is a low-cost and easy-to-use development kit to quickly

evaluate and start a development with an STM32F4 high-performance microcontroller.Before installing and using the product, accept the Evaluation Product License Agreement from the https://www.sodocs.net/doc/788973548.html,/stm32f4-discovery webpage.

For more information on the STM32F4DISCOVERY and for demonstration software, visit the https://www.sodocs.net/doc/788973548.html,/stm32f4-discovery webpage.

5.1 Getting started

Follow the sequence below to configure the STM32F4DISCOVERY board and launch the

DISCOVER application:1.Check jumper position on the board, JP1 on, CN3 on (DISCOVERY selected).2. Connect the STM32F4DISCOVERY board to a PC with a USB cable ‘type A to mini-B’ through USB connector CN1 to power the board. Red LED LD2 (PWR) then lights up.3. Four LEDs between B1 and B2 buttons are blinking.

4.

Press user button B1 to enable the ST MEMS sensor, move the board and observe the four LEDs blinking according to the motion direction and speed. (If a second USB cable ‘type A to micro-B’ is connected between PC and CN5 connector, then the board is recognized as standard mouse and its motion will also control the PC cursor).5. To study or modify the DISCOVER project related to this demo, visit the https://www.sodocs.net/doc/788973548.html,/stm32f4-discovery webpage and follow the tutorial.

6. Discover the STM32F4 features, download and execute programs proposed in the list of projects.

7.

Develop the application using available examples.

5.2 System requirements

?Windows ? OS (XP , 7, 8)?

USB type A to Mini-B cable.

5.3 Development toolchains supported

?IAR ? EWARM (IAR Embedded Workbench ?)?Keil ? MDK-ARM ?

?GCC-based IDEs (free AC6: SW4STM32, Atollic ? TrueSTUDIO ?,...)?

ARM ? mbed ? on line

UM1472Hardware and layout 6 Hardware and layout

The STM32F4DISCOVERY is designed around the STM32F407VGT6 microcontroller in a

100-pin LQFP package.

Figure 2 illustrates the connections between the STM32F407VGT6 and its peripherals (ST-

LINK/V2 or ST-LINK/V2-A, pushbutton, LED, Audio DAC, USB, ST MEMS accelerometer,

ST MEMS microphone, and connectors).

Figure 3 and Figure 4 help users to locate these features on the STM32F4DISCOVERY.

DocID022256 Rev 59/39

Hardware and layout UM1472

Note:Pin 1 of CN2, CN3, JP1, P1 and P2 connectors are identified by a red square.

10/39DocID022256 Rev 5

UM1472Hardware and layout

6.1 Embedded ST-LINK/V2 (or V2-A)

ST-LINK/V2 on STM32F4DISCOVERY or ST-LINK/V2-A on STM32F407G-DISC1 is

embedded as programming and debugging tool.

The embedded ST-LINK/V2 (or V2-A) supports only SWD for STM32 devices. For

information about debugging and programming features refer to ST-LINK/V2 in-circuit

debugger/programmer for STM8 and STM32, UM1075 User manual, which describes in

details all the ST-LINK/V2 features.

The changes on ST-LINK/V2-A versus ST-LINK/V2 version are listed below.

New features supported on ST-LINK/V2-A:

?Virtual com port interface on USB (see Section 6.1.3: ST-LINK/V2-A VCP

configuration)

?Mass storage interface on USB

DocID022256 Rev 511/39

Hardware and layout

UM1472

12/39DocID022256 Rev 5

Features not supported on ST-LINK/V2-A: ?SWIM interface

?Minimum supported application voltage limited to 3 V

?USB power management request for more than 100 mA power on USB

Known limitation:

?

Activating the readout protection on ST-LINK/V2-A target, prevents the target application from running afterwards. The target readout protection must be kept disabled on ST-LINK/V2-A boards.

There are two different ways to use the embedded ST-LINK/V2 (or V2-A) depending on the jumper states (see Table 3): ?Program/debug the STM32 on board (refer to Section 6.1.4: Using ST-LINK/V2 (or V2-A) to program/debug the STM32F4 on board )

?

Program/debug the STM32 in an external application board, using a cable connected to SWD connector CN2 (refer to Section 6.1.5: Using ST-LINK/V2 (or V2-A) to program/debug an external STM32 application )

6.1.1 Drivers

The ST-LINK/V2 (or V2-A) requires a dedicated USB driver, which, for Windows ? XP , 7 and 8, can be found on the https://www.sodocs.net/doc/788973548.html, website. In case the STM32 Discovery 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 6), and from the device manager he must update the driver of the connected device.

Note:

Prefer using the “USB Composite Device” handle for a full recovery.

Figure 5. Updating the list of drivers in Device Manager

Table 3. Jumper states

Jumper state Description

Both CN3 jumpers ON ST-LINK/V2 (or V2-A) functions enabled for on board programming (default)

Both CN3 jumpers OFF

ST-LINK/V2 (or V2-A) functions enabled for application through external CN2 connector (SWD supported)

DocID022256 Rev 513/39

UM1472Hardware and layout

6.1.2 ST-LINK/V2 (or V2-A) firmware upgrade

The ST-LINK/V2 (or V2-A) 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 (or V2-A) product (for example new functionalities, bug fixes, support for new microcontroller families), it is recommended to visit the https://www.sodocs.net/doc/788973548.html, website before starting to use the

Discovery board and periodically, in order to stay up-to-date with the latest firmware version.

6.1.3 ST-LINK/V2-A VCP configuration

The ST-LINK/V2-A supports Virtual Com Port (VCP) on U2 pin 12 (ST-LINK_TX) and U2 pin

13 (ST-LINK_RX) but these pins are not connected to an USART of the STM32F407 target STM32 for mbed support.

Two solutions are possible to connect an STM32F407 USART to the VCP on the PC:

?

Using an USART to USB dongle from the market connected for instance to

STM32F407 USART2 available on connector P1 pin 14 (PA2: USART2_TX) and P1 pin 13 (PA3: USART2_RX).

?

Using flying wires to connect ST-LINK/V2-A Virtual com port (ST-LINK VCP on U2 pin 12 and 13) to STM32F407 USART2 (PA2 and PA3: P1 pin 14 and 13) as shown in the Figure 6 below.

Figure 6. ST-LINK VCP connection to USART2

Hardware and layout UM1472

6.1.4 Using ST-LINK/V2 (or V2-A) to program/debug the STM32F4 on board

To program the STM32F4 on board, simply plug in the two jumpers on CN3, as shown in

Figure 7 in red, but do not use the CN2 connector as that could disturb communication with

the STM32F407VGT6 of the STM32F4DISCOVERY.

06Y 9 14/39DocID022256 Rev 5

UM1472Hardware and layout

6.1.5 Using ST-LINK/V2 (or V2-A) to program/debug an external STM32

application

It is very easy to use the ST-LINK/V2 (or V2-A) to program the STM32 on an external

application. Simply remove the two jumpers from CN3, as shown in Figure 8, and connect

the application to the CN2 debug connector according to Table 4.

Note:SB11 must be OFF if CN2 pin 5 is used in the external application.

Table 4. Debug connector CN2 (SWD)

Designation Pin CN2

1 VDD_TARGET VDD from application

2 SWCLK

clock

SWD

Ground

3 GND

4 SWDIO SWD data input/output

5 NRST RESET of target STM32

Reserved

6 SWO

06Y 9

DocID022256 Rev 515/39

Hardware and layout UM1472

16/39DocID022256 Rev 5

6.2 Power supply and power selection

The power supply is provided either by the host PC through the USB cable, or by an external 5V power supply.

The D1 and D2 diodes protect the 5V and 3V pins from external power supplies:?

5V and 3V can be used as output power supplies when another application board is connected to pins P1 and P2.

In this case, the 5V and 3V pins deliver a 5V or 3V power supply and power consumption must be lower than 100 mA.

?

5V can also be used as input power supplies e.g. when the USB connector is not connected to the PC.

In this case, the STM32F4DISCOVERY board must be powered by a power supply unit 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.

6.3 LEDs

?LD1 COM: LD1 default status is red. LD1 turns to green to indicate that communications are in progress between the PC and the ST-LINK/V2. ?LD2 PWR: red LED indicates that the board is powered.

?User LD3: orange LED is a user LED connected to the I/O PD13 of the STM32F407VGT6.

?User LD4: green LED is a user LED connected to the I/O PD12 of the STM32F407VGT6.

?User LD5: red LED is a user LED connected to the I/O PD14 of the STM32F407VGT6. ?User LD6: blue LED is a user LED connected to the I/O PD15 of the STM32F407VGT6. ?USB LD7: green LED indicates when VBUS is present on CN5 and is connected to PA9 of the STM32F407VGT6.

?

USB LD8: red LED indicates an overcurrent from VBUS of CN5 and is connected to the I/O PD5 of the STM32F407VGT6.

6.4 Pushbuttons

?B1 USER: User and Wake-Up buttons are connected to the I/O PA0 of the STM32F407VGT6.

?

B2 RESET: Pushbutton connected to NRST is used to RESET the STM32F407VGT6.

UM1472Hardware and layout

6.5 On board audio capability

The STM32F4 uses an audio DAC (CS43L22) to output sounds through the audio mini jack

connector.

The STM32F4 controls the audio DAC through the I2C interface and processes digital

signals through an I2S connection or an analog input signal.

?The sound can come independently from different inputs:

–ST MEMS microphone (MP45DT02): digital using PDM protocol or analog when using the low pass filter

–USB connector: from external mass storage such as a USB key, USB HDD, and so on

–Internal memory of the STM32F4

?The sound can be output in different ways through audio DAC:

–Using I2S protocol

–Using the STM32F4 DAC to analog input AIN1x of the CS43L22

–Using the microphone output directly via a low pass filter to analog input AIN4x of the CS43L22

6.6 USB OTG supported

The STM32F4 is used on this board to only drive the USB OTG full speed. The USB micro-

AB connector (CN5) allows the user to connect a host or device component, such as a USB

key, mouse, and so on.

Two LEDs are dedicated to this module:

?LD7 (green LED) indicates when VBUS is active

?LD8 (red LED) indicates an overcurrent from connected device

6.7 Motion sensor (ST MEMS LIS302DL or LIS3DSH)

Two different versions of motion sensors (U5 in schematic) are available on the board

depending on the PCB version. The LIS302DL is present on board MB997B (PCB revision

B) and the LIS3DSH is present on board MB997C (PCB rev C).

The LIS302DL and LIS3DSH are both ultra-compact low-power three-axis linear

accelerometers.

The motion sensor includes a sensing element and an IC interface able to provide the

measured acceleration to the external world through the I2C/SPI serial interfaces.

The LIS302DL has dynamically user selectable full scales of +-2g/+-8g and it is capable of

measuring acceleration with an output rate of 100Hz to 400Hz.

The LIS3DSH has ±2g/±4g/±6g/±8g/±16g dynamically selectable full-scale and it is capable

of measuring acceleration with an output data rate of 3.125 Hz to 1.6 kHz.

The STM32F4 controls this motion sensor through the SPI interface.

DocID022256 Rev 517/39

Hardware and layout UM1472

18/39DocID022256 Rev 5

6.8 JP1 (Idd)

Jumper JP1, labeled Idd, allows the consumption of STM32F407VGT6 to be measured by

removing the jumper and connecting an ammeter.?Jumper on: STM32F407VGT6 is powered (default).

?

Jumper off: an ammeter must be connected to measure the STM32F407VGT6 current, (if there is no ammeter, the STM32F407VGT6 is not powered).

6.9 OSC clock

6.9.1 OSC clock supply

If PH0 and PH1 are used as GPIOs instead of being used as a clock, then SB13 and SB14

are closed and R24, R25 and R68 are removed.?

MCO from ST-LINK . From MCO of the STM32F103. This frequency cannot be

changed, it is fixed at 8 MHz and connected to PH0-OSC_IN of the STM32F407VGT6. Configuration needed:–SB13, SB14 OPEN –R25(a) removed –R68(a) soldered

?

Oscillator on board . From X2 crystal. For typical frequencies and its capacitors and resistors, refer to the STM32F407VGT6 Datasheet at https://www.sodocs.net/doc/788973548.html, . Configuration needed:–SB13, SB14 OPEN –R25(a) soldered –

R68(a) removed

?

Oscillator from external PH0. From external oscillator through pin 7 of the P2 connector. Configuration needed:–SB13 closed –SB14 closed

R25 and R68 removed

a.As the frequency supplied by X2 is the same as MCO (8 MHz), R25 and R68 are soldered.

UM1472Hardware and layout

6.9.2 OSC 32 KHz clock supply

If PC14 and PC15 are only used as GPIOs instead of as a clock, then SB15 and SB16 are

closed, and R21 and R22 are removed.

?Oscillator on board. From X1 crystal (not provided). Configuration needed:

–SB15, SB16 OPEN

–C16, C27, R21 and R22 soldered.

?Oscillator from external PC14. From external oscillator trough the pin 9 of P2 connector. Configuration needed:

–SB16 closed

–SB15 closed

–R21 and R22 removed

6.10 Solder

bridges

Table 5. Solder bridges

Bridge State(1)Description

SB13,14 (X2 crystal)(2)OFF

X2, C14, C15, R24 and R25 provide a clock.

PH0, PH1 are disconnected from P2.

ON PH0, PH1 are connected to P2 (R24, R25 and R68 must not be fitted).

SB3, 5, 7, 9 (Default) ON Reserved, do not modify. SB2, 4, 6, 8 (Reserved) OFF Reserved, do not modify.

SB15,16 (X3 crystal) OFF

X3, C16, C27, R21 and R22 deliver a 32 KHz clock.

PC14, PC15 are not connected to P2.

ON PC14, PC15 are only connected to P2. Remove only R21, R22

SB1

(B2-RESET) ON B2 pushbutton is connected to the NRST pin of the STM32F407VGT6 STM32. OFF B2 pushbutton is not connected the NRST pin of the STM32F407VGT6 STM32.

SB20

(B1-USER) ON B1 pushbutton is connected to PA0. OFF B1 pushbutton is not connected to PA0.

SB17

(VDD powered from 3V) OFF VDD is not powered from 3V, depends on JP1 jumper.

ON VDD is permanently powered from 3V, JP1 jumper has no effect.

SB11 (NRST) ON

NRST signal of the CN2 connector is connected to the NRST pin of the

STM32F407VGT6 STM32.

OFF

NRST signal of the CN2 connector is not connected to the NRST pin of the

STM32F407VGT6 STM32.

SB12 (SWO) ON SWO signal of the CN2 connector is connected to PB3. OFF SWO signal is not connected.

SB10 (STM_RST) OFF No incidence on STM32F103C8T6 (ST-LINK/V2) NRST signal.

ON STM32F103C8T6 (ST-LINK/V2) NRST signal is connected to GND.

DocID022256 Rev 519/39

Hardware and layout

UM1472

20/39DocID022256 Rev 5

6.11 Extension connectors

The male headers P1 and P2 can connect the STM32F4DISCOVERY to a standard

prototyping/wrapping board. STM32F407VGT6 GPIOs are available on these connectors. P1 and P2 can also be probed by an oscilloscope, logical analyzer or voltmeter.

SB18 (BOOT0)

ON

BOOT0 signal of the STM32F407VGT6 STM32 is held low through a 510 ohm pull-down resistor.

OFF BOOT0 signal of the STM32F407VGT6 STM32 is held high through a 10 Kohm pull-up resistor.

SB19 (BOOT1)

OFF

The BOOT1 signal of the STM32F407VGT6 STM32 is held high through a 10 Kohm pull-up resistor.

ON

The BOOT1 signal of the STM32F407VGT6 STM32 is held low through a 510 ohm pull-down resistor.

1.Default SBx state is shown in bold.

2.SB13 and SB14 are OFF to allow the user to choose between MCO and X2 crystal for clock source.

Table 5. Solder bridges (continued)

Bridge

State (1)Description

Table 6. STM32 pin description versus board functions

STM32 pin

Board function

M a i n f u n c t i o n

A l t e r n a t e f u n c t i o n s

L Q F P 100

C S 43L 22

M P 45D T 02

L I S 302D L o r L I S 3D S H

P u s h b u t t o n

L E D

S W D

U S B

O S C

F r e e I /O

P o w e r s u p p l y

C N 5

C N 2

P 1P 2BOOT0VPP

94- - - - - - - - - - - - - 21

NRST

-

14

- - -

R E S E T

-

N R S T

- - - - - 5

6

-

PA0-WKUP

USART2_CTS/ USART4_TX/ ETH_MII_CRS/ TIM2_CH1_ETR/ TIM5_CH1/ TIM8_ETR/ ADC123_IN0/ WKUP

23- - - U S E R

- - - - - - - - 12

- PA1USART2_RTS/ USART4_RX/

ETH_RMII_REF_CLK/ ETH_MII_RX_CLK/ TIM5_CH2/ TIMM2_CH2/ ADC123_IN1

24- - - - - - - - -- - - 11

-

相关主题