November 2018 UM2308 Rev 2 1/18
1
UM2308
User manual
STM32CubeG0 Nucleo demonstration firmware
Introduction
STM32Cube™ is an STMicroelectronics original initiative to make developers’ lives easier
by reducing development effort, time and cost. STM32Cube covers the whole STM32
portfolio.
The STM32Cube includes:
STM3
2CubeMX, a graphical software configuration tool that allows the generation of C
initialization code using graphical wizards.
A comprehensive embedded software platform, delivered per Series (such as
STM32CubeG0 for STM32G0 Series)
The STM32Cube HAL, STM32 abstraction layer embedded software ensuring
maximized portability across the STM32 portfolio
The Low-Layer APIs (LL) offering a fast light-weight expert-oriented layer which is
closer to the hardware than the HAL. LL APIs are available only for a set of
peripherals
A consistent set of middleware components such as FAT file system, RTOS, USB PD
All embedded software utilities, delivered with a full set of examples
The STM32CubeG0 Nucleo demonstration firmwar
e is built around the STM32Cube
hardware abstraction layer (HAL) and low-layer (LL) APIs, and board support package
(BSP) components, and uses almost the whole STM32 capability to load and display full
color bitmaps from a microSD™ card.
www.st.com
Contents UM2308
2/18 UM2308 Rev 2
Contents
1 STM32CubeG0 main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Getting started with the demonstration . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1.1 NUCLEO-G071RB Nucleo board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1.2 Adafruit 1.8” TFT shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Hardware configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.1 STM32 Nucleo board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.2 Assembling the Adafruit shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Demonstration firmware package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1 Demonstration repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 STM32 Nucleo board BSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2.1 Joystick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2.2 LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2.3 microSD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Functional description of the demonstration . . . . . . . . . . . . . . . . . . . . 12
4.1 Programming firmware application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5 FAQs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17