STMicroelectronics (STM32)

# ST NUCLEO-G474RE (STM32G474RE)

Mixed-signal 170 MHz STM32G4 board built for digital power conversion, FOC motor control and FDCAN nodes. Import from ST SVD via ct twin generate.

twin: provisional ARM Cortex-M4F (170 MHz, CORDIC/FMAC) family: st.stm32 cpu: cortex-m4f

Target Clock 170 MHz STM32G474RE

Memory 512 KB 128 KB SRAM

Evidence Standing provisional Datasheet / SVD importable

CPU Profile cortex-m4f st.stm32

## Hardware specification

| MCU            | STM32G474RE                                                                                                                                | Core        | ARM Cortex-M4F (170 MHz, CORDIC/FMAC) |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ----------- | ------------------------------------- |
| Max clock      | 170 MHz                                                                                                                                    | Flash / RAM | 512 KB / 128 KB                       |
| Primary buses  | 3x FDCAN, 4x I2C, 4x SPI, 5x USART, HRTIM, 5x ADC                                                                                          |             |                                       |
| Evidence basis | Indexed in datasheet corpus; generate locally via ct twin generate ([/docs/twin-generation](https://circuittwin.ai/docs/twin-generation)). |             |                                       |

## Published verification & bring-up status

Indexed in the CircuitTwin industry datasheet corpus; shares ARMv7E-M differential CPU core and STM32G4/FDCAN peripheral blocks.

## Run locally with ct CLI

Shell

```
ct twin generate STM32G474.svd && ct run --json --board nucleo-g474re.board.yaml build/app.elf

# Start a GDB server with reverse execution attached to the twin
ct debug --board nucleo-g474re --gdb-port 3333 build/app.elf
```

## GitHub Actions CI workflow

.github/workflows/firmware-ci.yml

```
name: Firmware Twin CI (STM32G474RE)
on: [push, pull_request]
jobs:
  simulate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run firmware on ST NUCLEO-G474RE twin
        uses: circuittwin/action@v1
        with:
          board: nucleo-g474re
          firmware: build/app.elf
          suite: tests/suite.yaml
          junit-out: results/nucleo-g474re.xml
```

## Other boards in STMicroelectronics (STM32)

[Black Pill (STM32F411CE) (5/8)](https://circuittwin.ai/boards/black-pill-f411ce) [Blue Pill (STM32F103C8) (5/8)](https://circuittwin.ai/boards/blue-pill-f103c8) [ST B-U585I-IOT02A (6/8)](https://circuittwin.ai/boards/b-u585i-iot02a) [ST NUCLEO-F091RC (5/8)](https://circuittwin.ai/boards/nucleo-f091rc) [ST NUCLEO-F103RB (5/8)](https://circuittwin.ai/boards/nucleo-f103rb) [ST NUCLEO-F401RE (5/8)](https://circuittwin.ai/boards/nucleo-f401re)

## Related guides and twins

[Board dashboard methodology](https://circuittwin.ai/docs/board-dashboard) [Twin: AS5600](https://circuittwin.ai/twins/as5600) [Twin: INA228](https://circuittwin.ai/twins/ina228) [Twin: TJA1051](https://circuittwin.ai/twins/tja1051) [Guide: stm32f4 firmware testing](https://circuittwin.ai/guides/stm32f4-firmware-testing) [Guide: canopen multi node testing](https://circuittwin.ai/guides/canopen-multi-node-testing)

> ## Test your STM32G474RE ELF on CircuitTwin
>
> Run ST NUCLEO-G474RE firmware locally or in CI with deterministic peripheral faults and exit code 4 diagnostics on unmodelled registers.
>
> [Start now](https://app.circuittwin.ai/try) [ct CLI reference](https://circuittwin.ai/docs/cli) [Connect a coding agent](https://circuittwin.ai/docs/agents)
