STMicroelectronics 32F0308DISCOVERY User guide

UM1658
User manual
Discovery kit for STM32F030 Value Line microcontrollers
Introduction
The STM32F030 Value Line Discovery kit (32F0308DISCOVERY) helps you to discover the device features and to develop your applications easily. It is based on STM32F030R8T6, an STM32 F0 series 32-bit ARM embedded debug tool, LEDs, push buttons and a prototyping board.
Cortex™-M0 microcontroller, and includes an ST-LINK/V2

Figure 1. 32F0308DISCOVERY

September 2013 DocID025097 Rev 1 1/39
www.st.com
Contents UM1658
Contents
1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Development toolchains supporting the 32F0308DISCOVERY . . . . . . . . . 6
2.4 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Hardware and layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1 STM32F030R8T6 microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
4.2 Embedded ST-LINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.1 Using ST-LINK/V2 to program/debug the STM32 F0 on board . . . . . . . 14
4.2.2 Using ST-LINK/V2 to program/debug an external STM32 application . . 15
4.3 Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.5 Push buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.6 JP2 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.7 OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.7.1 OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.7.2 OSC 32 KHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.8 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.9 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5 Connecting modules on the prototyping board . . . . . . . . . . . . . . . . . . 25
5.1 Mikroelektronica accessory boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.2 ST MEMS “adapter boards”, standard DIL24 socket . . . . . . . . . . . . . . . . 28
5.3 Arduino shield boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6 Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
7 Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
8 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
2/39 DocID025097 Rev 1
UM1658 List of tables
List of tables
Table 1. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Table 2. Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 3. Debug connector CN3 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 4. Solder bridge settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 5. MCU pin description versus board function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 6. Connecting using mikroBUS™ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 7. Connecting using IDC10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 8. Connecting with a DIL24 board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Table 9. Supported MEMS adapter boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Table 10. Connecting with Arduino shields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Table 11. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
DocID025097 Rev 1 3/39
3
List of figures UM1658
List of figures
Figure 1. 32F0308DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 3. Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 4. Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 5. STM32F030R8T6 package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 6. STM32F030R8T6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 7. Typical configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 8. 32F0308DISCOVERY connections image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 9. ST-LINK connections image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 10. Using IDC10 and mikroBUS™ connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 11. DIL24 socket connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 12. Arduino shield board connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 13. 32F0308DISCOVERY mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 14. 32F0308DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 15. ST-LINK/V2 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 16. MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4/39 DocID025097 Rev 1
UM1658 Conventions

1 Conventions

Tabl e 1 provides the definition of some conventions used in the present document.
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

Table 1. ON/OFF conventions

DocID025097 Rev 1 5/39
38
Quick start UM1658

2 Quick start

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

2.1 Getting started

Follow the sequence below to configure the STM32F030 Value Line Discovery kit and launch the DISCOVER application:
1. Check jumper position on the board, JP2 on, CN2 on (Discovery selected).
2. Connect the 32F0308DISCOVERY board to a PC with a USB cable ‘type A to mini-B’ through USB connector CN1 to power the board. Red LED LD1 (PWR) and LD2 (COM) light up and green LED LD3 blinks.
3. Press user button B1 (bottom left corner of the board).
4. Observe how the green LED LD3 blinking changes according to USER button B1 clicks.
5. Each click on USER button B1 is confirmed by the blue LED LD4.
6. To study or modify the DISCOVER project related to this demo, visit
www.st.com/stm32f0-discovery and follow the tutorial.
7. Discover the STM32F0 features, download and execute programs proposed in the list of projects.
8. Develop your own application using available examples.

2.2 System requirements

Windows PC (XP, Vista, 7)
USB type A to Mini-B USB cable

2.3 Development toolchains supporting the 32F0308DISCOVERY

Altium®, TASKING™ VX-toolset
ARM®, Atollic TrueSTUDIO®
IAR™, EWARM (IAR Embedded Workbench®)
Keil™, MDK-ARM™

2.4 Order code

To order the STM32F030 Value Line Discovery kit, use the order code STM32F0308-DISCO.
6/39 DocID025097 Rev 1
UM1658 Features

3 Features

The STM32F030 Value Line Discovery kit offers the following features:
STM32F030R8T6 microcontroller featuring 64 KB Flash, 8 KB RAM in an LQFP64 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 USB bus or from an external 5 V supply voltage
External application power supply: 3 V and 5 V
Four LEDs:
LD1 (red) for 3.3 V power on
LD2 (red/green) for USB communication
LD3 (green) for PC9 output
LD4 (blue) for PC8 output
Two push buttons (user and reset)
Extension header for LQFP64 I/Os for quick connection to prototyping board and easy
probing.
An additional board is provided with the kit which can be connected to the extension connector for even easier prototyping and probing.
A large number of free ready-to-run application firmware examples are available on
www.st.com/stm32f0-discovery to support quick evaluation and development.
DocID025097 Rev 1 7/39
38
Hardware and layout UM1658
MSv31935V1
I/O
Mini
USB
LD3, PC9
B2
RST
RESET
I/OI/O
Header
SWD
Embedded
ST-LINK/V2
STM32F030R8T6
LED
Header
B1
USER
LD4, PC8
LED

4 Hardware and layout

