Вы находитесь на странице: 1из 36
UM1570 User manual STM32F3DISCOVERY Discovery kit for STM32F303xx microcontrollers Introduction The STM32F3DISCOVERY is

UM1570

User manual

STM32F3DISCOVERY

Discovery kit for STM32F303xx microcontrollers

Introduction

The STM32F3DISCOVERY is designed to help you explore the features of the STM32 F3 32-bit ARM® Cortex™-M4 mixed-signal MCU, and develop your applications. It is based on an STM32F303VCT6 and includes an ST-LINK/V2 embedded debug tool interface, Gyroscope ST MEMS, E-compass with accelerometer ST MEMS, LEDs, pushbuttons and a USB mini-B connector.

Figure 1. STM32F3DISCOVERY Table 1. Applicable tools
Figure 1.
STM32F3DISCOVERY
Table 1.
Applicable tools

Type

Part number

Evaluation tools

STM32F3DISCOVERY

February 2013

Doc ID 023594 Rev 3

1/36

Contents

UM1570

Contents

1 Conventions

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

5

2 Quick start

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

2.1 Getting started

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

2.2 System requirements

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

2.3 Development toolchain supporting the STM32F3DISCOVERY

 

6

2.4 Order code

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

3 Features

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

7

4 Hardware and layout

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

8

4.1 STM32F303VCT6 microcontroller

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

11

4.2 Embedded ST-LINK/V2

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

14

4.2.1 Using ST-LINK/V2 to program/debug the STM32F303VCT6 on board . 14

15

4.2.2 Using ST-LINK/V2 to program/debug an external STM32 application

4.3 Power supply and power selection

 

17

4.4 LEDs

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

17

4.5 Pushbuttons

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

17

4.6 USB device supported

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

18

4.7 E-compass/accelerometer MEMS (ST MEMS LSM303DLHC)

 

18

4.8 Gyroscope MEMS (ST MEMS L3GD20)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

18

JP3 (Idd)

4.9 .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

18

4.10 OSC clock

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

19

4.10.1 OSC clock supply

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

19

4.10.2 OSC 32 kHz clock supply

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 19

4.11 Solder bridges

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

20

4.12 Extension connectors

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

21

5 Mechanical drawing

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

30

6 STM32F3DISCOVERY electrical schematics

 

31

7 Revision history

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

35

2/36

Doc ID 023594 Rev 3

 
2/36 Doc ID 023594 Rev 3  

UM1570

List of figures

List of figures

Figure 1.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

1

Figure 2.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

8

Figure 3.

Figure 4.

Hardware block Board layout (top view) .

. Board layout (bottom view)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

10

9

Figure 5.

STM32F303VCT6 package

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

11

Figure 6.

STM32F303VCT6 block diagram

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 13

Figure 7.

Typical

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

14

Figure 8.

STM32F3DISCOVERY connections image

 

15

Figure 9.

ST-LINK/V2 connections image

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

16

Figure 10.

STM32F3DISCOVERY mechanical drawing

 

30

Figure 11.

STM32F3DISCOVERY top level

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

31

Figure 12.

ST-LINK/V2 (SWD only)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

32

Figure 13.

STM32F303VCT6 MCU

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 33

Figure 14.

Peripherals

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

34

. . . . . . . . . . . . . . . .

Doc ID 023594 Rev 3

3/36

List of tables

UM1570

List of tables

Table 1.

Applicable

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

1

Table 2.

ON/OFF conventions

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

5

Table 3.

Jumper states

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

14

Table 4.

Debug connector CN3 (SWD)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

15

Table 5.

Solder

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

20

Table 6.

STM32F303VCT6 MCU pin description versus board function

 

21

Table 7.

Document revision history

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

35

4/36

Doc ID 023594 Rev 3

. . . . . . . . . . . . . . . .

UM1570

Conventions

1

Conventions

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

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

SBx ON SBx connections closed by solder Solder bridge SBx OFF SBx connections left open Doc

Doc ID 023594 Rev 3

5/36

Quick start

UM1570

2 Quick start

The STM32F3DISCOVERY is a low-cost and easy-to-use development kit to quickly evaluate and start development with an STM32 F3 series microcontroller. Before installing and using the product, please accept the Evaluation Product License Agreement from www.st.com/stm32f3discovery. For more information on the STM32F3DISCOVERY and for demonstration software, visit www.st.com/stm32f3discovery.

2.1 Getting started

Follow the sequence below to configure the STM32F3DISCOVERY board and launch the DISCOVER application:

1. Check the jumper positions on the board, JP3 on, CN4 on (DISCOVERY selected).

2. Connect the STM32F3DISCOVERY board to a PC with a USB cable type A to mini-B through the USB ST-LINK or USB USER connector to power the board. The red LEDs LD1 (PWR) and LD2 (COM) light up.

3. The eight LED indicators blink sequentially.

4. Press the USER button to enable the MEMS gyroscope sensor.

5. Observe how the blinking of the LEDs indicates the gyroscope movements.

6. Press the USER button again to enable the MEMS e-compass sensor.

7. Keep the board in a horizontal position. One of the eight LEDs lights up to indicate the direction of the north.

8. Tilt the board and the eight LEDs blink again

9. To examine or modify the Discover project related to this demo, visit www.st.com/stm32f3discovery and follow the tutorial. Discover the STM32F303xx MCU features, download and execute programs proposed in the list of projects.

10. Develop your own application using the available examples.

2.2 System requirements

Windows PC (XP, Vista, 7)

USB type A to Mini-B USB cable

2.3 Development toolchain supporting the STM32F3DISCOVERY

Altium®, TASKING™ VX-toolset

ARM®, Atollic TrueSTUDIO®

IAR™, EWARM (IAR Embedded Workbench®)

Keil™, MDK-ARM™

2.4 Order code

To order the STM32F303xx Discovery kit, use the order code STM32F3DISCOVERY.

6/36

Doc ID 023594 Rev 3

2.4 Order code To order the STM32F303xx Discovery kit, use the order code STM32F3DISCOVERY. 6/36 Doc

UM1570

Features

3

Features

The STM32F3DISCOVERY offers the following features.

STM32F303VCT6 microcontroller featuring 256 KB of Flash memory, 48 KB of RAM in an LQFP100 package.

On-board ST-LINK/V2 with selection mode switch to use the kit as a standalone ST-LINK/V2 (with SWD connector for programming and debugging).

Board power supply: through the USB bus or from an external 3 V or 5 V supply voltage.

External application power supply: 3 V and 5 V.

L3GD20, ST MEMS motion sensor, 3-axis digital output gyroscope.

LSM303DLHC, ST MEMS system-in-package featuring a 3D digital linear acceleration sensor and a 3D digital magnetic sensor.

Ten LEDs:

– LD1 (red) for 3.3 V power-on.

– LD2 (red/green) for USB communication.

– Eight user LEDs, LD3/10 (red), LD4/9 (blue), LD5/8 (orange) and LD6/7 (green).

Two pushbuttons (user and reset).

USB USER with Mini-B connector.

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

A large number of free ready-to-run application firmware examples are available at www.st.com/stm32f3discovery to support quick evaluation and development.

are available at www.st.com/stm32f3discovery to support quick evaluation and development. Doc ID 023594 Rev 3 7/36

Doc ID 023594 Rev 3

7/36

Hardware and layout

UM1570

4 Hardware and layout

The STM32F3DISCOVERY is designed around the STM32F303VCT6 microcontroller in a 100-pin LQFP package.

Figure 2 illustrates the connections between the STM32F303VCT6 and its peripherals