Skip to content

STM32G0316-DISCO

Support for the STM32G0316-DISCO board.

Support for the STM32G0316-DISCO board.

General information

The ST STM32G0316-DISCO is an evaluation board supporting a ARM Cortex-M0+ STM32G031J6 microcontroller with 8KB of RAM and 32KB of ROM Flash.

Pinout

In an SO8 package, this MCU uses multi-bonding to run multiple ports to the same pins. See this application note as reference. This means the responsibility is on the firmware configurer to take special care when configured IO, ensuring that ports are not conflicting on each pin.

MCU

MCUSTM32G031J6
FamilyARM Cortex-M0+
VendorST Microelectronics
RAM8KiB
Flash32KiB
Frequencyup to 64 MHz (set to 64MHz in RIOT)
Timers11 (2x watchdog, 1 SysTick, 7x 16-bit and 1 32-bit)
ADCs1x 12 bit (up to 8 channels)
UARTs3 (two USARTs and one Low-Power UART)
I2Cs2
SPIs1
RTC1
DatasheetDatasheet
Reference ManualReference Manual
Programming ManualProgramming Manual
Board ManualBoard Manual

Flash the board

The STM32G0316-DISCO board includes an on-board ST-LINK programmer and can be flashed using OpenOCD.

To flash this board, just use the following command:

make BOARD=stm32g0316-disco flash -C examples/basic/hello-world

UART Terminal Interaction

Due to the limited number of pins, to get stdio UART traffic, use a USB->UART adapter like the CP2104 from Adafruit (http://adafru.it/954). Connect the adapter’s TX line to the MCU RX pin (PB6, Pin 8) and the adapter’s RX line to the MCU’s TX pin - (PB7, pin 1).