No Matches
STM32 Nucleo-L476RG

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

Detailed Description

Support for the STM32 Nucleo-L476RG.


The Nucleo-L476RG is a board from ST's Nucleo family supporting ARM Cortex-M4 STM32L476RG microcontroller with 128KiB of RAM and 1MiB of Flash.


Pinout for the nucleo-l476rg


Family ARM Cortex-M4
Vendor ST Microelectronics
RAM 128KiB
Flash 1MiB
Frequency up to 80MHz
FPU yes
Timers 16 (2x watchdog, 1 SysTick, 6x 16-bit, 2x 32-bit [TIM2])
ADCs 3x 12-bit (up to 16 channels)
UARTs 6 (three USARTs, two UARTs and one Low-Power UART)
SPIs 3
I2Cs 3
Vcc 1.71 V - 3.6V
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-L476RG board includes an on-board ST-LINK V2 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-l476rg flash

and debug via GDB by simply typing

make BOARD=nucleo-l476rg 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-l476rg PROGRAMMER=cpy2remed flash
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-L476RG board we strongly recommend the usage of the GNU Tools for ARM Embedded Processors toolchain.


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