B-G474E-DPOW1 Discovery

Overview

The B-G474E-DPOW1 Discovery kit is a digital power solution and a complete demonstration and development platform for the STMicroelectronics STM32G474RET6 microcontroller. Leveraging the new HRTimer-oriented features, 96 Kbytes of embedded RAM, math accelerator functions and USB-PD 3.0 offered by STM32G474RET6, the B-G474E-DPOW1 Discovery kit, based on the USB 2.0 FS Type-C™ connector interface, helps the user to prototype applications with digital power such as a buck-boost converter, RGB power LED lighting or a class-D audio amplifier. The B-G474E-DPOW1 Discovery kit does not require any separate probe, as it integrates the STLINK-V3E debugger and programmer.

  • STM32G474RET6 Arm® Cortex®-M4 core-based microcontroller, featuring 512 Kbytes of Flash memory and 128 Kbytes of SRAM, in LQFP64 package

  • USB Type-C™ with USB 2.0 FS interface compatible with USB-PD 3.0

  • RGB power LED for a bright lighting

  • Digital power buck-boost converter with internal or external Input voltage and with onboard resistor loads

  • Audio Class-D amplifier capable

  • 4 user LEDs

  • 3 LEDs for power and ST-LINK communication

  • 4-direction joystick with a selection button

  • Reset push-button

  • Board connectors:
    • USB Type-C™

    • USB Micro-B

    • 2 x 32-pin header, 2.54 mm pitch, daughterboard extension connector for breadboard connection

  • Flexible power-supply options: ST-LINK USB VBUS or USB Type-C™ VBUS or external source

  • On-board STLINK-V3E debugger/programmer with USB re-enumeration capability: mass storage, Virtual COM port, and debug port

More information about the board can be found at the B-G474E-DPOW1 website [1].

More information about STM32G474RE can be found here:

Supported Features

The b_g474e_dpow1 board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

b_g474e_dpow1/stm32g474xx target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M4F CPU1

arm,cortex-m4f

ADC

on-chip

STM32 ADC1 4

st,stm32-adc

CAN

on-chip

STM32 FDCAN CAN FD controller3

st,stm32-fdcan

Clock control

on-chip

STM32 RCC (Reset and Clock controller)1

st,stm32-rcc

on-chip

STM32 HSE Clock1

st,stm32-hse-clock

on-chip

Generic fixed-rate clock provider3

fixed-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32G4 main PLL1

st,stm32g4-pll-clock

Counter

on-chip

STM32 counters6

st,stm32-counter

DAC

on-chip

STM32 family DAC4

st,stm32-dac

DMA

on-chip

STM32 DMA controller (V2)2

st,stm32-dma-v2

on-chip

STM32 DMAMUX controller1

st,stm32-dmamux

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller7

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller4

st,stm32-i2c-v2

Input

on-board

Group of GPIO-bound input keys1

gpio-keys

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

on-chip

STM32 External Interrupt Controller1

st,stm32-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

PHY

on-chip

This binding is to be used by all the usb transceivers which are built-in with USB IP1

usb-nop-xceiv

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

PWM

on-chip

STM32 PWM10

st,stm32-pwm

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RNG

on-chip

STM32 Random Number Generator1

st,stm32-rng

RTC

on-chip

STM32 RTC1

st,stm32-rtc

Sensors

on-chip

STM32 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

on-chip

STM32 VREF+1

st,stm32-vref

on-chip

STM32 VBAT1

st,stm32-vbat

Serial controller

on-chip

STM32 USART1 2

st,stm32-usart

on-chip

STM32 UART2

st,stm32-uart

on-chip

STM32 LPUART1

st,stm32-lpuart

SMbus

on-chip

STM32 SMBus controller4

st,stm32-smbus

SPI

on-chip

STM32 SPI controller with embedded Rx and Tx FIFOs4

st,stm32-spi-fifo

SRAM

on-chip

Generic on-chip SRAM description1

mmio-sram

USB Type-C Port Controller

on-chip

STM32 USB Type-C / Power Delivery1

st,stm32-ucpd

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

on-chip

STM32 low-power timer (LPTIM)1

st,stm32-lptim

on-chip

STM32 timers12

st,stm32-timers

USB

on-chip

STM32 USB controller1

st,stm32-usb

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

Connections and IOs

Each of the GPIO pins can be configured by software as output (push-pull or open-drain), as input (with or without pull-up or pull-down), or as peripheral alternate function. Most of the GPIO pins are shared with digital or analog alternate functions. All GPIOs are high current capable except for analog inputs.

Default Zephyr Peripheral Mapping:

  • UART_3 TX/RX : PC10/PC11 (ST-Link Virtual Port Com)

  • BUTTON (JOY_SEL) : PC13

  • BUTTON (JOY_LEFT) : PC4

  • BUTTON (JOY_DOWN) : PC5

  • BUTTON (JOY_RIGHT) : PB2

  • BUTTON (JOY_UP) : PB10

  • LED (DOWN BLUE) : PA15

  • LED (LEFT ORANGE) : PB1

  • LED (UP RED) : PB5

  • LED (RIGHT GREEN) : PB7

  • USB DM : PA11

  • USB DP : PA12

  • UCPD CC2 : PB4

  • UCPD CC1 : PB6

For more details please refer to B-G474E-DPOW1 Discovery board User Manual [3].

Programming and Debugging

The B-G474E-DPOW1 Discovery board includes an ST-LINK/V3E embedded debug tool interface.

Applications for the b_g474e_dpow1 board configuration can be built and flashed in the usual way (see Building an Application and Run an Application for more details).

Flashing

The board is configured to be flashed using west STM32CubeProgrammer [5] runner, so its installation is required.

$ west flash

Flashing an application to the B_G474E_DPOW1

Here is an example for the Blinky application.

# From the root of the zephyr repository
west build -b b_g474e_dpow1 samples/basic/blinky
west flash

You will see the LED blinking every second.

Debugging

You can debug an application in the usual way. Here is an example for the Hello World application.

# From the root of the zephyr repository
west build -b b_g474e_dpow1 samples/hello_world
west debug

References