ST STM32G4 Nucleo-64 User Manual Download Page 1

Introduction

The STM32G4 Nucleo-64 boards based on the MB1367 reference board (

NUCLEO-G431RB

NUCLEO-G474RE

) provide an

affordable and flexible way for users to try out new concepts and build prototypes with the STM32G4 Series microcontrollers,
choosing from the various combinations of performance, power consumption and features. The Arduino

 Uno V3 connectivity

and the ST morpho headers provide an easy means of expanding the functionality of the Nucleo open development platform
with a wide choice of specialized shields. The STM32G4 Nucleo-64 boards do not require any separate probe as they integrate
the STLINK-V3E debugger/programmer. The STM32G4 Nucleo-64 boards come with the comprehensive free software libraries
and examples available with the STM32CubeG4 MCU Package.

Figure 1. 

NUCLEO-G474RE top view

Figure 2. 

NUCLEO-G474RE bottom view

Pictures are not contractual.

STM32G4 Nucleo-64 boards (MB1367)

UM2505

User manual

UM2505

 - 

Rev 2

 - 

April 2019

For further information contact your local STMicroelectronics sales office.

www.st.com

Summary of Contents for STM32G4 Nucleo-64

Page 1: ...nding the functionality of the Nucleo open development platform with a wide choice of specialized shields The STM32G4 Nucleo 64 boards do not require any separate probe as they integrate the STLINK V3E debugger programmer The STM32G4 Nucleo 64 boards come with the comprehensive free software libraries and examples available with the STM32CubeG4 MCU Package Figure 1 NUCLEO G474RE top view Figure 2 ...

Page 2: ...o AB MIPI debug connector Arduino Uno V3 expansion connector ST morpho extension pin headers for full access to all STM32G4 I Os Flexible power supply options ST LINK USB VBUS or external sources On board STLINK V3E debugger programmer with USB re enumeration capability mass storage Virtual COM port and debug port Comprehensive free software libraries and examples available with the STM32CubeG4 MC...

Page 3: ... st com website Next to the evaluation tool ordering part number that is stuck or silk screen printed on the board Some boards feature 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 i...

Page 4: ...M see note GCC based IDEs Note On Windows only 3 3 Demonstration 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...

Page 5: ...tion Jumper JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Jumper JPx 1 2 Jumper should be fitted between Pin 1 and Pin 2 Solder bridge SBx ON SBx connections closed by 0 Ω resistor Solder bridge SBx OFF SBx connections left open Resistor Rx ON Resistor soldered Resistor Rx OFF Resistor not soldered UM2505 Conventions UM2505 Rev 2 page 5 43 ...

Page 6: ... board connect the STM32G4 Nucleo 64 board to a PC with a USB cable Type A to Micro B through the USB connector CN1 of the board 4 Then green LED LD3 5V_PWR and red LED LD1 COM light up green LED LD2 USER blinks 5 Press user button B1 left blue USER button 6 Observe how the blinking of the green LED LD2 changes according to the clicks on button B1 7 The software demonstration and the several softw...

Page 7: ...o 64 board The mechanical dimensions of the board are shown in Figure 6 Figure 3 Hardware block diagram STLINK V3E part STM32G4XXRY OSC_32 SWD 32 kHz crystal VCP UART GPIO GPIO GPIO Embedded STLINK V3E SWD VCP UART USB Micro B connector CN1 B1 button USER B2 button RESET Arduino ST morpho GPIO Arduino ST morpho 5V PWR SEL STLK_RST GND GND DEBUG BOOT0 VREF IDD OSC 24 MHz crystal xxx Red LED LD4 OC ...

Page 8: ...r JP3 Target reset X1 25 MHz B1 USER button U11 5V_Vin regulator LD1117S50TR JP6 IDD measurement JP7 BOOT0 CN6 Arduino connector CN8 Arduino connector CN7 ST morpho pin header HW102 product sticker X2 32 kHz X3 24 MHz CN9 Arduino connector CN5 Arduino connector CN10 ST morpho pin header U14 voltage ref IC TL1431CL5T JP8 VREF selection U12 3V3 regulator LD39050PU33R JP5 5V power source selection B2...