The STM32F030 Value Line Discovery board is designed around the STM32F030R8T6 microcontroller in a 64-pin LQFP package.
Figure 2 illustrates the connections between the STM32F030R8T6 and its peripherals
(ST-LINK/V2, push button, LEDs and connectors).
Figure 3 and Figure 4 help you to locate these features on the STM32F030 Value Line
Discovery board.

Figure 2. Hardware block diagram

8/39 DocID025097 Rev 1
UM1658 Hardware and layout
(red/green LED) LD2
COM
CN3
SWD connector
IDD measurement
ST-LINK/V2
B1 user button
B2 reset button
LD1 (red LED) PWR
CN2 ST-LINK/DISCOVERY
selector
(green LED) LD3
LD4 (blue LED)
STM32F030R8T6
JP2
5V power supply input output
3V power supply
input output
SB1 (VDD)
SB3 (B1-USER)
SB4 (B2-RESET)
MS31936V1
MB1134 revA STM32F0308-DISCO

Figure 3. Top layout

Note: Pin 1 of CN2, CN3, P1 and P2 connectors are identified by a square.
DocID025097 Rev 1 9/39
38
Hardware and layout UM1658
SB6, SB8, SB10, SB12
MS30025V1
SB5, SB7, SB9, SB11
(RESERVED)
(DEFAULT)
SB20, SB21 (X3 crystal)
SB14, SB15 (RX, TX)
SB19 (NRST)
SB16, SB17 (X2 crystal)
SB13 (STM_RST)
SB22 (T_SWO)
SB18 (MCO)

Figure 4. Bottom layout

10/39 DocID025097 Rev 1
UM1658 Hardware and layout
MS31938V1
STM32F030R8T6
64 Kbyte of Flash memory 8 Kbytes of SRAM
LQFP64 10 x 10 mm

4.1 STM32F030R8T6 microcontroller

The STM32F030R8T6 microcontroller incorporates the high-performance ARM Cortex™-M0 32-bit RISC core operating at a 48 MHz frequency, high-speed embedded memories (up to 64 Kbytes of Flash memory and up to 8 Kbytes of SRAM), and an extensive range of enhanced peripherals and I/Os. All devices offer standard communication interfaces (up to two I 12-bit ADC, up to 6 general-purpose 16-bit timers and an advanced-control PWM timer.

Figure 5. STM32F030R8T6 package

The STM32F030R8T6 microcontroller operates in the -40 to +85 °C temperature range, from a 2.4 V to 3.6 V power supply. A comprehensive set of power-saving modes allows the design of low-power applications.
2
Cs, up to two SPIs, and up to two USARTs), one
These features make the STM32F030R8T6 microcontroller suitable for a wide range of applications such as application control and user interfaces, handheld equipment, A/V receivers and digital TV, PC peripherals, gaming platforms, e-bikes, consumer appliances, printers, scanners, alarm systems, video intercoms, and HVACs.
DocID025097 Rev 1 11/39
38
MSv32137V1
4 channels 3 compl. channels BRK, ETR input as AF
4 ch., ETR as AF
1 channel as AF
2 channels 1 compl, BRK as AF
1 channel 1 compl, BRK as AF
1 channel 1 compl, BRK as AF
IR_OUT as AF
RX, TX,CTS, RTS, CK as AF RX, TX,CTS, RTS, CK as AF
SCL, SDA, SMBA (20 mA for FM+) as AF
SCL, SDA as AF
@ V
DD
@ V
DDA
AHBPCLK APBPCLK ADCCLK USARTCLK HCLK FCLK
PA[15:0]
PB[15:0]
PC[15:0]
PD2
PF[1:0] PF[7:4]
@ V
DDA
55 AF
MOSI, MISO,
SCK,
NSS as AF
V
DDA
V
SSA
GP DMA
5 channels
CORTEX-M0 CPU f
HCLK
= 48 MHz
Serial
Wire
Debug
NVIC
GPIO port A
GPIO port B
GPIO port C
GPIO port D
GPIO port F
EXT. IT
WKUP
SPI1
SPI2
SYSCFG IF
TIMER 6
DBGMCU
WWDG
APB
AHB
CRC
RESET &
CLOCK
CONTROL
TIMER 1
TIMER 3
TIMER 14
TIMER 15
TIMER 16
TIMER 17
USART1
USART2
I2C 1
I2C2
Power
Controller
XTAL OSC
4-32 MHz
IWDG
SUPPLY
SUPERVISION
POR/PDR
POWER
VOLT.REG
3.3 V TO 1.8 V
RC HS 14 MHz
RC HS 8 MHz
RC LS
PLL
Flash
interface
Flash
up to 64 KB, 32 bits
Obl
SRAM
4 / 8 KB
Temp. sensor
IF
12-bit ADC1
SWCLK
SWDIO
as AF
MOSI/MISO,
SCK/NSS,
as AF
16
AD inputs
Bus matrix
@ V
DDA
@ V
DD
V
DD18
POR
Reset
Int
V
DD
= 2.4 to 3.6 V
V
SS
NRST V
DDA
V
DD
OSC_IN (PF0) OSC_OUT (PF1)
OSC32_IN (PC14) OSC32_OUT (PC15)
TAMPER-RTC (ALARM OUT)
RTC
RTC interface
XTAL32 kHz
@ VDD
SRAM
controller
AHB decoder
Hardware and layout UM1658

Figure 6. STM32F030R8T6 block diagram

12/39 DocID025097 Rev 1
Loading...
+ 27 hidden pages