STMicroelectronics STM32G071B-DISCO User Manual
The STMicroelectronics STM32G071B-DISCO is a development board designed to showcase and facilitate the use of the STM32G071RB microcontroller, particularly its USB Type-C™ and Power Delivery capabilities. It features an integrated ST-LINK/V2-1 debugger/programmer, a 128x64 pixel OLED display, and various connectivity options, including a USB Type-C™ receptacle connector, user-configurable GPIOs, and an 8-pin user connector for additional interfacing.
Διαφήμιση
Διαφήμιση
UM2401
User manual
STM32G0 Discovery kit for USB Type-C™ and Power Delivery
Introduction
The STM32G071B-DISCO Discovery board is a demonstration and development platform for the STMicroelectronics Arm ® Cortex ® -M0+ core-based STM32G071RB microcontroller and particularly the USB Type-C™ and Power Delivery controllers. The STM32G071B-
DISCO Discovery board is presented in a plastic casing with all necessary interfaces for easy connection to, and interoperability with, other USB Type-C™ devices. The
STM32G071B-DISCO Discovery board discovers and displays USB Type-C™ port capabilities such as data role, power role, V
BUS
and I
BUS monitoring. The integrated
ST-LINK/V2-1 provides an embedded in-circuit debugger and programmer for the STM32
MCU, allowing SWD debugging support and external GUI trace in the STM32Cube™
USB-PD monitor. All functions are accessible by a 4-way user joystick to glance through menus and information displayed by the 128 x 64 pixels OLED embedded display. An 8-pin user connector gathers all communication signals, with the possibility of additional internal
GPIO extensions.
The STM32G071B-DISCO Discovery board comes with the comprehensive free software libraries and examples available with the STM32Cube™ MCU Package.
Figure 1. STM32G071B-DISCO top view Figure 2. STM32G071B-DISCO bottom view
Pictures are not contractual.
December 2018 UM2401 Rev 1 1/36 www.st.com
1
Contents
Contents
UM2401
Development toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
STM32G071B-DISCO Discovery board layout . . . . . . . . . . . . . . . . . . . . 10
STM32G071B-DISCO Discovery mechanical drawing . . . . . . . . . . . . . . 12
Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
DC/DC converter to 5 V . . . . . . . . . . . . . . . . . . . . . 15
128 x 64 pixels OLED display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
IDD power consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4-way user joystick with selection button . . . . . . . . . . . . . . . . . . . . . . . . . 16
Power current sensing ICs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
USB Type-C™ operating modes and connections . . . . . . . . . . . . . . . . . . 16
USB Type-C™ Receptacle mechanical door lock . . . . . . . . . . . . . . . . . . 16
2/36 UM2401 Rev 1
UM2401 Contents
CN5 USB Type-C™ Plug cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
CN7 USB Type-C™ Receptacle connector . . . . . . . . . . . . . . . . . . . . . . . 21
USB Type-C™ tests points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Jumpers and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
STM32G071B-DISCO known limitations . . . . . . . . . . . . . . . . . . . . . . . . 26
Federal Communications Commission (FCC) and
Industry Canada (IC) Compliance Statements . . . . . . . . . . . . . . . . . . . 27
FCC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
IC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Déclaration de conformité . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
UM2401 Rev 1 3/36
3
List of tables
List of tables
UM2401
4/36 UM2401 Rev 1
UM2401
List of figures
List of figures
STM32G071B-DISCO board mechanical dimensions (top view) . . . . . . . . . . . . . . . . . . . . 12
UM2401 Rev 1 5/36
5
Features
1 Features
UM2401
• STM32G071RB microcontroller featuring 128 Kbytes of Flash memory and 32 Kbytes of RAM in LQFP64 package
• Plastic case
• 1” 128 x 64 pixels OLED LCD module with SPI interface
• USB Type-C™ interface plug cable and receptacle connector accessible by door with reed sensor detection
• 3 bidirectional current and power monitors with I 2 and CC2 protected and isolated lines
C interface to measure V
BUS
, CC1
• On-board DC/DC converter to sustain power supply with V
BUS
(+/- 5 %)
varying from 3 V to 20 V
• 4 user status LEDs about USB Type-C™ configuration
• 3 LEDs for power and ST-LINK communication
• 4-way joystick with selection button
• 1 reset push-button
• Board external connectors:
– USB Type-C™ plug cable
– USB Type-C™ receptacle connector
– 8-pin user extension connector including ADC, SPI, USART and I
2
C communication signals
– USB with Micro-AB (ST-LINK)
• Board internal connectors:
– 2 x 8-pin GPIOs free pins from microcontroller (accessible internally when case is removed)
– USB Type-C™ test points for main signals
• Flexible power-supply options: ST-LINK USB V
BUS
or USB Type-C™ V
BUS
• On-board ST-LINK/V2-1 debugger/programmer with USB enumeration capability: mass storage, Virtual COM port and debug port
• Comprehensive free software libraries and examples available with the STM32Cube™
MCU Package
• Support of a wide choice of integrated development environments (IDEs), including
IAR™, Keil
®
and GCC-based IDEs
6/36 UM2401 Rev 1
UM2401 General information
The STM32G071B-DISCO embeds an STM32 32-bit microcontroller based on the Arm ®(a)
Cortex ® -M0+ processor.
Evaluation tools marked as “ES” or “E” are not yet qualified and are therefore not ready to be used as reference design or in production. Any consequences arising from such usage will not be at STMicroelectronics’ charge. In no event will STMicroelectronics be liable for any customer usage of these engineering sample tools as reference designs 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 section Package information in the STM32 datasheet at www.st.com
).
• next to the evaluation tool ordering part number, that is stuck or silkscreen 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.
• Windows ® OS (7, 8 and 10), Linux ® 64-bit or macOS ®(b)
• USB Type-A to Micro-B cable a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and or elsewhere.
b. macOS
®
is a trademark of Apple Inc., registered in the U.S. and other countries.
UM2401 Rev 1 7/36
35
Conventions
5 Conventions
UM2401
Table 1
provides the conventions used for the ON and OFF settings in the present document.
Convention
Jumper JPx ON
Jumper JPx OFF
Solder bridge SBx ON
Solder bridge SBx OFF
Table 1. ON/OFF conventions
Definition
Jumper fitted
Jumper not fitted
SBx connections closed by solder or 0 Ohm resistor
SBx connections left open
• Keil ® MDK-ARM (a)
• IAR™ EWARM
(a)
• GCC-based IDEs
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
.
8/36
To order the STM32G071B-DISCO Discovery kit, refer to
.
Order code
Table 2. Ordering information
Target STM32
STM32G071B-DISCO STM32G071RB a. On Windows only
UM2401 Rev 1
UM2401
9
Hardware layout and configuration
Hardware layout and configuration
The STM32G071B-DISCO Discovery board is designed around the STM32 microcontroller in a 64-pin LQFP package.
Figure 3 shows the connections between the STM32 and the external peripherals (ST-
LINK/V2-1, USB Type-C™ connectors, OLED display, current/power monitors, LEDs, joystick, GPIO connectors).
show the location of these features on the STM32G071B-DISCO.
Figure 6 shows the PCB mechanical dimensions of the STM32G071B-DISCO Discovery
board.
Figure 7 shows the mechanical dimensions of the STM32G071B-DISCO Discovery board
with casing.
Figure 3. Hardware block diagram
9
86% 0LFUR%86%
FRQQHFWRU
5HVHW
,QKLELW
567
(PEHGGHG
67/,1.9
%
5HVHW
[2/('
'LVSOD\
567
-R\VWLFN
,2
670
0LFURFRQWUROOHU
,2
/('V
,&
9
6036
'&'&
FRQYHUWHU
86%7\SH&
3/8*,QWHUIDFH
FDEOH
&XUUHQW
3RZHU
0RQLWRU
9%86
&XUUHQW
3RZHU
0RQLWRU
&&
&XUUHQW
3RZHU
0RQLWRU
&&
86%7\SH&
5(&(37$&/(
,QWHUIDFH
FRQQHFWRU
0HFKDQLFDO
GRRUORFN
06Y9
UM2401 Rev 1 9/36
35
Hardware layout and configuration
86%7\SH&
Ρ
3OXJ
LQWHUIDFHFDEOH
UM2401
Figure 4. Top layout
86%7\SH&
Ρ
5HFHSWDFOHLQWHUIDFH
6:UHHGVHQVRU
3ODVWLFFDVLQJ
[SL[HOV
2/('GLVSOD\
5HVHWEXWWRQ
67/,1.86%
PLFUR%LQWHUIDFH
SLQ86(5
H[WHQVLRQFRQQHFWRU
'&'&FRQYHUWHU
9%86WR96036
ZD\MR\VWLFNZLWK
VHOHFWLRQEXWWRQ
SLQ*3,2
LQWHUQDOFRQQHFWRUV
06Y9
10/36 UM2401 Rev 1
UM2401
Figure 5. Bottom layout
Hardware layout and configuration
&1,''SRZHU
FRQVXPSWLRQ
PHDVXUHPHQW
-367/,1.5HVHW
670)
67/,1.
/'67/,1.FRP
/('
670*5%7
PLFURFRQWUROOHU
SLQ*3,2
LQWHUQDOFRQQHFWRUV
86%7\SH& OLQH
WHVWSRLQWV
/'67/,1.
)DXOW
-3WDUJHW5HVHW
06Y9
UM2401 Rev 1 11/36
35
Hardware layout and configuration
Figure 6. STM32G071B-DISCO board mechanical dimensions (top view)
UM2401
12/36 UM2401 Rev 1
UM2401 Hardware layout and configuration
Figure 7. Mechanical drawing with casing
UM2401 Rev 1 13/36
35
Hardware layout and configuration UM2401
The ST-LINK/V2-1 programming and debugging tool is integrated on the STM32G071B-
DISCO Discovery board. Compared to ST-LINK/V2 the changes are listed below.
The new features supported on ST-LINK/V2-1 are:
• USB software re-enumeration
• Virtual COM port interface on USB
• Mass storage interface on USB
• USB power management request for more than 100 mA power on USB
These features are no more supported on ST-LINK/V2-1:
• SWIM interface
• Application voltage lower than 3 V
For all general information concerning debugging and programming features common between V2 and V2-1 refer to ST-LINK/V2 in-circuit debugger/programmer for STM8 and
STM32 User manual (UM1075) .
9.3.1 Drivers
Before connecting the STM32G071B-DISCO to a Windows ® (7, 8, 10) PC via USB, a driver for ST-LINK/V2-1 must be installed. It is available from the www.st.com
website.
Note:
If the STM32G071B-DISCO Discovery kit is connected to the PC before the driver is installed, there is a possibility that the Windows ® device manager reports some USB devices found on the STM32G071B-DISCO as Unknown . To recover from such a situation, after installing the dedicated driver downloaded from www.st.com
, the association of the
STM32G071B-DISCO Unknown USB device to the dedicated driver must be updated in the device manager manually.
It is recommended to proceed using the USB Composite Device line, as shown in Figure 8
.
Figure 8. USB Composite Device
9.3.2 ST-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 functionality, bug fixes, support for new microcontroller families), it is
14/36 UM2401 Rev 1
UM2401 Hardware layout and configuration recommended to visit the www.st.com
website before starting to use the STM32G071B-
DISCO board and periodically, to stay up-to-date with the latest firmware version.
The STM32G071B-DISCO Discovery board is designed to be powered either by a ST-
LINK/V2-1 connected to a PC or by the USB Type-C™ connectors connected to a USB
Type-C™ device. The power supply is automatically managed and there is no need to configure the STM32G071B-DISCO Discovery board. The source of power supply can be known by the microcontroller by the two signals STLK_ON and SMPS_ON corresponding respectively to the ST-LINK/V2-1 source and 5 V generated by the DC/DC converter since the board is power supplied by USB Type-C™ connection.
When the STM32G071B-DISCO Discovery board is only connected to a USB Type-C™ device, the V
BUS
power supply may vary from 3 V to 20 V (+/- 5%) and the embedded
SMPS circuitry is able to generate the necessary 5 V internal power supply from the whole
V
BUS
input range.
As soon as the power supply is present on the board by one of the above power sources, the green LD1 LED POWER 5V is lit on the front panel.
To program/debug the STM32G071RB microcontroller, the STM32G071B-DISCO
Discovery board must be connected with the ST-LINK/V2-1 connector to a PC, otherwise the ST-LINK/V2-1 microcontroller is forced to a RESET state while the power source is not provided by the ST-LINK/V2-1 connector. This feature is managed by the ST-LINK inhibition circuitry (Q1 and Q2 transistors).
Up to 3 clock sources can be used as described below:
• MCO clock from U5 STM32F103CB ST-LINK/V2-1 microcontroller (default configuration)
• X2, 32 KHz crystal for the STM32G071RB microcontroller
• X3, 8 MHz oscillator for the STM32G071RB microcontroller
9.7
The general reset of the STM32G071B-DISCO board is active low. The reset sources are:
• Reset button B1
• Embedded ST-LINK/V2-1 (with JP2 and SB4 fitted)
USB Type-C™ V
BUS
DC/DC converter to 5 V
The STM32G071B-DISCO Discovery board can be directly power supplied by V
BUS
USB Type-C™ devices. In that case, V
BUS
from
may vary from 3 to 20V (+/- 5%) and the internal
5 V is generated to supply the STM32 microcontroller and the 128 x 64 pixels OLED display respectively with two embedded 3.3V and 3.6V LDO regulators. The DC/DC converter is able to provide a total source current up to 500mA. It can be controlled and enabled by the
EN_SMPS pin from the STM32G071RB microcontroller.
UM2401 Rev 1 15/36
35
Hardware layout and configuration
9.8 128 x 64 pixels OLED display
UM2401
The STM32G071B-DISCO Discovery board uses a white 128 x 64 pixels OLED panel matrix, high contrast, SPI driven, to display messages and user menus. It is interactively controlled by the STM32G071RB microcontroller and gives status about USB Type-C™ modes and operating context.
9.9 IDD power consumption measurement
The user can measure IDD power consumption of the STM32G071RB microcontroller by connecting an ammeter between pins 1 and 2 from CN6. CN6 connector is not fitted by default but must be added by users. To be able to measure the power consumption of the microcontroller, SB6 must be removed beforehand.
9.10 4-way user joystick with selection button
All menus and configuration can be performed with the 4-way user joystick UP, DOWN,
LEFT, RIGHT and validation keys.
9.11 Power current sensing ICs
The STM32G071B-DISCO Discovery board can monitor the current/power consumptions of the USB Type-C™ lines CC1, CC2 and V
BUS controlled by an I 2
. These high accuracy sensors are directly
C communication bus with the STM32G071RB microcontroller. They monitor both shunt voltage drops and bus supply voltage via a 15mOhm shunt resistor serially mounted respectively with the CC1, CC2 and V
BUS
lines.
9.12 USB Type-C™ operating modes and connections
The STM32G071B-DISCO Discovery board can be connected different ways. There are 3 operating modes as described here below:
• Standalone mode (or Sink mode): STM32G071B-DISCO Discovery board is connected to a single external device with its USB Type-C™ Plug interface. It mainly displays source capabilities of the external device.
• Spy mode: STM32G071B-DISCO Discovery board is connected to two USB Type-C™ external devices via its Plug and Receptacle interfaces. This is a non-intrusive connection giving information about devices roles and power characteristics.
• Advanced user mode: STM32G071B-DISCO Discovery board is connected to two USB
Type-C™ external devices via its Plug and Receptacle interfaces and the connection to the ST-LINK/V2-1 allows advanced debug mode and interfacing with ST USB PD GUI.
9.13 USB Type-C™ Receptacle mechanical door lock
The user can connect the STM32G071B-DISCO Discovery board in standalone mode to a single USB Type-C™ device with the USB Plug cable. In that case, the USB Type-C™ receptacle mechanical door must be locked. A detection reed sensor (SW1) is connected to the STM32 microcontroller to identify if the mechanical door is locked or not. This
16/36 UM2401 Rev 1
UM2401 Hardware layout and configuration determines the operating mode in which the system is configured. When the mechanical door is unlocked, this allows connections of a USB Type-C™ connector on the receptacle side. A little magnet is located into the mechanical plastic door (shown below). Please notice that once the board has been removed out of its casing, the simulation of the magnet action can be performed by fitting SB16 (door locked corresponds to SB16 fitted and door unlocked to SB16 not fitted).
Figure 9 illustrates the positions of the mechanical door according to the locked and
unlocked modes.
Figure 9. Mechanical door system
/RFNHGPRGH1R
UHFHSWDFOHFRQQHFWLRQ
8QORFNHGPRGH
5HFHSWDFOH
FRQQHFWLRQDOORZHG
0DJQHW
06Y9
9.14 Virtual COM port
The serial interface USART3 (or USART4) is directly available as a virtual COM port of the
PC, connected to the ST-LINK/V2-1 USB connector CN1. The virtual COM port settings are configured as: 115200 b/s, 8 bits data, no parity, 1 stop bit, no flow control.
The RESET button B1 is located on the top side of the STM32G071B-DISCO Discovery board and can be accessed by inserting a pointed instrument to press the button through the casing hole. See the
below. This action resets the STM32G071RB microcontroller.
Five LEDs are located on the front panel of the STM32G071B-DISCO Discovery board and their description is given in the
with LEDs located on the bottom side of the PCB.
describes the pictogram of the front panel and the associated LEDs.
UM2401 Rev 1 17/36
35
Hardware layout and configuration
Figure 10. Accessing the RESET button B1
UM2401
Reference
LD1
LD2
LD3
LD4
LD5
LD6
LD7
Color
Green
Red/Green
Red
Orange
Orange
Green
Green
Table 3. LEDs assignment and functions
Name Location
POWER 5V Top
ST-LINK COM Bottom
ST-LINK FAULT Bottom
SINK mode Top
SOURCE mode Top
SPY mode
CC
Top
Top
Function
5 V present onto the board
ST-LINK communication with host PC
ST-LINK Fault overcurrent
Attached to a power source
Attached to a device as source
SPY mode active
CC1 active line
Figure 11. LEDs and pictograms in front panel
/' /' /' /' /'
06Y9
18/36 UM2401 Rev 1
UM2401
10 Connectors
Connectors
10.1 CN1 User connectivity
CN1 is an 1x8-pin, 2.54mm pitch connector located on the right side of the STM32G071B-
DISCO Discovery board. A description is given below in the Table 4 . The default pins
assignment is shown on the second column of this table.
An alternate function, when available, can be selected by fitting a corresponding solder bridge described in the right column.
For example, users want to use DAC1_OUT1 functionalities of PA4 instead of USBPD2 features of PD2 (for pin 6 of CN1). In that case, SB12 must be fitted. Please notice that
SB12 fitting shorts PD2 and PD4 (see schematics for details), and then it is necessary to configure PD2 as an input floating pin to avoid any GPIO conflict.
Another example, SPI2 signals are required on CN1 for external communication with the
STM32G071B-DISCO Discovery board. Then SB12 and SB13 must be fitted to allow
SPI2_CLK and CPI2_MOSI available on CN1.
1
2
3
4
5
6
7
8
Pin number
Table 4. User connectivity CN1
Default assignment
VDD
5V_SMPS_VBUS
GND
PB2/SPI2_MISO/ADC_IN10
PD0/USBPD2_CC1
PD2/USBPD2_CC2
PB8/I2C1_SCL/USART3_TX
PB9/I2C1_SDA/USART3_RX
Alternate function
N/A
N/A
N/A
PA5/DAC1_OUT2/ADC_IN5
PB13/SPI2_CLK
PA4/DAC1_OUT1/ADC_IN4/SPI2_MO
SI
N/A
N/A -
-
SB12
AF when
SBxx fitted
-
-
-
SB11
SB13
10.2 CN5 USB Type-C™ Plug cable
CN5 is a 24-pin cable compatible with Universal Serial Bus Type-C™ specifications and
shown in Figure 12 . The pinout is described in Table 5 and
.
UM2401 Rev 1 19/36
35
Connectors
Figure 12. CN7 USB Type-C™ 24-pin connector
UM2401
20/36
Table 5. CN5 USB Type-C™ Plug cable
Pin number Assignment
A12
B1
B2
B3
A8
A9
A10
A11
A4
A5
A6
A7
A1
A2
A3
B8
B9
B10
B11
B12
B4
B5
B6
B7
SBU1
VBUS
RX2_N
RX2_P
GND
GND
TX2_P
TX2_N
GND
TX1_P
TX1_N
VBUS
CC
DP1
DM1
VBUS
VCONN
NC
NC
SBU2
VBUS
RX1_N
RX1_P
GND
UM2401 Rev 1
UM2401 Connectors
A12
GND RX2_P RX2_N VBUS SBU1
GND TX2_P TX2_N VBUS VCONN
B1
A11
B2
A10
B3
Table 6. CN5 USB Type-C™ Plug cable pinout
A9
B4
A8
B5
A7
DM1
-
B6
A6
DP1
-
B7
A5
B8
A4
B9
A3
CC VBUS TX1_N TX1_P GND
SBU2 VBUS RX1_N RX1_P GND
B10
A2
B11
A1
B12
10.3 CN7 USB Type-C™ Receptacle connector
CN7 is a 24-pin connector compatible with Universal Serial Bus Type-C™ specifications and shown in
. Please notice that the mechanical door system must be unlocked to be
able connecting a USB Type-C™ cable on CN7. The pinout is described in Table 7 and
Figure 13. CN7 USB Type-C™ 24-pin connector
Table 7. CN7 USB Type-C™ Receptacle connector
Pin number Assignment
A12
B1
B2
B3
A8
A9
A10
A11
A4
A5
A6
A7
A1
A2
A3
SBU1
VBUS
RX2_N
RX2_P
GND
GND
TX2_P
TX2_N
GND
TX1_P
TX1_N
VBUS
CC1
DP1
DM1
UM2401 Rev 1 21/36
35
Connectors UM2401
Table 7. CN7 USB Type-C™ Receptacle connector (continued)
Pin number Assignment
B8
B9
B10
B11
B12
B4
B5
B6
B7
VBUS
CC2
DP2
DM2
SBU2
VBUS
RX1_N
RX1_P
GND
A1 A2
Table 8. CN7 USB Type-C™ Receptacle connector pinout
A3 A4
GND TX1_P TX1_N VBUS
A5
CC1
A6
DP1
A7
DM1
A8 A9 A10 A11 A12
SBU1 VBUS RX2_N RX2_P GND
GND RX1_P RX1_N VBUS SBU2
B12 B11 B10 B9 B8
DM2
B7
DP2
B6
CC2
B5
VBUS TX2_N TX2_P GND
B4 B3 B2 B1
10.4 CN8 GPIO extension 1
CN8 connector is not fitted by default. CN8 is 2.54 pitch with 1x8-pin connector. The
description is given in Table 9
.
Table 9. CN8 GPIO extension 1
Pin number Assignment
4
5
6
7
8
1
2
3
PB0
PA15
PB1
PB3
PB4
PB5
PB14
GND
10.5 CN9 GPIO extension 2
CN9 connector is not fitted by default. CN9 is 2.54 pitch with 1x8-pin connector. The
description is given in Table 10
.
22/36 UM2401 Rev 1
UM2401 Connectors
Table 10. CN9 GPIO extension 2
Pin number Assignment
7
8
5
6
3
4
1
2
VDD
PD6
PC9
PC13
PD1
PD3
PD4
5V
10.6 USB Type-C™ tests points
Signals of USB Type-C™ can be monitored on tests points located on the bottom side of the
PCB. The tests points location is described in
Figure 14. USB Type-C™ tests points location
UM2401 Rev 1 23/36
35
Jumpers and solder bridges
11 Jumpers and solder bridges
UM2401
11.1 Jumpers
Here below are described in
Table 11 the jumper functions and their default status:
Table 11. Jumpers and description
Jumper
Name
Status
(1)
Function
JP1
JP2
ON
OFF
ON
OFF
1. Default status shown in bold
ST-LINK RESET
RESET TARGET MCU
Status
ST-LINK forced to RESET (no ST-LINK operation)
ST-LINK standard operation
ST-LINK RESET connected to TARGET MCU
ST-LINK RESET not connected to TARGET MCU
SB
Name
SB1
SB2
SB3
SB4
SB5
SB6
SB7
SB8
Here below are described in
Table 12 the solder bridges functions and their default status:
Table 12. Solder bridges and description
Status
(1)
Function Status
OFF
ON
OFF
ON
OFF
ON
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ST-LINK Power Supply
SWDIO TARGET MCU
SWCLK TARGET MCU
HW RESET TARGET MCU
MCO TARGET MCU
3V3 to TARGET MCU VDD
CC2 Line bypass
CC1 Line bypass
ST-LINK Power Supply ON
ST-LINK Power Supply OFF
ST-LINK SWDIO connected to TARGET MCU
ST-LINK SWDIO not connected to TARGET MCU
ST-LINK SWCLK connected to TARGET MCU
ST-LINK SWCLK not connected to TARGET MCU
ST-LINK RESET connected to TARGET MCU
ST-LINK RESET not connected to TARGET MCU
ST-LINK MCO connected to TARGET MCU
ST-LINK MCO not connected to TARGET MCU
3V3 connected to TARGET MCU VDD
3V3 not connected to TARGET MCU VDD
(2)
CC2 Line permanently connected to MCU
CC2 Line connection to MCU controlled by T2
CC1 Line permanently connected to MCU
CC1 Line connection to MCU controlled by T3
24/36 UM2401 Rev 1
UM2401 Jumpers and solder bridges
Table 12. Solder bridges and description (continued)
SB
Name
Status
(1)
Function Status
SB9
SB10
SB11
SB12
SB13
SB14
SB15
SB16
OFF
ON
OFF
ON
OFF
OFF
ON
OFF
ON
ON
OFF
ON
OFF
ON
OFF
ON
LTC3114 Converter mode
RD CC1
PA5 connected to CN1
PA4 connected to CN1
PB13 connected to CN1
USBPD2 DBCC1 Dead Battery mode Enabled
USBPD2 DBCC2 Dead Battery mode Enabled
SW1 Reed Sensor bypass
1. Default status shown in bold
2. SB6 must be OFF to allow power consumption measurement on CN6
Burst Mode control pin active
PWM Mode control pin active
RD CC1 (R56) permanently ON
RD CC1 (R56) controlled by T5
PA5 connected to CN1
PA5 not connected to CN1
PA4 connected to CN1
PA4 not connected to CN1
PB13 connected to CN1
PB13 not connected to CN1
USBPD2 DBCC1 Dead Battery mode Enabled
USBPD2 DBCC1 Dead Battery mode Disabled
USBPD2 DBCC1 Dead Battery mode Enabled
USBPD2 DBCC1 Dead Battery mode Disabled
SW1 is shorted (reed sensor permanently ON)
Standard operation SW1 controlled by magnet
UM2401 Rev 1 25/36
35
STM32G071B-DISCO known limitations UM2401
The STM32G071B-DISCO embeds an internal DC/DC converter on the V
BUS
line with high input filtering capacitors. When the Discovery is disconnected from the USB Type-C™ source device (Standalone or Sink Mode), the internal V
BUS may take some time to V
BUS
to reach the 0 V voltage level. For some USB Type-C™ devices which are sensitive to that condition before delivering again the V
BUS device and then expecting to have V
BUS
line near GND voltage level, the starting up of the
STM32G071B-DISCO can be delayed until the V
BUS
signal drops exponentially but it
as a source
and USB Type-C™ communication protocol have started. Consequently, even if the Discovery has been connected to the USB
Type-C™ source device, the V
BUS
power supply can be delivered later and then the
Discovery remains OFF until the V
BUS
from the source appears.
26/36 UM2401 Rev 1
UM2401Federal Communications Commission (FCC) and Industry Canada (IC) Compliance State-
13 Federal Communications Commission (FCC) and
Industry Canada (IC) Compliance Statements
13.1 FCC Compliance Statement
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.
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense.
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.
13.2 IC Compliance Statement
Industry Canada ICES-003 Compliance Label: CAN ICES-3 (A)/NMB-3(A).
13.3 Déclaration de conformité
Étiquette de conformité à la NMB-003 d'Industrie Canada: CAN ICES-3 (A)/NMB-3(A).
UM2401 Rev 1 27/36
35
Removal of the transparent backside cover for access to electronics
14 Removal of the transparent backside cover for access to electronics
UM2401
Completely unscrew the three screws as described Figure 15 below. All the jumpers,
connectors, solder bridges and tests points can be accessed on the bottom side of the printed circuit board.
Figure 15. Transparent backside cover removal
28/36 UM2401 Rev 1
UM2401
Appendix A Electrical schematics
Electrical schematics
This chapter provides design schematics for the STM32G071B-DISCO key features to help users to implement these features in application designs:
•
Figure 16: Overall schematics for the board on page 30
•
Figure 17: MCU and display on page 31
•
Figure 18: USB Type-C current sensing on page 32
•
Figure 19: Power Supply on page 33
•
Figure 20: ST-LINK V2.1 on page 34
UM2401 Rev 1 29/36
35
Figure 16. Overall schematics for the board
USB Type C
USB_typeC_CurrentSensing.SchDoc
I2C1_SDA
I2C1_SCL
ALERT_CC1
ALERT_CC2
ALERT_VBUS
ENCC1
ENCC2
RD_CC1
DOOR_SENSE
USBPD1_CC1
USBPD1_CC2
VBUS_P
ST-LINK v2.1
ST_LINK_V2_1.SchDoc
VCP_RX
VCP_TX
STLK_SWDIO
STLK_SWCLK
NRST
MCO
U_Power_Supply
Power_Supply.SchDoc
SMPS_ON
STLK_ON
EN_SMPS
VBUS_P
U_Mechanical
Mechanical.SchDoc
STM32G0 MCU and display
MCU_Display.SchDoc
I2C1_SDA
I2C1_SCL
ALERT_CC1
ALERT_CC2
ALERT_VBUS
ENCC1
ENCC2
RD_CC1
DOOR_SENSE
USBPD1_CC1
USBPD1_CC2
VCP_RX
VCP_TX
STLK_SWDIO
STLK_SWCLK
NRST
MCO
SMPS_ON
STLK_ON
EN_SMPS
Title:
Top
Project:
STM32G0 Discovery
Variant: DEFAULT
Revision:
Size: A4 Date: 29-10-18
Reference:
Sheet: 2
MB1378 of 7
Figure 17. MCU and display
EN_SMPS
SPI1_SCK
SPI1_MOSI
CS_DISP
USBPD1_CC1
RST_DISP
D/C_DISP
STLK_ON
SMPS_ON
STLK_SWDIO
STLK_SWCLK
I2C1_SCL
I2C1_SDA
ENCC1
ENCC2
RD_CC1
USBPD1_CC2
3V3_LDO
IDD
CN6
DNF
SB6
R37
100K
R35
0R
VDD
VDD
L2
R38
0R
USBPD1_DBCC1(PA9) and USBPD1_DBCC2(PA10) to GND
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PA10
PA11
PA12
PA13
PA14
42
43
44
45
46
22
23
24
36
37
17
18
19
20
21
PA15 47
U8A
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PA10
PA11
PA12
PA13
PA14-boot0
PA15
PC10
PC11
PC12
PC13
PC14-OSC32_IN
PC15-OSC32_OUT
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PC8
PC9
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PB10
PB11
PB12
62
63
30
31
32
27
28
29
57
58
59
60
61
PB13
PB14
PB15
33
34
35
PB8
PB9
PB10
PB11
PB12
PB13
PB14
PB15
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
STM32G071RBT6
PF0-OSC_IN
PF1-OSC_OUT
PF2-NRST
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD8
PD9
VREF+
8
6
7
U8 on bottom side
U8B
3V3_LDO
VBAT
VREF+
STM32G071RBT6
VSS
10
11
12
2
3
4
64
1
5
26
38
39
48
49
13
14
15
16
25
50
51
52
53
54
55
56
40
41
9
All SBs and test points on bottom side
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PC8
PC9
PC10
PC11
PC12
PC13
PC14
PC15
NRST
JOY_SEL
JOY_LEFT
JOY_DOWN
JOY_RIGHT
JOY_UP
ALERT_VBUS
ALERT_CC1
ALERT_CC2
DOOR_SENSE
VCP_TX
VCP_RX
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD8
PD9
Dead battery mode enabled
SB14
SB15
SB5
PF0
PF1
MCO
R41
DNF
0R
PF2
R44
DNF
0R
R36
0R
R39
0R
X2
C39
5.6pF
NX3215SA-32.768K
C40
5.6pF
C42
DNF
3.9pF
DNF X3
NX3225GD-8.00M
C43
DNF
3.9pF
R32
470R
LD4
TO REC
1
3
RESET
B1
KMR7
C44
2
4
VDD VREF+
100nF
C45
100nF
C46
100nF
C47
4.7uF
C48
1uF
C49
10nF
5V_SMPS_VBUS VDD
JOY_SEL
JOY_LEFT
JOY_DOWN
JOY_RIGHT
JOY_UP
PB2
PD0
PD2
PB8
PB9
/SPI2_MISO/ADC_IN10
/USBPD2_CC1
/USBPD2_CC2
/I2C1_SCL/USART3_TX
/I2C1_SDA/USART3_RX
PA5
PA4
/DAC1_OUT2/ADC_IN5
/DAC1_OUT1/ADC_IN4/SPI2_MOSI
PB13 /SPI2_CLK
SB11
SB12
SB13
CN1
5
6
3
4
7
1
2
8
USER CONNECTIVITY
R33
470R
LD5
TO PLUG
C50 C51
OLED DISPLAY
U9
D/C#
D0
D1
D2
IREF
VCOMH
BS0
BS1
VSS
VLSS
C2P
C2N
C1P
C1N
VCC
VBAT
VDD
VCC
CS#
RES#
9OL9935701000
5
8
19
11
12
3
4
2
1
6
13
14
15
16
17
18
9
10
7
20
R61
180R
LD7
SOURCE
C52
3V3_LDO
C53 C54
1uF
1uF
R52
180R
LD6
SINK/SPY
PB0
PA15
PB1
PB3
PB4
PB5
PB14
C34
C35
CS_DISP
RST_DISP
D/C_DISP
SPI1_SCK
SPI1_MOSI
R40
620K
C41
4.7uF
USER JOYSTICK
R45
100R
5
B2
COMMON
2
CENTER
1
1
3
6
4
LEFT
DOWN
RIGHT
UP
MT-008A
Title:
MCU & Display
Project:
STM32G0 Discovery
Variant: DEFAULT
Revision:
Size: A4 Date: 29-10-18
3V3_LDO3V6_LDO
C37
1uF
Reference:
Sheet: 3
MB1378 of 7
C38
1uF
C36
4.7uF
VDD
CN8
1
DNF
4
5
6
2
3
7
8
5V
PD6
PC9
PC13
PD1
PD3
PD4
USER1
CN8 and CN9 on bottom side
CN9
1
DNF
4
5
6
2
3
7
8
USER2
4
2
3
6
Figure 18. USB Type-C current sensing
All SBs and test points on bottom side
CN7
RX2_N
RX2_P
TX2_N
TX2_P
GND
GND
GND
GND
DX07S024JJ2
DM1
DP1
DM2
DP2
RX1_N
RX1_P
TX1_N
TX1_P
VBUS
VBUS
VBUS
VBUS
CC1
CC2
SBU1
SBU2
A4
A9
B4
B9
A5
B5
A8
B8
A7
A6
B7
B6
B10
B11
A3
A2
A10
A11
B3
B2
A1
A12
B1
B12
USB TYPE-C PLUG & RECEPTACLE CONNECTION AND SHUNT FOR CURRENT SENSING
VBUS_N
CC1_N
CC2_N
VBUS_P
CC1_P
CC2_P
VBUS_P
D1_N
D1_P
R48
R49
R50
D1_N
D1_P
CC1_P
CC2_P
SBU1
SBU2
0.015R 1W 1%
0.015R 1W 1%
0.015R 1W 1%
SBU1
SBU2
ALL USB TYPE-C paired signals routed for 10Gbps
RX1_N
RX1_P
TX1_N
TX1_P
RX2_N
RX2_P
TX2_N
TX2_P
USB TYPE-C TEST POINTS
VBUS_P
D-
D+
VBUS
CC1
CC2
SBU1
SBU2
GND
A7
A6
B7
B6
A5
B5
A8
B8
A4
A9
B4
B9
CN5
VBUS
VBUS
VBUS
VBUS
CC
VCONN
SBU1
SBU2
DM1
DP1
NC
NC
B10
B11
A3
A2
RX1_N
RX1_P
TX1_N
TX1_P
A10
A11
B3
B2
RX2_N
RX2_P
TX2_N
TX2_P
A1
A12
B1
B12
GND
GND
GND
GND
USB Type-C Plug captive cable
USBPD1_CC2
USBPD1_CC1
I2C1_SCL
I2C1_SDA
3V3_LDO3V3_LDO
R46
1K
R47
1K
ALERT_VBUS
ADDRESS: 0x40
POWER/CURRENT SENSING ICs
3V3_LDO
VBUS
5
4
SCL
SDA BUS
11
U10
INA230
3
ALERT IN+
IN-
13
12
VBUS_P
VBUS_N
2
1
A0
A1
ALERT_CC1
ADDRESS: 0x41 3V3_LDO
3
2
1
5
4
CC1
3V3_LDO
SCL
SDA
ALERT
A0
A1
BUS
IN+
IN-
11
13
12
U11
INA230
CC1_P
CC1_N
USB CC LINES OVERVOLTAGE/PROTECTION AND ISOLATION
CC1_P
CC2_P
GND
U13
RD_CC1
R55
1M
3
G
5
2
8
6
D 1
R56
5K1
ENCC2
SB10
S 4
T5
STL6N2VH5
R62
0R
7
D3
BAT60JFILM
1
SW1
2
500mA Reed sensor
R57
0R
SB16
SB7
R59
100K
T2
STL6N2VH5
ENCC1
R58
0R
SB8
R60
100K
DOOR_SENSE
TRAP DOOR MAGNETIC DETECTION GPIO
T3
STL6N2VH5
ALERT_CC2
ADDRESS: 0x42
Title:
3V3_LDO
5
4
CC2
SCL
SDA BUS
11
U12
INA230
3
ALERT IN+
IN-
13
12
CC2_P
CC2_N
2
1
A0
A1
USB TypeC Current Sensing
Project:
Variant:
STM32G0 Discovery
Revision:
Size: A4
DEFAULT
Date: 29-10-18
Reference:
Sheet: 4
MB1378 of 7
VBUS_P
Figure 19. Power Supply
STLK_ON
SMPS_ON
5V_STLK
5V_SMPS_VBUS
All SBs and test points on bottom side
D1
STPS1L30A
D2
POWER SUPPLY SELECTION & 3V3 and 3V6 LDO
5V 6
U1
LD39050PU33R
VIN PG
1
EN VOUT
NC
C1
1uF
C2
100nF
3
4
5
R1
10K
R2
10K
STPS1L30A
R4
15K
R5
15K
R3
270R
LD1
POWER 5V
5V
C3
3V3_LDO
1uF
C4
100nF
C5
1uF
1
U2
LP2985IM5-3.6/NOPB
IN OUT
5
3
ON/OFF
BYPASS
GND
4
3V6_LDO
C6
10nF
C7
2.2uF
VBUS_P
Input Vin = 2.85V to 21Vdc
U14
ESDA25P35-1U1M
EN_SMPS
EN=1=>SMPS OFF
1
G
R63
47K
Q3
NDS7002A
3
D
2
S C13
10uF
C8
68nF
13
SW1
BST1
C14
1uF
R8
10K
R9
43K
10
14
4
VIN
PVIN
RUN
MODE
5
16
PROG
MODE
GND
C15
33nF SB9
VBUS SMPS CONVERTER TO 5V
L1
6.8
μ
H 4.5A
C9
68nF
SW2
BST2
12
PVOUT
LDO
PLDO
3
9
11
FB
VC
7
6
PGND
LTC3114-1
U3
R7
15K
C17
4.7nF
5V_SMPS_VBUS
Output Vout = 5Vdc 0.5A
R6
2M
C18
47pF
C16
4.7uF
R10
499K
R53
MODE
C10
47pF
C11
1uF
C12
22uF
R54
Title:
Power Supply
Project:
STM32G0 Discovery
Variant: DEFAULT
Revision:
Size: A4 Date: 29-10-18
Reference:
Sheet: 5
MB1378 of 7
Figure 20. ST-LINK V2.1
ST-LINK MCU
3V3_STLK
1
2
DNF
JP1
ST-LINK RESET
R17
100K
Board Ident: PC13=0
R15 10K
R16
3V3_STLK
3V3_STLK
C26
C19
10pF
1
100nF
X1
2
R20
R21
C20
10pF
NX3225GD-8.00M
OSC_IN
OSC_OUT
STM_RST
4K7
4K7
AIN_1
8
9
6
7
10
11
12
3
4
1
2
5
VBAT
PC13
PC14
PC15
OSCIN
OSCOUT
NRST
VSSA
3V3_LDOA
PA0
PA1
PA2
R14
100K
R11
4K7
D4
R12
2K7
R13
DNF
0R
BAT60JFILM
All SBs and test points on bottom side
5V
3V3_STLK
USB_RENUMn
STM_JTCK
3V3_LDO_2
VSS_2
JTMS/SWDIO
PA12
PA11
PA10
PA9
PA8
PB15
PB14
PB13
PB12
5V_USB_CHGR
D5
U5
STM32F103CBT6
3V3_STLK
5V_SMPS_VBUS
D6
31
30
29
28
27
26
25
36
35
34
33
32
STM_JTMS
USB_STLK_P
USB_STLK_N
LED_STLINK
PWR_ENn
T_JTMS
T_JTCK
T_SWDIO_IN
R19
100R
To be placed near STM32F103
R18
MCO
100R
DNF C27
20pF
3V3_STLK
VCP_RX
VCP_TX
R22
R23
0R
0R
CN2
Header 2x1
STLK_TX
STLK_RX
1
2
DNF
3V3_STLK
C28
100nF
C29
100nF
C30
100nF
C31
100nF
ST-LINK USB CONNECTOR
3V3_STLK
9013-SOT23
T1
1 R25
R27
100R
36K
U5 on bottom side
STLINK_LED
USB_RENUMn
ST-LINK
CN3
VBUS
DM
DP
ID
GND
Shield
Shield
Shield
Shield
EXP
EXP
USB_uB_105017-0001
8
9
6
7
10
11
1
4
5
2
3
R29
1K5
USB_STLK_ID
R34
100K
R28 10K
5V_USB_CHGR
USB_STLK_N
USB_STLK_P
1
2
3
U7
IO1
GND
IO2
USBLC6-2P6
IO_1
VBUS
IO_2
6
5
4
ESD PROTECTION SHOULD BE CLOSE TO THE CONNECTOR
3V3_STLK
ST-LINK DFU
COM
LD2
Red
1
4
2
R24
330R
R26
3
330R
Green
LD_BICOLOR_CMS
SWCLK
STM_JTCK
3V3_STLK
DNF
CN4
Header 4x1
SWDIO
STM_JTMS
LED_STLINK
Must be on a border of the PCB.
ST-LINK POWER 3V3 / 150mA
BAT60JFILM
BAT60JFILM
T_JTMS
T_JTCK
T_NRST
5V_USB_CHGR
R42
100K
SB1
SB2
SB3
SB4
R43
22K
C21
1uF
1
1
U4
Vin
LD3985M33R
Vout
5
3
INH
GND BYPASS
C22
100nF
C25
10nF
5V
JP2
R51
100K
3V3_STLK
C23
1uF
C24
100nF
PA13
PA14
NRST
STLK_SWDIO
STLK_SWCLK
NRST
JP2 on bottom side
Shunt Fitted
ST LINK Inhibition circuitry
Q1
BC817-25
Title:
ST-LINK V2.1
Project:
STM32G0 Discovery
Variant: DEFAULT
Revision:
Size: A4 Date: 29-10-18
1
STM_RST
Q2
BC817-25
5V_USB_CHGR
C32
1uF
PWR_ENn
ST LINK USB Power switch 5V / 1.2A
ST-LINK FAULT
LD3
R31
680R
5
RED
U6
STMPS2141STR
IN OUT
1
4 3
R30
10K
EN FAULT
GND
Reference:
Sheet: 6
MB1378 of 7
5V_STLK
C33
100nF
UM2401
Date
14-Dec-2018
Table 13. Document revision history
Revision Changes
1 Initial version
Revision history
UM2401 Rev 1 35/36
35
UM2401
IMPORTANT NOTICE – PLEASE READ CAREFULLY
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. 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.
© 2018 STMicroelectronics – All rights reserved
36/36 UM2401 Rev 1
Λήψη
Διαφήμιση