Page 9: ...ower source selection JP8 VREF selection JP6 IDD measurement CN5 Arduino connector CN9 Arduino connector CN10 ST morpho pin header CN8 Arduino connector CN6 Arduino connector CN7 ST morpho pin header JP3 Target reset CN4 MIPI10 connector JP7 BOOT0 HW101 board sticker UM2505 PCB layout UM2505 Rev 2 page 9 43 ...

Page 10: ...3E There are two different ways to program and debug the onboard STM32 MCU Using the embedded STLINK V3E Using an external debug tool connected to the CN4 MIPI10 connector The STLINK V3E programming and debugging tool is integrated in the STM32G4 Nucleo 64 board UM2505 Mechanical drawing UM2505 Rev 2 page 10 43 ...

Page 11: ...PC via USB a driver for the STLINK V3E must be installed not required for Windows 10 It is available at the www st com website In case the STM32G4 Nucleo 64 board is connected to the PC before the driver is installed some STM32G4 Nucleo 64 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 connec...

Page 12: ...d all GPIOs are in high impedance then connect the external debug tool to debug connector CN4 Figure 8 Connecting an external debug tool to program the on board STM32G4 Table 5 MIPI10 STDC14 debug connector CN4 MIPI10 pin STDC14 pin CN4 Function 1 NC Reserved 2 NC Reserved 1 3 3V3 Target VCC 2 4 T_SWDIO Target SWDIO using SWD protocol or Target JTMS T_JTMS using JTAG protocol 3 5 GND Ground 4 6 T_...

Page 13: ...CP must be UART dedicated to bootloader 14 T_VCP_TX Target TX used for VCP must be UART dedicated to bootloader 6 4 Power supply The power supply can be provided by five different sources A host PC connected to CN1 through a USB cable default setting An external 7 V 12 V VIN power supply connected to CN7 pin 24 An external 5 V E5V power supply connected to CN7 pin 6 An external 5 V USB charger 5V_...

Page 14: ...a Low Voltage SELV with limited power capability If the power supply is 3V3 the ST LINK is not powered and cannot be used Power supply input from STLINK V3E USB connector default setting The STM32G4 Nucleo 64 board and shield can be powered from STLINK V3E connector CN1 5 V by placing a jumper between pins 1 2 of JP5 5V_SEL as illustrated in Figure 10 This is the default setting UM2505 Power suppl...

Page 15: ...STMPS2151STR U4 which powers the board The power switch STMPS2151STR U4 features also a current limitation to protect the PC in case of short circuit on board If an overcurrent more than 500 mA happens on board the red LED LD4 is lit The Nucleo board and its shield can be powered from ST LINK USB connector CN1 but only ST LINK circuit gets power before USB enumeration because the host PC only prov...

Page 16: ...ry to power the STM32G4 Nucleo 64 board with an external power supply connected to E5V VIN or 3 3 V External power supply input from VIN 7 V 12 V 800 mA max When the STM32G4 Nucleo 64 board is power supplied by VIN refer to Table 6 and Figure 11 the jumper configuration must be the following jumper JP2 on pins 3 4 5V_VIN The STM32G4 Nucleo 64 board and its shield boards can be powered in three dif...

Page 17: ...ply External power supply input from E5V 5 V 500 mA max When the STM32G4 Nucleo 64 board is power supplied by E5V refer to Table 7 and Figure 12 the jumper configuration must be the following jumper JP5 on pins 5 6 E5V Table 7 External power sources E5V 5 V Input power name Connector pins Voltage range Maximum current E5V CN7 pin 6 4 75 V to 5 25 V 500 mA UM2505 Power supply UM2505 Rev 2 page 17 4...

Page 18: ...debugging when using an external power supply External power supply input from USB charger 5 V When the STM32G4 Nucleo 64 board is power supplied by a USB charger on CN1 refer to Table 8 and Figure 13 the jumper configuration must be the following jumper JP2 on pins 7 8 5V_CHGR UM2505 Power supply UM2505 Rev 2 page 18 43 ...

