ST STM32F030 User Manual

Summary of STM32F030

  • Page 1

    September 2013 docid025097 rev 1 1/39 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 ...

  • Page 2: Contents

    Contents um1658 2/39 docid025097 rev 1 contents 1 conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1 getting started . . . ...

  • Page 3: List of Tables

    Docid025097 rev 1 3/39 um1658 list of tables 3 list of tables table 1. On/off conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 table 2. Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

  • Page 4: List of Figures

    List of figures um1658 4/39 docid025097 rev 1 list of figures figure 1. 32f0308discovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 figure 2. Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

  • Page 5: 1 Conventions

    Docid025097 rev 1 5/39 um1658 conventions 38 1 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 s...

  • Page 6: 2 Quick

    Quick start um1658 6/39 docid025097 rev 1 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 produc...

  • Page 7: 3 Features

    Docid025097 rev 1 7/39 um1658 features 38 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 (...

  • Page 8: Hardware and Layout

    Hardware and layout um1658 8/39 docid025097 rev 1 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,...

  • Page 9

    Docid025097 rev 1 9/39 um1658 hardware and layout 38 figure 3. Top layout note: pin 1 of cn2, cn3, p1 and p2 connectors are identified by a square. (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 (gr...

  • Page 10

    Hardware and layout um1658 10/39 docid025097 rev 1 figure 4. Bottom layout 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).

  • Page 11

    Docid025097 rev 1 11/39 um1658 hardware and layout 38 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 kbyte...

  • Page 12

    Hardware and layout um1658 12/39 docid025097 rev 1 figure 6. Stm32f030r8t6 block diagram 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,...

  • Page 13

    Docid025097 rev 1 13/39 um1658 hardware and layout 38 4.2 embedded st-link/v2 the st-link/v2 programming and debugging tool is integrated on the 32f0308discovery. The embedded st-link/v2 can be used in 2 different ways according to the jumper states (see table 2 ): • program/debug the mcu on board, ...

  • Page 14

    Hardware and layout um1658 14/39 docid025097 rev 1 4.2.1 using st-link/v2 to program/debug the stm32 f0 on board to program the stm32 f0 on board, simply plug in the two jumpers on cn2, as shown in figure 8 in red, but do not use the cn3 connector as that could disturb communication with the stm32f0...

  • Page 15

    Docid025097 rev 1 15/39 um1658 hardware and layout 38 4.2.2 using st-link/v2 to program/debug an external stm32 application it is very easy to use the st-link/v2 to program the stm32 on an external application. Simply remove the 2 jumpers from cn2 as shown in figure 9 , and connect your application ...

  • Page 16

    Hardware and layout um1658 16/39 docid025097 rev 1 4.3 power supply and power selection the power supply is provided either by the host pc through the usb cable, or by an external 5 v power supply. The d1 and d2 diodes protect the 5 v and 3 v pins from external power supplies: • 5 v and 3 v can be u...

  • Page 17

    Docid025097 rev 1 17/39 um1658 hardware and layout 38 4.7 osc clock 4.7.1 osc clock supply pf0 and pf1 can be used as gpio or as hse oscillator. By default these i/os are configured as gpio, so sb16 and sb17 are closed, sb18 is open and r22, r23, c13 and c14 are not populated. An external hse clock ...

  • Page 18

    Hardware and layout um1658 18/39 docid025097 rev 1 4.8 solder bridges table 4. Solder bridge settings bridge state (1) description sb16,17 (x2 crystal) (2) off x2, c13, c14, r22 and r23 provide a clock. Pf0, pf1 are disconnected from p1. On pf0, pf1 are connected to p1 (r22, r23 and sb18 must not be...

  • Page 19

    Docid025097 rev 1 19/39 um1658 hardware and layout 38 4.9 extension connectors the male headers p1 and p2 can connect the 32f0308discovery to a standard prototyping/wrapping board. Stm32f030r8t6 gpi/os are available on these connectors. P1 and p2 can also be probed by an oscilloscope, logical analyz...

  • Page 20

    Hardware and layout um1658 20/39 docid025097 rev 1 pa6 spi1_miso, tim3_ch1, tim1_bkin, tim16_ch1, eventout, adc_in6 22 23 pa7 spi1_mosi, tim3_ch2, tim14_ch1, tim1_ch1n, tim17_ch1, eventout, adc_in7 23 24 pa8 usart1_ck, tim1_ch1, eventout, mco 41 25 pa9 usart1_tx, tim1_ch2, tim15_bkin, i2c1_scl 42 24...

  • Page 21

    Docid025097 rev 1 21/39 um1658 hardware and layout 38 pa15 spi1_nss, usart1_rx, usart2_rx, eventout 50 16 pb0 tim3_ch3, tim1_ch2n, eventout 26 27 pb1 tim3_ch4, tim14_ch1, tim1_ch3n 27 28 pb2 - 28 29 pb3 spi1_sck, eventout 55 swo 6 11 pb4 spi1_miso, tim3_ch1, eventout 56 10 pb5 spi1_mosi, i2c1_smba, ...

  • Page 22

    Hardware and layout um1658 22/39 docid025097 rev 1 pb11 i2c1_sda, i2c2_sda, eventout 30 31 pb12 spi1_nss, spi2_nss, tim1_bkin, eventout 33 32 pb13 spi1_sck, spi2_sck, tim1_ch1n 34 32 pb14 spi1_miso, spi2_miso, tim1_ch2n, tim15_ch1 35 31 pb15 spi1_mosi, spi2_mosi, tim1_ch3n, tim15_ch1n, tim15_ch2 36 ...

  • Page 23

    Docid025097 rev 1 23/39 um1658 hardware and layout 38 pc11 - 52 14 pc12 - 53 13 pc13 rtc_tamp1, rtc_ts, rtc_out, wkup2 2 4 pc14- osc32_ in osc32_in 3 osc32_in 5 pc15- osc32_ out osc32_out 4 osc 32_out 6 pd2 tim3_etr 54 12 pf0- osc_in osc_in 5 osc_in 7 pf1- osc_ out osc_out 6 osc _ou t 8 pf4 eventout...

  • Page 24

    Hardware and layout um1658 24/39 docid025097 rev 1 vss_1 63 vss_2 31 vssa 12 5v 1 3v 1 vdd 5 gnd 2 2 gnd gnd 3 gnd 9 gnd 33 33 table 5. Mcu pin description versus board function (continued) mcu pin board function main function alternate functions lq fp6 4 p u sh button led swd osc f re e i/ o power ...

  • Page 25

    Docid025097 rev 1 25/39 um1658 connecting modules on the prototyping board 38 5 connecting modules on the prototyping board this section gives some examples of how to connect ready-to-use modules available from different manufacturers to the stm32f030 value line discovery kit via the prototyping boa...

  • Page 26

    Connecting modules on the prototyping board um1658 26/39 docid025097 rev 1 table 7. Connecting using idc10 mikroelektronica idc10 connector 32f0308discovery p0 gpio pc0 gpio output (3.3v tolerant) p1 gpio pc1 gpio output (3.3v tolerant) p2 gpio pc2 gpio output (3.3v tolerant) p3 gpio pc3 gpio output...

  • Page 27

    Docid025097 rev 1 27/39 um1658 connecting modules on the prototyping board 38 the figure 10 illustrates the connections between the 32f0308discovery and the 2 connectors, idc10 and mikrobus™. Figure 10. Using idc10 and mikrobus™ connectors.

  • Page 28

    Connecting modules on the prototyping board um1658 28/39 docid025097 rev 1 5.2 st mems “adapter boards”, standard dil24 socket stmicroelectronics has defined a standard dil24 connector to easily evaluate its mems sensors connected to a microcontroller through spi or i2c communications. Table 8 is on...

  • Page 29

    Docid025097 rev 1 29/39 um1658 connecting modules on the prototyping board 38 figure 11 illustrates the connections between the 32f0308discovery and the dil24 socket. Figure 11. Dil24 socket connections.

  • Page 30

    Connecting modules on the prototyping board um1658 30/39 docid025097 rev 1 supported mems adapter boards table 9 is a list of supported mems adapter boards as of april, 2012. Table 9. Supported mems adapter boards st mems dil24 eval board core product steval-mki009v1 lis3lv02dl steval-mki013v1 lis30...

  • Page 31

    Docid025097 rev 1 31/39 um1658 connecting modules on the prototyping board 38 note: for an up-to-date list, visit http://www.St.Com/internet/evalboard/subclass/1116.Jsp . The dil24 boards are described as “adapter boards” in the field “general description”. 5.3 arduino shield boards arduino™ is an o...

  • Page 32

    Connecting modules on the prototyping board um1658 32/39 docid025097 rev 1 arduino digital connector 32f0308discovery d0 digital pin 0 or rx pa3 usart2_rx d1 digital pin 1 or tx pa2 usart2_tx d2 digital pin 2 / external interrupt pb12 exti (5v tolerant) d3 digital pin 3 / ext int or pwm pb11 exti (5...

  • Page 33

    Docid025097 rev 1 33/39 um1658 connecting modules on the prototyping board 38 figure 12 illustrates the connections between the 32f0308discovery and the arduino shield boards. Figure 12. Arduino shield board connections.

  • Page 34: 6 Mechanical

    Mechanical drawing um1658 34/39 docid025097 rev 1 6 mechanical drawing figure 13. 32f0308discovery mechanical drawing mb1134 reva stm32f0308-disco.

  • Page 35: 7 Electrical

    Docid025097 rev 1 35/39 um1658 electrical schematics 38 7 electrical schematics figure 14. 32f0308discovery stmicroelectronics title: n u mber: r ev : s h eet of a.1(pcb.Sch) date: 7/4/2013 mb1134 1 s tm 32f030 discovery pa13 pa14 nrst pb3 mco pa10 pa9 u _ st_link st_l ink_v2.Schdoc pa13 pa14 tck/sw...

  • Page 36

    Electrical schematics um1658 36/39 docid025097 rev 1 figure 15. St-link/v2 (swd only) stmicroelectronics title: n u mber: r ev : s h eet of a.1(pcb.Sch) date: 7/1/2013 c10 20 p f c11 2 0pf 1 2 x1 8 mhz 3v usb_dm usb_dp stm_r s t t_jt ck t_jtck t_jt do t_jt di t_jtms stm_jtms stm_ jt ck o sc_in o sc_...

  • Page 37

    Docid025097 rev 1 37/39 um1658 electrical schematics 38 figure 16. Mcu stmicroelectronics title: n u mber: r ev : s h eet of a.1(pcb.Sch) date: 7/4/2013 mb1134 3 3 s tm 32f030 discovery mcu c21 10 0 n f c19 10 0 n f vdd c20 10 0 n f vdd pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 pa8 pa9 pa10 pa11 pa12 pa13 pa1...

  • Page 38: 8 Revision

    Revision history um1658 38/39 docid025097 rev 1 8 revision history table 11. Document revision history date revision changes 03-sep-2013 1 initial release..

  • Page 39

    Docid025097 rev 1 39/39 um1658 39 please read carefully: information in this document is provided solely in connection with st products. Stmicroelectronics nv and its subsidiaries (“st”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products...

  • Page 40: Mouser Electronics

    Mouser electronics authorized distributor click to view pricing, inventory, delivery & lifecycle information: stmicroelectronics : steval-mki084v1.