Loading...
Searching...
No Matches
STM32 Nucleo-G474RE

Support for the STM32 Nucleo-G474RE. More...

Detailed Description

Support for the STM32 Nucleo-G474RE.

Overview

The Nucleo-G474RE is a board from ST's Nucleo family supporting a ARM Cortex-M4 STM32G474RE microcontroller with 128KiB of RAM and 512KiB of Flash.

Pinout

Pinout for the Nucleo-G4741RE (from STM user manual UM2505, https://www.st.com/resource/en/user_manual/um2505-stm32g4-nucleo64-boards-mb1367-stmicroelectronics.pdf, page 29)

MCU

MCU STM32G474RE
Family ARM Cortex-M4
Vendor ST Microelectronics
RAM 128KiB
Flash 512KiB
Frequency up to 170 MHz
Timers 17 (2x watchdog, 1 SysTick, 12x 16-bit and 2x 32-bit)
ADCs 5x 12 bit (up to 26 channels)
UARTs 5 (one UART, three USARTs and one Low-Power UART)
I2Cs 4
SPIs 3
CANs 3
RTC 1
Datasheet Datasheet
Reference Manual Reference Manual
Programming Manual Programming Manual
Board Manual Board Manual

Flashing the device

Flashing the Board Using OpenOCD

The ST Nucleo-G474RE board includes an on-board ST-LINK V3 programmer. The easiest way to program the board is to use OpenOCD. Once you have installed OpenOCD (look here for installation instructions), you can flash the board simply by typing

make BOARD=nucleo-g474re flash

and debug via GDB by simply typing

make BOARD=nucleo-g474re debug

Flashing the Board Using ST-LINK Removable Media

On-board ST-LINK programmer provides via composite USB device removable media. Copying the HEX file causes reprogramming of the board. This task could be performed manually; however, the cpy2remed (copy to removable media) PROGRAMMER script does this automatically. To program board in this manner, use the command:

make BOARD=nucleo-g474re PROGRAMMER=cpy2remed flash
Note
This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates could be found on this STM webpage.

Supported Toolchains

For using the ST Nucleo-G474RE board we recommend the usage of the GNU Tools for ARM Embedded Processors toolchain.

Files

file  periph_conf.h
 Peripheral MCU configuration for the nucleo-g474re board.