The STM32G0 Nucleo-32 board based on the MB1455 reference board (NUCLEO-G031K8) provides an affordable and flexible
way for users to try out new concepts and build prototypes by choosing from the various combinations of performance and
power consumption features, provided by the STM32G0 microcontroller.
The Arduino™ Nano V3 connectivity support allows the easy expansion of the functionality of the STM32 Nucleo open
development platform with a wide choice of specialized shields.
The STM32G0 Nucleo-32 board does not require any separate probe as it integrates the ST-LINK/V2-1 debugger/programmer.
The STM32G0 Nucleo-32 board comes with the STM32 comprehensive free software libraries and examples available with the
STM32CubeG0 MCU Package.
Figure 1. NUCLEO-G031K8 top view
Figure 2. NUCLEO-G031K8 bottom view
Pictures are not contractual.
UM2591 - Rev 1 - June 2019
For further information contact your local STMicroelectronics sales office.
www.st.com
Page 2
1Features
•STM32G031K8T6U microcontroller (Arm® Cortex®-M0+ at 64 MHz) in LQFP32 package, featuring
64 Kbytes of Flash memory and 8 Kbytes of SRAM
•1 user LED
•1 RESET or user push-button
•Board connectors:
–Arduino™ Nano V3 expansion connector
–USB with Micro-B
•Flexible power-supply options: ST-LINK USB V
•On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability: mass storage, Virtual
COM port, and debug port
•Comprehensive free software libraries and examples available with the STM32CubeG0 MCU Package
•
Support of a wide choice of Integrated Development Environments (IDEs) including IAR™, Keil®, GCCbased IDEs
Note:Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
or external sources
BUS
UM2591
Features
UM2591 - Rev 1
page 2/26
Page 3
2Ordering information
To order the STM32G0 Nucleo-32 board, refer to Table 1. Additional information is available from the datasheet
and reference manual of the target STM32.
Order codeReference boardTarget STM32
NUCLEO-G031K8MB1455STM32G031K8T6U
2.1Product marking
Evaluation tools marked as “ES” or “E” are not yet qualified and therefore not ready to be used as reference
design or in production. 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.
“E” or “ES” marking examples of location:
•On the targeted STM32 that is soldered on the board (for illustration of STM32 marking, refer to the STM32
datasheet “Package information” paragraph at the www.st.com website).
•Next to the evaluation tool ordering part number that is stuck or silk-screen printed on the board.
This board features a specific STM32 device version, which allows the operation of any bundled commercial
stack/library available. This STM32 device shows a "U" marking option at the end of the standard part number
and is not available for sales.
In order to use the same commercial stack in his application, a developer may need to purchase a part number
specific to this stack/library. The price of those part numbers includes the stack/library royalties.
UM2591
Ordering information
Table 1. List of available products
2.2Products and codification
The meaning of the codification is explained in Table 2.
NUCLEO-XXYYKTDescriptionExample: NUCLEO-G031K8
XXMCU series in STM32 Arm Cortex MCUsSTM32G0 Series
YYMCU product line in the seriesSTM32G031
KSTM32 package pin count32 pins
T
The order code is mentioned on a sticker placed on the top side of the board.
STM32 Flash memory size:
•8 for 64 Kbytes
Table 2. Codification explanation
64 Kbytes
UM2591 - Rev 1
page 3/26
Page 4
3Development environment
3.1System requirements
UM2591
Development environment
•Windows® OS (7, 8 and 10), Linux® 64-bit, or macOS
•USB Type-A to Micro-B cable
Note:
macOS® is a trademark of Apple Inc. registered in the U.S. and other countries.
3.2Development toolchains
•Keil® free MDK-ARM (see note)
•IAR™ EWARM (see note)
•GCC-based IDEs
Note:
On Windows® only.
3.3Demonstration software
The demonstration software, included in the STM32Cube MCU Package corresponding to the on-board
microcontroller, is preloaded in the STM32 Flash memory for easy demonstration of the device peripherals in
standalone mode. The latest versions of the demonstration source code and associated documentation can be
downloaded from www.st.com.
®
UM2591 - Rev 1
page 4/26
Page 5
4Conventions
Table 3 provides the conventions used for the ON and OFF settings in the present document.
ConventionDefinition
Jumper JPx ONJumper fitted
Jumper JPx OFFJumper not fitted
Jumper JPx [1-2]Jumper should be fitted between Pin 1 and Pin 2
Solder bridge SBx ONSBx connections closed by 0 Ω resistor
Solder bridge SBx OFFSBx connections left open
Resistor Rx ONResistor soldered
Resistor Rx OFFResistor not soldered
UM2591
Conventions
Table 3. ON/OFF convention
UM2591 - Rev 1
page 5/26
Page 6
5Quick start
The STM32G0 Nucleo-32 board is a low-cost and easy-to-use development kit, used to evaluate and start a
development quickly with an STM32G0 Series microcontroller in LFQFP 32-pin package. Before installing and
using the product, accept the Evaluation Product License Agreement from the www.st.com/epla webpage. For
more information on the STM32G0 Nucleo-32 and for demonstration software, visit the www.st.com/stm32nucleo
webpage.
5.1Getting started
Follow the sequence below to configure the STM32G0 Nucleo-32 board and launch the demonstration application
(refer to Figure 4 for component location):
1.Check the jumper position on the board (refer to Table 4)
2.For the correct identification of the device interfaces from the host PC and before connecting the board,
install the ST-LINK/V2-1 USB driver available on the www.st.com website
3.To power the board, connect the STM32G0 Nucleo-32 board to a PC with a USB cable (Type-A to Micro-B)
through the USB connector CN1 of the board
4.Then, red LED LD1 (COM) and green LED LD2 (5V_PWR) light up, green LED LD3 blinks
5.Remove the jumper placed between D2 (CN3 pin 5) and GND (CN3 pin 4)
6.Observe how the blinking of the green LED LD3 changes, when the jumper is in place or removed
7.Download the demonstration software and several software examples that help to use the STM32 Nucleo
features. These are available on the NUCLEO-G031K8 webpage
8.Develop your own application using the available examples
UM2591
Quick start
Table 4. Jumper configuration
Jumper
JP1IDDONFor STM32G0 current measurement
1. Default jumper state is shown in bold.
Definition
Position
(1)
Comment
(1)
UM2591 - Rev 1
page 6/26
Page 7
6Hardware layout and configuration
The STM32G0 Nucleo-32 board is designed around an STM32G031 microcontroller in an LFQFP 32-pin
package. Figure 3 shows the connections between the STM32 and its peripherals (ST-LINK/V2-1, push-button,
LEDs, USB, and Arduino™ Nano). Figure 4. Top layout and Figure 5. Bottom layout show the location of these
features on the STM32G0 Nucleo-32 board. The mechanical dimensions of the board are shown in Figure 6.
Figure 3. Hardware block diagram
Nucleo-32 board
Micro
USB
UM2591
Hardware layout and configuration
connector
Arduino™ Nano
I/O
Embedded
ST-LINK/V2-1
STM32
microcontroller
RESET
B1
RST
LED
LD3
I/O
connector
Arduino™ Nano
UM2591 - Rev 1
page 7/26
Page 8
6.1PCB layout
UM2591
PCB layout
Figure 4. Top layout
red/green LED (COM)
LD1
LD4
red LED (OC)
SB2
ST-LINK reset
CN1 ST-LINK/V2-1
Micro-B USB connector
red LED (PWR)
LD2
U2
STM32G031K8T6U microcontroller
B1
RESET or user push-button
LD3
green LED (USER)
UM2591 - Rev 1
page 8/26
Page 9
Figure 5. Bottom layout
UM2591
PCB layout
Arduino™ Nano connector
CN4
CN3
Arduino™ Nano connector
U7
ST-LINK/V2-1 microcontroller
UM2591 - Rev 1
IDD measurement
JP1
page 9/26
Page 10
6.2Mechanical drawing
Figure 6. STM32G0 Nucleo-32 board mechanical drawing (in millimeter)
UM2591
Mechanical drawing
6.3Embedded ST-LINK/V2-1
The ST-LINK/V2-1 programming and debugging tool is integrated in the STM32G0 Nucleo-32 board.
For detailed information about the debugging and programming features of ST-LINK/V2-1, refer to the ST-LINK/V2
in-circuit debugger/programmer for STM8 and STM32 user manual (UM1075) and Overview of ST-LINK
derivatives technical note (TN1235).
Features supported by the ST-LINK/V2-1:
•USB software re-enumeration
•Virtual COM port interface on USB
•Mass storage interface on USB
UM2591 - Rev 1
page 10/26
Page 11
•USB power management request for more than 100 mA power on USB
Features not supported on ST-LINK/V2-1:
•SWIM interface
•Minimum supported application voltage limited to 3 V
Known limitation:
•Activating the readout protection on the STM32 target prevents the target application from running
afterwards. The target readout protection must be kept disabled on ST-LINK/V2-1 boards.
The embedded ST-LINK/V2-1 is directly connected to the SWD port of the target STM32.
6.3.1Drivers
The ST-LINK/V2-1 requires a dedicated USB driver, which, for Windows 7®, Windows 8® and Windows 10®, is
found at www.st.com.
In case the STM32G0 Nucleo-32 board is connected to the PC before the driver is installed, some STM32G0
Nucleo-32 interfaces may be declared as “Unknown” in the PC device manager. In this case, the user must install
the dedicated driver files, and update the driver of the connected device from the device manager a shown in .
Note:Prefer using the USB Composite Device handle for a full recovery.
Figure 7. USB composite device
UM2591
Power supply
6.3.2ST-LINK/V2-1 firmware upgrade
The ST-LINK/V2-1 embeds a firmware upgrade mechanism for in-situ upgrade through the USB port. As the
firmware may evolve during the lifetime of the ST-LINK/V2-1 product (for example new functionalities, bug fixes,
support for new microcontroller families), it is recommended to visit the www.st.com website before starting to use
the STM32G0 Nucleo-32 board and periodically, to stay up-to-date with the latest firmware version.
6.4Power supply
The power supply is provided either by the host PC through the USB cable, or by an external source: VIN (7 V 12 V), +5V (5 V) or +3V3 (3.3 V) power supply pins on CN4. In case VIN, +5V or +3V3 is used to power the
STM32G0 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 STLINK is not powered and cannot be used.
6.4.1Power supply input from the USB connector
The STM32G0 Nucleo-32 board and shield board can be powered from ST-LINK USB connector CN1. Only the
ST-LINK part is power supplied before the USB enumeration phase, as the host PC only provides 100 mA to the
boards at that time. During the USB enumeration, the STM32G0 Nucleo-32 board requires 300 mA of current to
the host PC. If the host is able to provide the required power, the target STM32 microcontroller is powered and
red LED LD2 is turned on, thus the STM32G0 Nucleo-32 board and its shield consume a maximum of 300 mA
current and not more. If the host is not able to provide the required current, the target STM32 microcontroller and
the shield board are not power supplied. As a consequence the red LED LD2 stays turned off. In such case, it is
mandatory to use an external power supply as explained in Section 6.4.2 External power supply inputs.
UM2591 - Rev 1
page 11/26
Page 12
UM2591
Power supply
SB1 is configured according to the maximum current consumption of the board. SB1 can be set to on to inform
the host PC that the maximum current consumption does not exceed 100 mA (even when the Arduino™ Nano
shield is plugged). In such condition, USB enumeration always succeeds since not more than 100 mA is
requested to the host PC. Possible configurations of SB1 are summarized in Table 5.
Table 5. SB1 configuration
Solder bridge statePower supplyAllowed current
SB1 OFF (default)
SB1 ON100 mA max
SB1 (ON/OFF)VIN, +3V3 or +5V powerFor current limitation, refer to Table 6
USB power through CN1
Attention:If the maximum current consumption of the STM32G0 Nucleo-32 board and its shield board exceeds 300 mA, it
is mandatory to power the STM32G0 Nucleo-32 board by means of an external power supply connected to VIN,
+5V or +3V3.
Note:In case the board is powered by a USB charger, there is no USB enumeration. LED LD2 remains off
permanently and the target STM32 is not powered. In this specific case, the SB1 must be set to on, to allow the
target STM32 to be powered anyway.
300 mA max
6.4.2External power supply inputs
The STM32G0 Nucleo-32 board and its shield board can be powered in three different ways from an external
power supply, depending on the voltage used. The three power sources are summarized in the Table 6.
Input power
name
VINCN4 pin 17 V to 12 V800mA
+5VCN4 pin 44.75 V to 5.25 V500mA-
+3V3CN4 pin 143 V to 3.6 V-ST-LINK not powered and SB2 and SB3 must be OFF.
VIN or +5V power supply
When powered from VIN or +5 V, 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 +5 V, then to connect the USB cable to
the PC. By this way the enumeration succeeds anyway, because of the external power source.
The following power sequence procedure must be respected:
1.Check that SB1 is OFF
2.Connect the external power source to VIN or +5V
3.Power on the external power supply 7 V < VIN < 12 V to VIN, or 5 V for +5V
4.Check that red LED LD2 is turned on
5.Connect the PC to USB connector CN1
If this order is not respected, the board may be powered by VBUS first, then by VIN or +5V, and the following risks
may be encountered:
Connector
pin
Table 6. External power sources
Voltage rangeMax currentLimitation
From 7 V to 12 V only and input current capability is
linked to input voltage:
•800 mA input current when VIN = 7 V
•450 mA input current when 7 V < VIN < 9 V
•300 mA input current when 10 V > VIN > 9 V
•less than 300 mA input current when VIN > 10 V
UM2591 - Rev 1
page 12/26
Page 13
1.If more than 300 mA current is needed by the board, the PC may be damaged or current supplied is limited
by the PC. As a consequence the board is not powered correctly.
2.300 mA is requested at enumeration (since SB1 must be OFF), so the risk exists that the request is rejected
and the enumeration does not succeed if the the PC cannot provide such current. Consequently the board is
not power supplied (LED LD2 remains off).
+3V3 power supply
Using the +3V3 (CN4 pin 14) directly as power input is interesting, for instance if the 3.3 V is provided by a shield
board. In this case, the ST-LINK is not powered, thus programming and debugging features are not available.
When the board is powered by +3V3 (CN4 pin 14), solder bridges SB2 (NRST) and SB3 must be OFF.
6.4.3External power supply output
When powered by USB or VIN, +5V (CN4 pin 4) can be used as output power supply for an Arduino™ Nano
shield. In this case, the maximum current of the power source specified in Table 6 must be respected.
+3.3V (CN4 pin 14) is also a possible power supply output. The current is limited by the maximum current
capability of the regulator U3 (500 mA max).
6.5Board functions
UM2591
Board functions
6.5.1LEDs
LD1 ST-LINK COM LED
The bicolor LED LD1 (green, red) provides information about ST-LINK communication status. LD1 default color is
red. LD1 turns to green to indicate that communication is in progress between the PC and the ST-LINK, with the
following setup:
•Blinking red: the first USB enumeration with the PC is taking place
•Red on: the initialization between the PC and ST-LINK is complete
•Blinking red or green: programming and debugging with target
•Green on: communication finished and successful
•Orange on: communication failure
LD2 PWR
The red LED indicates that the STM32G0 part is powered and 5 V power is available on CN4 pin 4.
LD3 USER
The LD3 USER green LED is connected to the following STM32G031K8T6 I/O:
•PB3, if the configuration is SB12 ON, and SB13 OFF
•PC6, if the configuration is SB12 OFF, and SB13 ON (default configuration)
It is also connected to the Arduino™ D13 signal when SB12 is ON. To light this LED, a high-logic state “1” must be
written in the corresponding GPIO PB3 or PC6. A transistor drives the LED, therefore its consumption does not
affect the STM32G0 power measurement.
LD4 USB power fault (OC, overcurrent)
The LD4 red LED indicates that the board power consumption on USB ST-LINK exceeds 500 mA. Therefore, the
user must check the root cause of the overconsumption, and consequently power the STM32G0 Nucleo-32 board
with an external power supply if needed.
6.5.2Push-button
B1 RESET/USER
This push-button is connected to NRST (PF2-NRST) and is used to reset the STM32G0 microcontroller or to
generate a USER event.
UM2591 - Rev 1
page 13/26
Page 14
6.5.3Current consumption measurement (IDD)
Jumper JP1, labeled IDD, is used to measure the STM32G0 microcontroller consumption by removing the jumper
and connecting an ammeter.
•JP1 ON: STM32G0 is powered by the +3V3 voltage (default)
•JP1 OFF: an ammeter must be connected to measure the STM32G0 current. If there is no ammeter, the
STM32G0 is not powered.
6.5.4Virtual COM port (VCP): USART
The STM32G0 Nucleo-32 board offers the possibility to connect a USART interface to the ST-LINK/V2-1.
Table 7. USART connection
Solder bridge configuration
SB3, SB4: ONUSART2 (PA2/PA3) connected to ST-LINK/V2-1 Virtual COM port.
1. The default configuration is in bold.
(1)
The communication between the target and the MCU is enabled on USART2 to support the Virtual COM port.
6.6Solder bridges
Feature
UM2591
Solder bridges
(1)
Table 8 details the solder bridges of the STM32G0 Nucleo-32 board.
Table 8. Solder bridge configuration
Solder bridge control
Solder
bridge (SB)
USB powerSB1
ST-LINK resetSB2
VCP_TXSB3
VCP_RXSB4
SWCLKSB5
BOOT0 pull-down resistorSB6
MCOSB7
SB8
32 kHz LSE quartz
SB9
(1)
State
ONUSB power limited to 100 mA max
OFFUSB power limited to 300 mA max
ONST-LINK in RESET state
OFFST-LINK normal operation
ONVCP_TX is connected to STM32G0 I/O PA3
OFFVCP_TX is not connected to STM32G0 I/O PA3
ONVCP_RX is connected to STM32G0 I/O PA2
OFFVCP_RX is not connected to STM32G0 I/O PA2
ONSWCLK is connected to STM32G0 I/O PA14
OFFSWCLK is not connected to STM32G0 I/O PA14
ON10 kΩ pull-down resistor not present on STM32G0 BOOT0 pin
OFF
10 kΩ pull-down resistor not present on STM32G0 BOOT0
pin
ONMCO from ST-LINK connected to STM32G0 PC14
OFFMCO from ST-LINK not connected to STM32G0 PC14
ON32 kHz LSE quartz enabled
OFF
32 kHz LSE quartz disabled (useful when using MCO function
from ST-LINK)
ON32 kHz LSE quartz enabled
OFF
32 kHz LSE quartz disabled (useful when using MCO function
from ST-LINK)
Description
(1)
UM2591 - Rev 1
page 14/26
Page 15
UM2591
Solder bridges
Solder bridge control
AREFSB10
3.3 V voltage regulatorSB11
USER LED
1. The default SB state is in bold.
Solder
bridge (SB)
SB12
SB13
State
ON
OFF
(1)
Description
AREF Arduino™ signal connected to 3.3 V
AREF Arduino™ signal not connected to 3.3 V
(1)
ON3.3 V main voltage regulator output enabled
3.3 V main voltage regulator output disabled (useful when
OFF
powering the STM32G0 Nucleo-32 with a 3.3 V applied on
CN4 pin 14)
ON
USER LED driven by STM32G0 PB3 also connected to
Arduino™ D13 pin
OFFUSER LED not driven by STM32G0 PB3
ONUSER LED driven by STM32G0 PC6
OFFUSER LED not driven by STM32G0 PC6
UM2591 - Rev 1
page 15/26
Page 16
7Board connectors
Several connectors are implemented on the STM32G0 Nucleo-32 board.
UM2591
Board connectors
7.1
Arduino™ Nano V3 connectors CN3 and CN4
The Arduino™ connectors CN3 and CN4 are male connectors compatible with the Arduino™ Nano V3 standard.
Most shields designed for Arduino™ can fit with the STM32G0 Nucleo-32 board.
The related pinout for Arduino™ connectors is shown in Figure 8 and listed in Table 9.
Federal Communications Commission (FCC) and Industry Canada (IC) Compliance Statements
9Federal Communications Commission (FCC) and Industry Canada
(IC) Compliance Statements
9.1FCC Compliance Statement
Part 15.19
This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this
device may not cause harmful interference, and (2) this device must accept any interference received, including
interference that may cause undesired operation.
Part 15.21
Any changes or modifications to this equipment not expressly approved by STMicroelectronics may cause
harmful interference and void the user's authority to operate this equipment.
Part 15.105
This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part
15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a
residential installation. This equipment generates uses and can radiate radio frequency energy and, if not installed
and used in accordance with the instruction, may cause harmful interference to radio communications. However,
there is no guarantee that interference will not occur in a particular installation. If this equipment does cause
harmful interference to radio or television reception which can be determined by turning the equipment off and on,
the user is encouraged to try to correct interference by one or more of the following measures:
•Reorient or relocate the receiving antenna.
•Increase the separation between the equipment and receiver.
•Connect the equipment into an outlet on circuit different from that to which the receiver is connected.
•Consult the dealer or an experienced radio/TV technician for help.
Note:Use only shielded cables.
9.2
Responsible party (in the USA)
Terry Blanchard
Americas Region Legal | Group Vice President and Regional Legal Counsel, The Americas
STMicroelectronics, Inc.
750 Canyon Drive | Suite 300 | Coppell, Texas 75019
USA
Telephone: +1 972-466-7845
IC Compliance Statement
Industry Canada ICES-003 Compliance Label: CAN ICES-3 (B) / NMB-3 (B).
UM2591 - Rev 1
page 19/26
Page 20
10CE conformity
10.1Warning
EN 55032 / CISPR32 (2012) Class A product
Warning: this device is compliant with Class A of EN55032 / CISPR32. In a residential environment, this
equipment may cause radio interference.
Avertissement : cet équipement est conforme à la Classe A de la EN55032 / CISPR 32. Dans un environnement
résidentiel, cet équipement peut créer des interférences radio.
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to 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.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks. All other product or service
names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.