Nucleo L476RG

Vendor: ST Microelectronics
Source on GitHub: stm32/NUCLEO_L476RG

Installation instructions

STM32 via ST-Link

Nucleo and Discovery boards typically include a built-in ST-Link programmer.

A .bin or .hex file can be flashed using st-flash.

# Optional erase to clear existing filesystem.
st-flash erase

# Flash .bin
st-flash write firmware.bin 0x08000000
# or, flash .hex
st-flash --format ihex write firmware.hex

A .hex file can be flashed using STM32 Cube Programmer. -c port=SWD -d firmware.hex -hardRst

STM32 via DFU

Boards with USB support can also be programmed via the ST DFU bootloader, using e.g. dfu-util or

To enter the bootloader the BOOT0 pin can be connected to VCC during reset, or you can use machine.bootloader() from the MicroPython REPL.

dfu-util --alt 0 -D firmware.dfu



v1.19.1 (2022-06-18) .dfu [.hex] [Release notes] (latest)
v1.18 (2022-01-17) .dfu [.hex] [Release notes]
v1.17 (2021-09-02) .dfu [Release notes]
v1.16 (2021-06-18) .dfu [Release notes]
v1.15 (2021-04-18) .dfu [Release notes]
v1.14 (2021-02-02) .dfu [Release notes]
v1.13 (2020-09-02) .dfu [Release notes]
v1.12 (2019-12-20) .dfu [Release notes]
v1.11 (2019-05-29) .dfu [Release notes]

Nightly builds

v1.19.1-471-g46d02c246 (2022-10-05) .dfu [.hex]
v1.19.1-469-g95c614e2b (2022-10-04) .dfu [.hex]
v1.19.1-468-g0e35c4de9 (2022-10-04) .dfu [.hex]
v1.19.1-466-g0ee877a20 (2022-10-04) .dfu [.hex]