ST STM32 NUCLEO-F042K6 User Manual

ST STM32 NUCLEO-F042K6 User Manual

Stm32 nucleo-32 boards

Advertisement

UM1956
User manual
STM32 Nucleo-32 boards
Introduction
The STM32 Nucleo-32 board (NUCLEO-F031K6, NUCLEO-F042K6, NUCLEO-F303K8,
NUCLEO-L031K6) provides an affordable and flexible way for users to try out new concepts
and build prototypes with STM32 microcontrollers, choosing from the various combinations
of performance, power consumption and features. The Arduino Nano connectivity support
makes it easy to expand the functionality of the Nucleo-32 open development platform with
a wide choice of specialized shields. The STM32 Nucleo-32 board does not require any
separate probe as it integrates the ST-LINK/V2-1 debugger/programmer. The Nucleo-32
board comes with the STM32 comprehensive software HAL library together with various
packaged software examples, as well as direct access to mbed online resources at
http://mbed.org.

Figure 1. STM32 Nucleo-32 board

1. Picture not contractual
October 2015
DocID028406 Rev 1
1/31
www.st.com
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32 NUCLEO-F042K6 and is the answer not in the manual?

Questions and answers

Summary of Contents for ST STM32 NUCLEO-F042K6

  • Page 1: Figure 1. Stm32 Nucleo-32 Board

    Nucleo-32 open development platform with a wide choice of specialized shields. The STM32 Nucleo-32 board does not require any separate probe as it integrates the ST-LINK/V2-1 debugger/programmer. The Nucleo-32 board comes with the STM32 comprehensive software HAL library together with various packaged software examples, as well as direct access to mbed online resources at http://mbed.org.
  • Page 2: Table Of Contents

    Embedded ST-LINK/V2-1 ........13...
  • Page 3 UM1956 Contents Revision history ......... . . 30 DocID028406 Rev 1 3/31...
  • Page 4 List of tables UM1956 List of tables Table 1. Ordering information ............8 Table 2.
  • Page 5 ST-LINK/V2-1 ........
  • Page 6: Features

    Features • STM32 microcontrollers in 32-pin packages • Extension with Arduino Nano connectivity • mbed-enabled (http://mbed.org) • On-board ST-LINK/V2-1 debugger/programmer • USB re-enumeration capability, three different interfaces supported on USB: – Virtual Com port – Mass storage – Debug port •...
  • Page 7: Product Marking

    Any consequences deriving from such usage will not be at ST charge. In no event, ST will be liable for any customer usage of these engineering sample tools as reference design or in production.
  • Page 8: Ordering Information

    Ordering information UM1956 Ordering information The order codes and the respective targeted STM32 are listed in the below Table Table 1. Ordering information Target STM32 Order code STM32F031K6T6 NUCLEO-F031K6 STM32F042K6T6 NUCLEO-F042K6 STM32F303K8T6 NUCLEO-F303K8 STM32L031K6T6 NUCLEO-L031K6 The meaning of NUCLEO-TXXXKY codification is as follows: •...
  • Page 9: Conventions

    UM1956 Conventions Conventions Table 2 provides the conventions used for the ON and OFF settings in the present document. Table 2. ON/OFF conventions Convention Definition Jumper JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Solder bridge SBx ON SBx connections closed by solder or 0 ohm resistor Solder bridge SBx OFF SBx connections left open...
  • Page 10: Quick Start

    • The demonstration software and several software examples on how to use the Nucleo- 32 board features, are available at www.st.com/stm32nucleo webpage. • Develop your own application using available examples. System requirements •...
  • Page 11: Hardware Layout And Configuration

    The Nucleo-32 board is based on a 32-pin STM32 microcontroller in LQFP or UFQFPN package. Figure 2 illustrates the connections between the STM32 and its peripherals (ST-LINK/V2-1, push button, LED, and Arduino Nano connectors). Figure 3: Top layout view of the Nucleo-32 board...
  • Page 12 Figure 3. Top layout view of the Nucleo-32 board ST-LINK Micro B USB connector (Red/Green LED) ST-LINK SWD connector (reserved) Connect VCP TX to ST-LINK Power configuration Connect VCP RX to ST-LINK Connect PF1/PC15 to D7 Connect PF1/PC15 to X1 Connect PF0/PC14 to X1 Connect PF0/PC14 to D8...
  • Page 13: Embedded St-Link/V2-1

    SB15 Connect D13 to LD3 Embedded ST-LINK/V2-1 The ST-LINK/V2-1 programming and debugging tool is integrated in the Nucleo-32 board. The ST-LINK/V2-1 makes the Nucleo-32 board mbed enabled. The embedded ST-LINK/V2-1 supports only the SWD for STM32 devices. For information about debugging and programming features refer to: ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 (UM1075 User manual), which describes in detail all the ST-LINK/V2 features.
  • Page 14: Drivers

    The embedded ST-LINK/V2-1 is directly connected to the SWD port of the target STM32. 6.1.1 Drivers The ST-LINK/V2-1 requires a dedicated USB driver, which, for Windows XP, 7 and 8, can be found at www.st.com. In case the STM32 Nucleo board is connected to the PC before the driver is installed, some Nucleo interfaces may be declared as “Unknown”...
  • Page 15: Power Supply And Power Selection

    +5V or +3V3 is used to power the Nucleo-32 board, this power source must comply with the standard EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with limited power capability. In case the power supply is +3V3, the ST-LINK is not powered and cannot be used. 6.2.1 Power supply input from USB connector The Nucleo-32 board and shield board can be powered from the ST-LINK USB connector CN1.
  • Page 16: External Power Supply Inputs

    SB9 must be OFF. VIN or +5V power supply When powered from VIN or +5V, it is still possible to use ST-LINK for communication for programming or debugging only, but it is mandatory to power the board first, using VIN or +5V, then to connect the USB cable to the PC.
  • Page 17: 3V3 Power Supply

    Using the +3V3 (CN4 pin 14) directly as power input, can be interesting, for instance, in case the 3.3V is provided by a shield board. In this case the ST-LINK is not powered, thus programming and debug features are not available. When the board is powered by +3V3 (CN4 pin 14), the solder bridge SB14 and SB9 (NRST) must be OFF.
  • Page 18: Jp1 (Idd)

    PF1 / PC15 1. In applications, where VCP is used for communication at speed higher than 9600 bauds, it may be needed to use this solder bridge configuration, to use 8MHz clock (MCO from ST-LINK) to get a more precise frequency.
  • Page 19: Solder Bridges

    Green user LED LD3 is connected to D13 of Arduino Nano signal. SB15 (LD3-LED) Green user LED LD3 is not connected. The NRST signal of ST-LINK is connected to the NRST pin of the STM32. SB9 (NRST) The NRST signal of ST-LINK is not connected to the NRST pin of the STM32, when used external power (+3V3, +5V) as power supply.
  • Page 20: Arduino Nano Connectors

    Hardware layout and configuration UM1956 Table 7. Solder bridges (continued) State Bridge Description STM32 PB7 is connected to CN4 pin 8 for I2C SCL support on Arduino Nano A4. In such case STM32 PB7 does not support Arduino Nano D4 and PA5 must be configured as input floating. SB18 CN4 pin 8 is used as Arduino Nano analog input A4 without I2C support and CN3 pin 7 is available as Arduino Nano D4.
  • Page 21: Table 9. Arduino Nano Connectors On Nucleo-F042K6

    UM1956 Hardware layout and configuration Table 8. Arduino Nano connectors on NUCLEO-F031K6 (continued) Connector Pin number Pin name STM32 pin Function Ground RESET NRST RESET 5V input/output ADC_IN2 ADC_IN7 ADC_IN6 || I2C1_SCL ADC_IN5 || I2C1_SDA ADC_IN4 ADC_IN3 ADC_IN1 ADC_IN0 AREF AVDD +3V3 3.3V input/output...
  • Page 22 Hardware layout and configuration UM1956 Table 9. Arduino Nano connectors on NUCLEO-F042K6 (continued) Connector Pin number Pin name STM32 pin Function TIM14_CH1 TIM1_CH1 PA11 SPI_CS || TIM1_CH4 SPI1_MOSI || TIM3_CH2 SPI1_MISO Right connector Power input Ground RESET NRST RESET 5V input/output ADC_IN2 ADC_IN7 ADC_IN6 || I2C1_SCL...
  • Page 23: Table 10. Arduino Nano Connectors On Nucleo-F303K8

    UM1956 Hardware layout and configuration Table 10. Arduino Nano connectors on NUCLEO-F303K8 Connector Pin number Pin name STM32 pin Function Left connector USART1_TX PA10 USART1_RX RESET NRST RESET Ground PA12 TIM3_CH3 TIM16_CH1N TIM3_CH4 TIM1_CH1 PA11 SPI_CS || TIM1_CH4 SPI1_MOSI || TIM17_CH1 SPI1_MISO Right connector Power input...
  • Page 24: Table 11. Arduino Nano Connectors On Nucleo-L031K6

    Hardware layout and configuration UM1956 Table 11. Arduino Nano connectors on NUCLEO-L031K6 Connector Pin number Pin name STM32 Pin Function Left connector USART2_TX PA10 USART2_RX RESET NRST RESET Ground PA12 TIM2_CH3 TIM21_CH1 TIM2_CH4 PC14 PC15 TIM2_CH1 PA11 SPI_CS || TIM21_CH2 SPI1_MOSI || TIM22_CH2 SPI1_MISO Right connector...
  • Page 25: Figure 6. Nucleo-F031K6, Nucleo-F042K6, Nucleo-F303K8 Pin Assignment

    UM1956 Hardware layout and configuration Figure 6. NUCLEO-F031K6, NUCLEO-F042K6, NUCLEO-F303K8 pin assignment Figure 7. NUCLEO-L031K6 pin assignment DocID028406 Rev 1 25/31...
  • Page 26: Electrical Schematics

    Electrical schematics Figure 8. Nucleo-32 board top view U_MCU_32 U_ST_LINK_V2-1 MCU_32.SchDoc ST_LINK_V2-1.SCHDOC VCP_TX STLK_RX VCP_RX STLK_TX SWCLK SWDIO NRST NRST REV B: SB14 changed to JP1 Jumper for easy IDD measurement, and enlarge board length; CN1 USB PN changed to Micro-B for Device. REV C: Add SB18/SB16 for connecting D4/D5 to A4/A5 REV C.2: correct silkscreen D7/D8 on SB6 and SB8 Title:...
  • Page 27: Figure 9. Mcu

    Figure 9. MCU SB17 AVDD VCP_TX PB1/NPOR SB11 PB2/VSS2 100nF 100nF 100nF SB13 PB8/VSS3 PA10 PA10 PA11 PA11 VDD3 PA12 PA12 VDD2/VDD_USB PA13 AVDD SWDIO PA13 PA14 SB10 SWCLK PA14 VDDA/VREF+ PA15 BEAD VCP_RX PA15 NRST NRST KSS221G PF0/PC14 PF1/PC15 BOOT0/PB8/PH3 SB12 BOOT0...
  • Page 28: Figure 10. St-Link/V2-1

    Figure 10. ST-LINK/V2-1 +3V3_ST_LINK T_JTCK TCK/SWCLK TMS/SWDIO T_JTMS T_NRST +3V3_ST_LINK NRST T_SWO 100nF 100nF 100K Board Ident: PC13=0 R13 10K[N/A] +3V3_ST_LINK STM_JTMS STM_JTCK +3V3_ST_LINK [N/A] STM32F103CBT6 10pF 10pF VBAT VDD_2 +3V3_ST_LINK +3V3_ST_LINK PC13 VSS_2 STM_JTMS PC14 JTMS/SWDIO NX3225GD 8MHz EXS00A-CG04874...
  • Page 29: Appendix A Mechanical Dimensions

    UM1956 Mechanical dimensions Appendix A Mechanical dimensions Figure 11. Nucleo-32 board mechanical dimensions in millimeter DocID028406 Rev 1 29/31...
  • Page 30: Table 12. Document Revision History

    Revision history UM1956 Revision history Table 12. Document revision history Date Revision Revision Details 14-Oct-2015 Initial version. 30/31 DocID028406 Rev 1...
  • Page 31 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 acknowledgement.

This manual is also suitable for:

Stm32 nucleo-f303k8Stm32 nucleo-l031k6

Table of Contents