Page 19: ...e Connector pins Voltage range Maximum current 5V_CHGR CN1 5 V Figure 13 Power supply input from ST LINK USB connector with USB charger 5 V CN1 STLINK V3E USB No debug U12 LDO 3V3 5 V 3V3 USB charger Legend 5 V 3 3 V UM2505 Power supply UM2505 Rev 2 page 19 43 ...

Page 20: ...in 16 directly as power input refer to Table 9 and Figure 14 In this case the programming and debugging features are not available since the ST LINK is not powered Table 9 External power sources 3V3 Input power name Connector pins Voltage range Maximum current 3V3 CN6 pin 4 CN7 pin 16 3 V to 3 6 V 1 3 A UM2505 Power supply UM2505 Rev 2 page 20 43 ...

Page 21: ...VIN or EXT then to connect the USB cable to the PC In this way the enumeration succeeds thanks to the external power source The following power sequence procedure must be respected 1 Connect jumper JP5 between pins 5 6 for E5V or between pins 3 4 for VIN 2 Connect the external power source to VIN or E5V 3 Power on the external power supply 7V VIN 12 V for VIN or 5V for E5V 4 Check that the green L...

Page 22: ... note AN2867 for the oscillator design guide The X3 crystal has the following characteristics 24 MHz 6 pF load capacitance 20 ppm It is recommended to use NX2016SA 24MHz EXS00A CS10820 manufactured by NDK The configuration must be SB25 and SB26 ON SB24 and SB28 OFF SB27 OFF C56 and C59 soldered with 6 8 pF capacitors Oscillator from external PF0 from an external oscillator through the pin 29 of th...

Page 23: ...USER blue button The user button is connected to the STM32G4 I O PC13 by default Tamper support SB16 ON and SB21 OFF or PA0 Wakeup support SB21 ON and SB16 OFF of the STM32G4 microcontroller B2 RESET black button This push button is connected to NRST PG10 NRST and is used to RESET the STM32G4 microcontroller 6 6 3 MCU voltage selection on VREF The STM32G4 Nucleo 64 board offers the possibility to ...

Page 24: ...setting the related solder bridges as detailed in Table 10 and Table 11 Table 10 USART1 connection Solder bridge configuration 1 Feature 1 SB13 SB19 ON SB12 SB20 SB18 SB22 OFF USART1 PC4 PC5 connected to Arduino D1 D0 and ST morpho connector CN10 pin 35 37 SB12 SB20 ON SB13 SB19 SB17 SB23 OFF USART1 PC4 PC5 connected to STLINK V3E Virtual COM port 1 The default configuration is shown in bold Table...

Page 25: ... shunted VDDA connected on VDD voltage supply OFF SMD ferrite bead L1 on STM32G4 VDDA voltage supply JTDI on MIPI10 SB9 ON JTDI connected to MIPI10 connector CN4 pin 10 OFF JTDI not connected to MIPI10 connector CN4 pin 10 SMD ferrite bead L2 SB10 ON SMD ferrite bead L2 shunted VREF connected to either VREF or VDD depending on the jumper position on JP8 OFF SMD ferrite bead L2 on VREF either VREF ...

Page 26: ... RX PC5 USER button SB16 ON USER button connected to PC13 OFF USER button not connected to PC13 SB21 ON USER button connected to PA0 OFF USER button not connected to PA0 HSE CLK selection SB25 SB26 ON HSE provided by external HSE 24 MHz CLK X3 OFF HSE not provided by external HSE 24 MHz CLK X3 SB24 ON PF1 OSC_IN connected to ST morpho connector I O usage CN7 pin 31 OFF PF1 OSC_IN not connected to ...

Page 27: ... connected to ARD_A4 and connected to CN7 pin 36 PC0 on ARD_A5 SB36 ON PC0 connected to ARD_A5 and connected to CN7 pin 38 OFF PC0 not connected to ARD_A5 and connected to CN7 pin 38 PA15 on ARD_A5 SB37 ON PA15 connected to ARD_A5 and connected to CN7 pin 38 OFF PA15 not connected to ARD_A5 and connected to CN7 pin 38 IOREF and 3V3 connection SB39 ON IOREF connected to 3V3 power supply OFF IOREF n...

