STM32F3DISCOVERY - User Manual
STM32F3DISCOVERY - User Manual
User manual
Discovery kit with STM32F303VC MCU
Introduction
The STM32F3DISCOVERY Discovery kit is a complete demonstration and development
platform for STMicroelectronics Arm® Cortex®-M4 core-based STM32F303VCT6
microcontroller. It includes an ST-LINK/V2 (or V2-B) embedded debug tool interface, an ST
MEMS gyroscope, an ST MEMS E-compass, LEDs, push-buttons, and a USB Mini-B
connector.
Figure 1. STM32F3DISCOVERY
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 Codification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 Development toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5 Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
7 STM32F3DISCOVERY information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.1 Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.2 Board revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
7.3 Board known limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
8 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
List of tables
List of figures
Figure 1. STM32F3DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 3. Board layout (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 4. Board layout (bottom view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 5. STM32F3DISCOVERY mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 6. USB composite device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 7. STM32F3DISCOVERY connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 8. ST-LINK/V2 (or V2-B) connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1 Features
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
2 Ordering information
2.1 Codification
The meaning of the codification is explained in Table 2.
The order code is mentioned on a sticker placed on the top or bottom side of the board.
3 Development environment
4 Conventions
Table 3 provides the definition of some conventions used in the present document.
Note: Board figures and photos in this document are based on version B, versions C, D, and E are
similar.
a. macOS® is a trademark of Apple Inc. registered in the U.S. and other countries.
b. On Windows® only.
5 Quick start
Mini USB
Embedded
ST-LINK/V2 (or V2-B)
SWD
STM32F303VCT6
IO IO
Header
Header
IO RESET
LEDs B2
LD3...LD10 RESET
L3GD20 or B1
I3G4250D USER
LSM303DLHC or
LSM303AGR
Mini-USB
MSv41785V3
ST-LINK/V2
CN3
SWD connector
CN4
ST-LINK/
STM32F3DISCOVER
selector
JP3 IDD
LSM303DLHC
measurement
3 V power 5 V power
supply supply
input/output input/output
STM32F303VCT6
L3GD20
B1 user-button
B2 reset
button
(red LED) LD3
Note: Pin 1 of CN3, CN4, JP3, JP4, P1, and P2 connectors are identified by a square.
SB19 (BOOT0)
SB20 (B1-USER)
SB21 (USB USER)
SB23 (B2-RESET)
SB22 (USB USER)
RoHS SN
MSv41787V2
Note: If SB12 is ON, SB17 must be OFF and R33 removed to provide the clock source from MCO
correctly.
66.00mm
53.34mm
6.33mm 6.33mm
16.04mm
3.34mm
5.08mm
33.82mm
33.82mm
15.24mm
97.00mm
2.22mm
2.54mm 2.54mm
6.33mm 6.33mm
53.34mm
6.2.1 Drivers
The ST-LINK/V2 (or V2-B) requires a dedicated USB driver, which, for Windows® XP, 7, 8,
can be found at the www.st.com 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, and from the
device manager, he must update the driver of the connected device (see Figure 6).
Note: Prefer using the ‘USB Composite Device’ handle for a full recovery.
6.4 LEDs
• LD1 PWR: 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.
• User LD3: Red LED is a user LED connected to the I/O PE9 of the STM32F303VCT6.
• User LD4: Blue LED is a user LED connected to the I/O PE8 of the STM32F303VCT6.
• User LD5: Orange LED is a user LED connected to the I/O PE10 of the
STM32F303VCT6.
• User LD6: Green LED is a user LED connected to the I/O PE15 of the
STM32F303VCT6.
• User LD7: Green LED is a user LED connected to the I/O PE11 of the
STM32F303VCT6.
• User LD8: Orange LED is a user LED connected to the I/O PE14 of the
STM32F303VCT6.
• User LD9: Blue LED is a user LED connected to the I/O PE12 of the STM32F303VCT6.
• User LD10: Red LED is a user LED connected to the I/O PE13 of the
STM32F303VCT6.
6.5 Push-buttons
• B1 USER: user and wake-up button connected to the I/O PA0 of the STM32F303VCT6.
• B2 RESET: push-button connected to NRST is used to RESET the STM32F303VCT6.
X1, C22, C23, R32, and R33 provide a clock. PF0 and PF1 are disconnected from
SB17,18 OFF
P2.
(X1 crystal) (2)
ON PF0 and PF1 are connected to P2 (R32 and R33 must not be fitted).
SB1,3,5,8 (default) ON Reserved, do not modify
SB2,4,6,9 (reserved) OFF Reserved, do not modify
X3, C14, C26, R29, and R30 deliver a 32 KHz clock. PC14, PC15 are not
SB14,16 OFF
connected to P2.
(X3 crystal)
ON PC14 and PC15 are only connected to P2. Remove only R29 and R30.
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
CN3
LED
Alternate function
P1
P2
function
BOOT0 - 94 - - - - - - - - - - - - 19
RESET
NRST
NRST - 14 - - - - - - - 5 4 -
-
TIM2_CH1_ETR,
G1_IO1,
USER
USART2_CTS,
PA0 23 - - - - - - - - - - 12 -
COMP1_OUT,
TIM8_BKIN,
TM8_ETR
TIM2_CH2, G1_IO2,
PA1 USART2_RTS, 24 - - - - - - - - - - - 9 -
TIM15_CH1N
TIM2_CH3, G1_IO3,
USART2_TX,
PA2 COMP2_OUT, 25 - - - - - - - - - - - 14 -
TIM15_CH1,
AOP1_OUT
TIM2_CH4, G1_IO4,
PA3 USART2_RX, 26 - - - - - - - - - - - 11 -
TIM15_CH2
TIM3_CH2, G2_IO1,
SPI1_NSS,
PA4 29 - - - - - - - - - - - 16 -
SPI3_NSS/I2S3_WS,
USART2_CK
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
SCL/SPC
TIM2_CH1_ETR,
PA5 30 - - - - - - - - - - 15 -
G2_IO2, SPI1_SCK
TIM16_CH1,
TIM3_CH1, G2_IO3,
SAO/SDO
TIM8_BKIN,
PA6 SPI1_MISO, 31 - - - - - - - - - - 18 -
TIM1_BKIN,
AOP2_OUT,
COMP1_OUT
TIM17_CH1,
SDA/SDI/SDO
TIM3_CH2, G2_IO4,
TIM8_CH1N,
PA7 32 - - - - - - - - - - 17 -
SPI1_MOSI,
TIM1_CH1N,
COMP2_OUT
MCO, I2C2_SMBAL,
I2S2_MCK,
TIM1_CH1,
PA8 67 - - - - - - - - - - - - 45
USART1_CK,
COMP3_OUT,
TIM4_ETR
G4_IO1, I2C2_SCL,
I2S3_MCK,
TIM1_CH2,
PA9 USART1_TX, 68 - - - - - - - - - - - - 44
COMP5_OUT,
TIM15_BKIN,
TIM2_CH3
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
TIM17_BKIN,
G4_IO2, I2C2_SDA,
TIM1_CH3,
PA10 USART1_RX, 69 - - - - - - - - - - - - 43
COMP6_OUT,
TIM2_CH4,
TIM8_BKIN
TIM1_CH1N,
USART1_CTS,
COMP1_OUT,
PA11 CAN_RX, 70 - - - - - - DM - - - - - 42
TIM4_CH1,
TIM1_CH4_BKIN2,
USBDM
TIM16_CH1,
TIM1_CH2N,
USART1_RTS,
PA12 71 - - - - - - DP - - - - - 41
COMP2_OUT,
CAN_TX, TIM4_CH2,
TIM1_ETR, USBDP
JTMS-SWDAT,
TIM16_CH1N,
SWDIO
PA14 TIM8_CH2, 76 - - - - - - - - - 2 - 37
TIM1_BKIN,
USART2_TX
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
JTDI,
TIM2_CH1_ETR,
TIM8_CH1,
I2C1_SCL,
PA15 77 - - - - - - - - - - - - 38
SPI1_NSS,
SPI3_NSS/I2S3_WS,
USART2_RX,
TIM1_BKIN
TIM3_CH3, G3_IO2,
PB0 TIM8_CH2N, 35 - - - - - - - - - - - 22 -
TIM1_CH2N
TIM3_CH4, G3_IO3,
TIM8_CH3N,
PB1 TIM1_CH3N, 36 - - - - - - - - - - - 21 -
COMP4_OUT,
AOP3_OUT
PB2 G3_IO4 37 - - - - - - - - - - - 24 -
JTDO/TRACESWO,
TIM2_CH2,
TIM4_ETR, G5_IO1,
SWO
TIM8_CH1N,
PB3 89 - - - - - - - - - 6 - 26
SPI1_SCK,
SPI3_SCK/I2S3_CK,
USART2_TX,
TIM3_ETR
NJTRST,
TIM16_CH1,
TIM3_CH1, G5_IO2,
TIM8_CH2N,
PB4 90 - - - - - - - - - - - - 23
SPI1_MISO,
SPI3_MISO/I2S3_DI
N,USART2_RX,
TIM17_BKIN
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
TIM16_BKIN,
TIM3_CH2,
TIM8_CH3N,
I2C1_SMBAL,
PB5 91 - - - - - - - - - - - - 24
SPI1_MOSI,
SPI3_MOSI/I2S3_D
OUT, USART2_CK,
TIM17_CH1
TIM16_CH1N,
TIM4_CH1, G5_IO3,
I2C1_SCL,
SCL
PB6 92 - - - - - - - - - - - 21
TIM8_CH1,
TIM8_ETR_BKIN2,
USART1_TX
TIM17_CH1N,
TIM4_CH2, G5_IO4,
I2C1_SDA,
SDA
PB7 93 - - - - - - - - - - - 22
TIM8_BKIN,
USART1_RX,
TIM3_CH4
TIM16_CH1,
TIM4_CH3, SYNCH,
I2C1_SCL,
PB8 COMP1_OUT, 95 - - - - - - - - - - - - 17
CAN_RX,
TIM8_CH2,
TIM1_BKIN
TIM17_CH1,
TIM4_CH4,
PB9 96 - - - - - - - - - - - - 18
I2C1_SDA, IR-OUT,
CAN_TX, TIM8_CH3
TIM2_CH3, SYNCH,
PB10 47 - - - - - - - - - - - 34 -
USART3_TX
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
TIM2_CH4, G6_IO1,
PB11 USART3_RX, 48 - - - - - - - - - - - 33 -
COMP2_OUT
G6_IO2,
I2C2_SMBAL,
SPI2_NSS/I2S2_WS,
PB12 51 - - - - - - - - - - - 36 -
TIM1_BKIN,
USART3_CK,
AOP4_OUT
G6_IO3,
SPI2_SCK/I2S2_CK,
PB13 52 - - - - - - - - - - - 35 -
TIM1_CH1N,
USART3_CTS
TIM15_CH1,
G6_IO4,
PB14 SPI2_MISO/I2S2_DI 53 - - - - - - - - - - - 38 -
N,TIM1_CH2N,
USART3_RTS
TIM15_CH2,
TIM15_CH1N,
PB15 TIM1_CH3N, 54 - - - - - - - - - - - 37 -
SPI2_MOSI/
I2S2_DOUT
PC0 - 15 - - - - - - - - - - - 6 -
PC1 - 16 - - - - - - - - - - - 5 -
PC2 COMP7_OUT 17 - - - - - - - - - - - 8 -
PC3 TIM1_BKIN2 18 - - - - - - - - - - - 7 -
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
USART1_TX
PC4 USART1_TX 33 - - - - - - - - - - 20 -
USART1_RX
G3_IO1,
PC5 34 - - - - - - - - - - 19 -
USART1_RX
TIM3_CH1,
TIM8_CH1,
PC6 63 - - - - - - - - - - - 47 -
I2S2_MCK,
COMP6_OUT
TIM3_CH2,
TIM8_CH2,
PC7 64 - - - - - - - - - - - 48 -
I2S3_MCK,
COMP5_OUT
TIM3_CH3,
PC8 TIM8_CH3, 65 - - - - - - - - - - - - 47
COMP3_OUT
TIM3_CH4,
PC9 TIM8_CH4_BKIN2, 66 - - - - - - - - - - - - 46
COMP3_OUT
TIM8_CH1N,
UART4_TX,
PC10 78 - - - - - - - - - - - - 35
SPI3_SCK/I2S3_CK,
USART3_TX
TIM8_CH2N,
UART4_RX,
PC11 79 - - - - - - - - - - - - 36
SPI3_MISO/I2S3_DI
N,USART3_RX
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
TIM8_CH3N,
UART5_TX,
PC12 SPI3_MOSI/ 80 - - - - - - - - - - - - 33
I2S3_DOUT,
USART3_CK
PC13 TIM1_CH1N 7 - - - - - - - - - - - - 10
OSC32_OUT OSC32_IN
PC14 OSC32_IN 8 - - - - - - - - - - - 7
PC15 OSC32_OUT 9 - - - - - - - - - - - 8
PD0 CAN_RX 81 - - - - - - - - - - - - 34
TIM8_CH4_BKIN2,
PD1 82 - - - - - - - - - - - - 31
CAN_TX
TIM3_ETR,
PD2 TIM8_BKIN, 83 - - - - - - - - - - - - 32
UART5__RX
TIM2_CH1_ETR,
PD3 84 - - - - - - - - - - - - 29
USART2_CTS
TIM2_CH2,
PD4 85 - - - - - - - - - - - - 30
USART2_RTS
PD5 USRT2_TX 86 - - - - - - - - - - - - 27
TIM2_CH4,
PD6 87 - - - - - - - - - - - - 28
USART2_RX
TIM2_CH3,
PD7 88 - - - - - - - - - - - - 25
USART2_CK
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
PD8 USART3_TX 55 - - - - - - - - - - - 40 -
PD9 USART3_RX 56 - - - - - - - - - - - 39 -
PD10 USART3_CK 57 - - - - - - - - - - - 42 -
PD11 USART3_CTS 58 - - - - - - - - - - - 41 -
TIM4_CH1, G8_IO1,
PD12 59 - - - - - - - - - - - 44 -
USART3_RTS
PD13 TIM4_CH2, G8_IO2 60 - - - - - - - - - - - 43 -
PD14 TIM4_CH3, G8_IO3 61 - - - - - - - - - - - 46 -
TIM4_CH4, G8_IO4,
PD15 62 - - - - - - - - - - - 45 -
SPI2_NSS
TIM4_ETR,
INT1
PE0 TIM16_CH1, 97 - - - - - - - - - - - 15
USART1_TX
DRDY/INT2
TIM17_CH1,
PE1 98 - - - - - - - - - - - 16
USART1_RX
DRDY
TRACECK,
PE2 1 - - - - - - - - - - 13
-
TIM3_CH1, G7_IO1
CS_I2C/SPI
TRACED0,
PE3 2 - - - - - - - - - - 14
-
TIM3_CH2, G7_IO2
TRACED1,
INT2 INT1
PE4 3 - - - - - - - - - - 11
-
TIM3_CH3, G7_IO3
TRACED2,
PE5 4 - - - - - - - - - - 12
-
TIM3_CH4, G7_IO4
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
PE6 TRACED3 5 - - - - - - - - - - - - 9
PE7 TIM1_ETR 38 - - - - - - - - - - - 23 -
GREEN ORANGE RED BLUE GREEN ORANGE RED BLUE
LD3/ LD4/
PE8 TIM1_CH1N 39 - - - - - - - - - - 26 -
PE9 TIM1_CH1 40 - - - - - - - - - - 25 -
LD5/
PE10 TIM1_CH2N 41 - - - - - - - - - - 28 -
LD7/
PE11 TIM1_CH2 42 - - - - - - - - - - 27 -
LD10/ LD9/
PE12 TIM1_CH3N 43 - - - - - - - - - - 30 -
PE13 TIM1_CH3 44 - - - - - - - - - - 29 -
LD8/
PE14 TIM1_CH4_BKIN2 45 - - - - - - - - - - 32 -
TIM1_BKIN,
LD6/
PE15 46 - - - - - - - - - - 31 -
USART3_RX
OSC_OUT OSC_IN
OSC_IN, I2C2_SDA,
PF0 12 - - - - - - - - - - - 5
TIM1_CH3N
OSC_OUT,
PF1 13 - - - - - - - - - - - 6
I2C2_SCL
LSM303DLHC or LSM303AGR
LQFP100 pin number
L3GD20 or I3G4250D
Power supply
Push-button
Free I/O
Main
SWD
OSC
USB
VCP
LED
CN3
Alternate function
P1
P2
function
PF2 - 19 - - - - - - - - - - - 10 -
PF4 COMP1_OUT 27 - - - - - - - - - - - 13 -
TIM4_CH4,
PF6 I2C2_SCL, 73 - - - - - - - - - - - - 39
USART3_RTS
TIM15_CH1,
PF9 10 - - - - - - - - - - - - 3
SPI2_SCK
TIM15_CH2,
PF10 11 - - - - - - - - - - - - 4
SPI2_SCK
- - - - - - - - - - - - 5V - - 1
- - - - - - - - - - - - 5V - - 2
- - - - - - - - - - - - 3V - 1 -
- - - - - - - - - - - - 3V - 2 -
GND GND GND VDD
- - - - - - - - - - - - - - 20
- - - - - - - - - - - - 3 - -
- - - - - - - - - - - - - 49 49
- - - - - - - - - - - - - 50 50
1. The cells marked in grey identify connections between MCU pin function and the board function.
7 STM32F3DISCOVERY information
Revision C-01
PCB label MB1035 C-01, SB13 and SB15 closed
STM32F103C8T6 replaced by STM32F103CBT6, ST-LINK/V2-B
Revision D-01
PCB label MB1035 D-01, only silkscreen modification
STM32F303C-DISC1 replaced by STM32F3DISCOVERY
Revision E-02
C7 and C9 changed from 20 pF to 33 pF
8 Revision history
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
acknowledgment.
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.
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. For additional information about ST trademarks, please refer to www.st.com/trademarks. 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.