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® Cortex™-M0 microcontroller, and includes an ST-LINK/V2 embedded debug tool, LEDs, push buttons and a prototyping board.
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 |
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 |
|
|
Table 1 provides the definition of some conventions used in the present document.
|
Table 1. 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 |
|
|
DocID025097 Rev 1 |
5/39 |
Quick start |
UM1658 |
|
|
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.
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.
•Windows PC (XP, Vista, 7)
•USB type A to Mini-B USB cable
•Altium®, TASKING™ VX-toolset
•ARM®, Atollic TrueSTUDIO®
•IAR™, EWARM (IAR Embedded Workbench®)
•Keil™, MDK-ARM™
To order the STM32F030 Value Line Discovery kit, use the order code
STM32F0308-DISCO.
6/39 |
DocID025097 Rev 1 |
UM1658 |
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 |
Hardware and layout |
UM1658 |
|
|
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.
<![endif]>SWD
<![if ! IE]><![endif]>Header
Mini
USB
Embedded
ST-LINK/V2
STM32F030R8T6
|
|
I/O |
|
|
|
|
|
I/O |
|
|
||
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I/O |
|
RESET |
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LED |
|
|
|
B2 |
|
|
|
|||
|
|
LD3, PC9 |
|
|
|
RST |
|
|
|
|||
|
|
|
|
|
|
|
|
|
||||
|
|
LED |
|
|
|
B1 |
|
|
|
|||
|
|
LD4, PC8 |
|
|
|
USER |
|
|
|
<![endif]>Header
MSv31935V1
8/39 |
DocID025097 Rev 1 |
UM1658 |
Hardware and layout |
|
|
(red/green LED) LD2
COM
3V power supply input output
CN3 SWD connector
STM32F030R8T6
B1 user button
(green LED) LD3
ST-LINK/V2 |
|
LD1 (red LED) |
|
PWR |
|
|
|
5V power supply |
input output |
CN2 |
ST-LINK/DISCOVERY |
selector |
JP2 |
IDD measurement |
SB1 (VDD) |
SB3 (B1-USER) |
B2 reset button |
SB4 (B2-RESET) |
LD4 (blue LED) |
MB1134 revA |
STM32F0308-DISCO |
MS31936V1 |
Note: |
Pin 1 of CN2, CN3, P1 and P2 connectors are identified by a square. |
DocID025097 Rev 1 |
9/39 |
Hardware and layout |
UM1658 |
|
|
SB5, SB7, SB9, SB11 (RESERVED)
SB6, SB8, SB10, SB12 (DEFAULT)
SB13 (STM_RST)
SB14, SB15 (RX, TX)
SB16, SB17 (X2 crystal)
SB18 (MCO)
SB19 (NRST)
SB20, SB21 (X3 crystal)
SB22 (T_SWO)
MS30025V1
10/39 |
DocID025097 Rev 1 |
UM1658 |
Hardware and layout |
|
|
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 I2Cs, up to two SPIs, and up to two USARTs), one 12-bit ADC, up to 6 general-purpose 16-bit timers and an advanced-control PWM timer.
STM32F030R8T6
64 Kbyte of Flash memory
8 Kbytes of SRAM
LQFP64 10 x 10 mm |
MS31938V1 |
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.
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 |
Hardware and layout |
UM1658 |
|
|
SWCLK |
Serial |
|
|
|
|
VDD18 |
POWER |
|
Wire |
|
|
|
|
|
VOLT.REG |
VDD = 2.4 to 3.6 V |
|
SWDIO |
Debug |
|
|
<![if ! IE]> <![endif]>Obl |
|
|
3.3 V TO 1.8 V |
|
|
|
|
|
VSS |
||||
as AF |
|
|
Flash |
|
||||
|
|
|
<![if ! IE]> <![endif]>Flash interface |
|
@ VDD |
|
||
|
|
|
|
up to |
|
|
||
|
|
|
|
|
|
|
||
|
CORTEX-M0 CPU |
|
64 KB, |
POR |
SUPPLY |
|
||
|
|
32 bits |
|
|||||
|
fHCLK = 48 MHz |
|
|
|||||
|
|
|
|
Reset |
SUPERVISION |
|
||
|
|
|
<![if ! IE]> <![endif]>Bus matrix |
<![if ! IE]> <![endif]>SRAM controller |
SRAM |
Int |
POR/PDR |
NRST |
|
|
|
@ VDDA |
VDDA |
||||
|
|
|
4 / 8 KB |
|
VDD |
|||
|
|
|
RC HS 14 MHz |
|
||||
|
NVIC |
|
|
|
||||
|
|
|
|
RC HS 8 MHz |
|
|
||
|
|
|
|
|
|
@ VDDA |
|
|
|
GP DMA |
|
|
|
|
|
||
|
|
|
|
RC LS |
@ VDD |
|
||
|
5 channels |
|
|
|
OSC_IN (PF0) |
|||
|
|
|
|
|
XTAL OSC |
|||
|
|
|
|
|
|
PLL |
OSC_OUT (PF1) |
|
|
|
|
|
|
|
4-32 MHz |
||
|
|
|
|
|
|
|
IWDG |
|
|
|
|
|
|
|
|
Power |
|
|
|
|
|
|
|
AHBPCLK |
Controller |
|
|
|
|
|
RESET & |
APBPCLK |
@ VDD |
|
|
|
|
|
|
|
CLOCK |
ADCCLK |
|
|
|
|
|
|
|
USARTCLK |
XTAL32 kHz |
OSC32_IN (PC14) |
|
|
|
|
|
CONTROL |
||||
PA[15:0] |
GPIO port A |
|
HCLK |
OSC32_OUT (PC15) |
||||
|
|
|
FCLK |
|
||||
|
|
|
|
|
|
|
|
|
PB[15:0] |
GPIO port B |
|
<![if ! IE]> <![endif]>decoder |
|
|
RTC |
TAMPER-RTC |
|
|
|
|
|
(ALARM OUT) |
||||
|
|
|
|
|
|
|
||
PC[15:0] |
GPIO port C |
|
CRC |
|
RTC interface |
|
||
PD2 |
GPIO port D |
|
<![if ! IE]> <![endif]>AHB |
|
|
|
|
|
PF[1:0] |
GPIO port F |
|
|
|
|
TIMER 1 |
4 channels |
|
PF[7:4] |
|
|
|
|
|
|
3 compl. channels |
|
|
|
|
|
|
|
|
|
BRK, ETR input as AF |
|
|
|
|
|
|
|
TIMER 3 |
4 ch., ETR as AF |
|
|
|
|
AHB |
|
|
TIMER 14 |
1 channel as AF |
|
|
|
|
APB |
|
|
TIMER 15 |
2 channels |
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
1 compl, BRK as AF |
|
|
|
|
|
|
|
|
|
|
55 AF |
EXT. IT |
|
|
|
|
|
TIMER 16 |
1 channel |
WKUP |
|
|
|
|
|
1 compl, BRK as AF |
||
|
|
|
|
WWDG |
|
|
|
|
MOSI, |
|
|
|
|
|
TIMER 17 |
1 channel |
|
|
|
|
|
|
|
1 compl, BRK as AF |
||
MISO, |
SPI1 |
|
|
|
|
|
|
IR_OUT as AF |
SCK, |
|
|
|
DBGMCU |
|
|
||
|
|
|
|
|
|
|
||
NSS as AF |
|
|
|
|
|
|
USART1 |
RX, TX,CTS, RTS, |
|
|
|
|
|
|
|
||
MOSI/MISO, |
|
|
|
|
|
|
CK as AF |
|
SPI2 |
|
|
|
|
|
|
||
SCK/NSS, |
|
|
|
|
|
USART2 |
RX, TX,CTS, RTS, |
|
|
|
|
|
|
|
|||
as AF |
SYSCFG IF |
|
|
|
|
|
CK as AF |
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
I2C 1 |
SCL, SDA, SMBA |
|
|
|
|
|
|
|
(20 mA for FM+) as AF |
|
|
@ VDDA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Temp. |
|
|
|
|
|
I2C2 |
SCL, SDA |
|
sensor |
|
|
|
|
|
as AF |
|
|
|
|
|
|
|
|
||
16 |
12-bit |
IF |
|
|
|
|
|
|
AD inputs |
|
|
|
|
|
|
||
ADC1 |
|
|
TIMER 6 |
|
|
|
||
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
VDDA |
|
|
|
|
|
|
|
|
VSSA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MSv32137V1 |
12/39 |
|
|
|
DocID025097 Rev 1 |
|
|