Page 28: ...connector CN1 pinout Connecto r Pin number Pin name Signal name STLINK V3E MCU pin Function CN1 1 VBUS 5V_USB_CHGR 5 V power 2 DM USB_DEV_HS_CN_N R14 USB diff pair N 3 DP USB_DEV_HS_CN_P R15 USB diff pair P 4 ID 5 GND GND 7 2 MIPI10 connector CN4 Figure 16 MIPI10 connector CN4 1 3 5 7 9 11 13 2 4 6 8 10 12 14 The MIPI10 connector is implemented with a footprint compatible with the STDC14 footprint...

Page 29: ...C5 14 T_VCP_TX PA2 by default or PC4 7 3 Arduino Uno V3 connectors CN5 CN6 CN8 and CN9 The Arduino connectors CN5 CN6 CN8 and CN9 are female connectors compatible with the Arduino standard Most shields designed for Arduino can fit with the STM32G4 Nucleo 64 board The Arduino connectors on the STM32G4 Nucleo 64 board support the Arduino Uno V3 Figure 17 Arduino connectors CN6 Arduino_PWR CN8 Arduin...

Page 30: ...ut Connector Pin number Pin name Signal name STM32 pin 1 Function 1 CN6 1 NC Reserved for test 2 IOREF I O reference 3 NRST NRST PG10 NRST RESET 4 3V3 3V3 input output 5 5V 5 V output 6 GND GND 7 GND GND 8 VIN 7 V 12 V input power CN8 1 A0 ADC PA0 ADC12_IN1 2 A1 ADC PA1 ADC12_IN2 3 A2 ADC PA4 ADC2_IN17 4 A3 ADC PB0 ADC3_IN12 or ADC1_IN15 5 A4 ADC PC1 PB9 ADC12_IN7 I2C1_SDA 6 A5 ADC PC0 PA15 ADC12_...

Page 31: ... PWM D6 ARD_D6 PB10 TIM2_CH3 6 PWM D5 ARD_D5 PB4 TIM3_CH1 5 D4 ARD_D4 PB5 IO 4 PWM D3 ARD_D3 PB3 TIM2_CH2 3 D2 ARD_D2 PA10 IO 2 TX D1 ARD_D1 PA2 PC4 LPUSART1_TX USART1_TX 1 RX D0 ARD_D0 PA3 PC5 LPUSART1_RX USART1_RX 1 Default configuration is in bold 7 4 ST morpho connectors CN7 and CN10 ST morpho connectors CN7 and CN10 are male pin headers accessible on both sides of the board All signals and po...

Page 32: ...hows the pin assignment of each STM32G4 I O on the ST morpho connector Table 16 Pin assignment of the ST morpho connectors CN7 odd pins CN7 even pins CN10 odd pins CN10 even pins Pin nbr Pin name Pin nbr Pin name 1 Pin nbr Pin name 1 Pin nbr Pin name 1 PC10 2 PC11 1 PC9 2 PC8 3 PC12 4 PD2 3 PB8 4 PC6 5 VDD 6 E5V 5 PB9 6 PC5 7 BOOT0 2 8 GND 7 VREFP 3 8 5V_USB_CHGR 4 9 NC 10 NC 9 GND 10 NC 11 NC 12 ...

Page 33: ...onfiguration in bold 2 BOOT0 is not connected by default The BOOT0 function is done by SW Option byte nSWBOOT0 must be set to 0 in that case BOOT0 is taken from the Option byte nBOOT0 Option byte nBOOT0 must be set to 1 in that case BOOT0 is active low If nSWBOOT0 is set to 0 the BOOT0 is taken from pin PB8 BOOT0 3 AVDD connected to VREF 4 5V_USB_CHGR is the 5 V power from the STLINK V3E USB conne...

Page 34: ... User Button 13 PA1 PA1 ARD_A1 ADC12_IN2 14 PA2 LPUART1_TX ARD_D1 STLINK_TX T_VCP_TX 15 VSS GND PWR GND 16 VDD VDD PWR VDD supply 17 PA3 LPUART1_RX ARD_D0 STLINK_RX T_VCP_RX 18 PA4 PA4 ARD_A2 ADC2_IN17 19 PA5 PA5 ARD_D13 SPI1_CLK 20 PA6 PA6 ARD_D12 SPI1_MISO 21 PA7 PA7 ARD_D11 TIM3_CH2 SPI1_MOSI 22 PC4 PC4 IO 23 PC5 PC5 IO 24 PB0 PB0 ARD_A3 ADC3_IN12 25 PB1 PB1 IO 26 PB2 PB2 IO 27 VSSA AGND AGND 2...

Page 35: ...upply 49 PA13 T_SWDIO T_SWDIO 50 PA14 T_SWCLK T_SWCLK 51 PA15 T_JTDI T_JTDI I2C1_SCL 52 PC10 PC10 IO 53 PC11 PC11 IO 54 PC12 PC12 IO 55 PD2 D2 IO 56 PB3 PB3 ARD_D3 TIM2_CH2 T_SWO 57 PB4 PB4 ARD_D5 TIM3_CH1 IO 58 PB5 PB5 ARD_D4 IO 59 PB6 PB6 ARD_D10 SPIx_CS TIM4_CH1 60 PB7 PB7 IO 61 PB8 BOOT0 BOOT0 BOOT0 62 PB9 PB9 ARD_D14 I2C1_SDA 63 VSS GND GND 64 VDD VDD VDD voltage supply 1 The default configur...

Page 36: ...round The offset values of OPAMP1 OPAMP2 and OPAMP4 must be calibrated by software applying the calibration procedure described in the STM32G4 Series advanced Arm based 32 bit MCUs reference manual RM0440 in the Calibration section of the Operational amplifiers OPAMP chapter Such a procedure is already implemented in the STM32CubeG4 MCU Package Parts impacted This applies only to the MB1367 based ...

Page 37: ...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 fo...

Page 38: ...Revision history Table 18 Document revision history Date Version Changes 28 Mar 2019 1 Initial release 17 Apr 2019 2 Added the Limitation section UM2505 UM2505 Rev 2 page 38 43 ...

Page 39: ... Drivers 11 6 3 2 STLINK V3E firmware upgrade 11 6 3 3 Using an external debug tool to program and debug the on board STM32 11 6 4 Power supply 13 6 4 1 Debugging while using VIN or EXT as an external power supply 21 6 5 Clock sources 22 6 5 1 HSE clock high speed external clock 22 6 5 2 LSE clock low speed external clock 32 768 kHz 22 6 6 Board functions 22 6 6 1 LEDs 23 6 6 2 Push buttons 23 6 6...

Page 40: ...CN9 29 7 4 ST morpho connectors CN7 and CN10 31 8 STM32G4 Nucleo 64 I O assignment 34 9 Limitation 36 10 Federal Communications Commission FCC and Industry Canada IC Compliance Statements 37 10 1 FCC Compliance Statement 37 10 2 IC Compliance Statement 37 Revision history 38 Contents 39 List of tables 41 List of figures 42 UM2505 Contents UM2505 Rev 2 page 40 43 ...

Page 41: ...nal power sources 5V_CHGR 5 V 19 Table 9 External power sources 3V3 20 Table 10 USART1 connection 24 Table 11 LPUART1 connection 24 Table 12 Solder bridge configuration 25 Table 13 USB Micro B connector CN1 pinout 28 Table 14 MIPI10 connector CN4 pinout STDC14 pinout compatible 29 Table 15 Arduino connectors pinout 30 Table 16 Pin assignment of the ST morpho connectors 32 Table 17 Nucleo 64 I O as...

Page 42: ...ee 14 Figure 10 Power supply input from STLINK V3E USB connector with PC 5 V 500 mA max 15 Figure 11 Power supply input from VIN 7 V 12 V 800 mA max 17 Figure 12 Power supply input from 5V_EXT 5 V 500 mA max 18 Figure 13 Power supply input from ST LINK USB connector with USB charger 5 V 19 Figure 14 Power supply input from external 3V3 21 Figure 15 USB Micro B connector CN1 front view 28 Figure 16...

Page 43: ...cts 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 S...

Reviews: