Nucleo-L476RG Pinout, Datasheet, Schematic [Ultimate Guide]

In this guide, you’ll find the Nucleo-L476RG pinout diagram, its datasheet and schematic diagram, and every pin group explained with its default pins and gotchas. Without further ado, let’s get right into it!

The Nucleo-L476RG is ST’s official Nucleo-64 board for the STM32L476RG, an ultra-low-power 80MHz Arm Cortex-M4 with FPU, 1MB Flash and 128KB RAM that sleeps at just 30nA in Shutdown mode. It gives you 51 GPIO pins on the Arduino Uno and ST Morpho headers, plus an on-board ST-LINK debugger, so all you need is a USB cable.


Nucleo-L476RG Pinout Diagram

Here is a detailed Nucleo-L476RG Pinout Diagram with colored labels and legends to help you easily identify the functionalities that each pin can perform. This first diagram covers the Arduino Uno V3 headers (CN5, CN6, CN8, and CN9), which is where most shields and jumper wires go.

Nucleo-L476RG Pinout (Arduino Headers)

Nucleo-L476RG pinout diagram with Arduino header GPIO, ADC, DAC, PWM, UART, SPI, I2C, CAN and USB pin functions
Nucleo-L476RG – Arduino Uno V3 headers (CN5, CN6, CN8 and CN9)

Each row shows the header pin number, the Arduino name (D0–D15, A0–A5), the STM32 GPIO name and its alternate functions, color-coded by peripheral. The small dot marks a 5v-tolerant pin, the square marks the four 3.3v-only pins (PA3, PA4, PA5 and PB0), and the numbered badges point to the notes at the bottom of the diagram. On the left, the I2C column shows that A4/A5 are I2C3 on this board.

Nucleo-L476RG Pinout (Morpho CN7)

The left ST Morpho header CN7 is a 2×19 male header. Odd pins (1, 3, 5…37) are on the outer column and even pins are on the inner column, with pin 1 at the top, next to the ST-LINK part of the board. On the Nucleo-L476RG, PH0 and PH1 (CN7-29 and CN7-31) are free GPIOs, because the board has no HSE clock.

Nucleo-L476RG ST morpho CN7 pinout diagram with GPIO, ADC, DAC, PWM, UART, SPI, I2C and SDMMC pin functions (CN7-1 to CN7-38)
Nucleo-L476RG – Morpho header CN7

Nucleo-L476RG Pinout (Morpho CN10)

The right ST Morpho header CN10 is also 2×19, but here the odd pins are on the inner column. It carries the extra peripherals that the Arduino headers don’t have, like USB OTG FS, LPUART1, Quad-SPI, and PB11 on CN10-18 (a pin that the F4 Nucleo-64 boards don’t have).

Nucleo-L476RG ST morpho CN10 pinout diagram with GPIO, ADC, PWM, UART, LPUART, SPI, I2C, CAN and USB OTG pin functions (CN10-1 to CN10-38)
Nucleo-L476RG – Morpho header CN10

Every Arduino header signal is also present on the Morpho headers (for example, D13/PA5 is also CN10-11), so the Morpho headers are a superset: all 51 GPIOs of the STM32L476RG are routed to CN7 and CN10, and 47 of them are connected by default (PA2/PA3 go to the ST-LINK, and PC14/PC15 go to the 32.768kHz crystal).

Buy a Nucleo-L476RG: If you don’t have one yet, you can get the official ST board from Amazon or AliExpress. It comes with the ST-LINK debugger on board, so you can start programming it right away.

Download Nucleo-L476RG Pinout Diagrams (Full Resolution)

All 3 Nucleo-L476RG pinout diagrams (Arduino headers, CN7 and CN10 morpho) in full resolution (5120×2800 px WebP), in one ZIP file. Print them, zoom in, or keep them next to your bench. Please consider supporting my work if it helped you.


Nucleo-L476RG Datasheet

This development board is built around the STM32L476RGT6 microcontroller (LQFP64 package). Here are the official Nucleo-L476RG datasheet and documents you’ll need for it, all linked to ST’s own servers so you always get the latest revision:

DocumentIDRevisionWhat you’ll use it forLink
STM32L476xx datasheetDS10198Rev 11 (Jul 2024)Pin definitions (FT/TT), alternate-function table, low-power currents, electrical limitsPDF
STM32L47xxx/48xxx/49xxx/4Axxx reference manualRM0351Rev 11 (Apr 2026)Registers and how every peripheral and low-power mode worksPDF
STM32 Nucleo-64 boards (MB1136) user manualUM1724Rev 17 (Sep 2025)Board pinout tables, jumpers, solder bridges, power optionsPDF
NUCLEO-L476RG data briefDB2196Rev 23 (Oct 2026)One-page board summary and order codePDF
STM32L476xx/486xx errata sheetES0250Rev 13 (May 2025)Known silicon limitations and workaroundsPDF
System memory boot modeAN2606Rev 71 (Nov 2026)Bootloader pins and versions (section 79: STM32L47xxx/48xxx)PDF
MB1136 board schematicMB1136 C-05Aug 2022Full board circuit (see the next section)PDF

Which document do I need? The datasheet for pin functions, low-power currents and electrical limits, the reference manual for registers, and the UM1724 user manual for jumpers, solder bridges, and the header map. All of them are listed on the official NUCLEO-L476RG product page.


Nucleo-L476RG Schematic

The Nucleo-L476RG schematic is ST’s MB1136 rev C-05 drawing (17 Aug 2022), the newest revision listed for this board. It covers every Nucleo-64 board on the MB1136 PCB, and the L476RG version is built with a few solder bridges set differently. Here are its 4 circuit sheets; click a page to view it full screen.

Nucleo-L476RG schematic page 1: TOP & POWER (MB1136 C-05)
Sheet 1 of 4 · Top & Power
Nucleo-L476RG schematic page 2: MCU (MB1136 C-05)
Sheet 2 of 4 · MCU
Nucleo-L476RG schematic page 3: STLINK/V2-1 (MB1136 C-05)
Sheet 3 of 4 · ST-LINK/V2-1
Nucleo-L476RG schematic page 4: Extension connectors (MB1136 C-05)
Sheet 4 of 4 · Extension Connectors
Page 1 of 4

Official source: MB1136 C-05 schematic (PDF) from the NUCLEO-L476RG product page (CAD Resources). Here’s what to look at on each sheet:

  • Power path (sheet 1): USB 5v (U5V) goes through a power switch that the ST-LINK turns on only after the PC grants 300mA. VIN (7v–12v) feeds the LD1117S50 5v regulator, and jumper JP5 picks U5V or E5V. The 5v rail then feeds the LD39050PU33R 3.3v regulator (500mA). The MCU’s VDD passes through JP6 (IDD), the jumper you replace with an ammeter to measure the low-power current.
  • Clocks (sheet 2): this is where the {B} differs from the F4 Nucleos. There’s no HSE: X3 is not fitted, and the ST-LINK’s 8MHz MCO is not connected (SB16/SB50 open) to save power. Instead, SB54/SB55 connect PH0/PH1 to the Morpho header as GPIOs. The 32.768kHz crystal X2 sits on PC14/PC15 for the RTC and for trimming the MSI clock.
  • Solder bridges (sheet 2): SB13/SB14 route PA2/PA3 to the ST-LINK Virtual COM port, SB62/SB63 (open) keep them off D1/D0, SB51/SB56 put PC0/PC1 on A5/A4, SB45 ties VBAT to VDD, SB57 ties VDDA to VDD, and SB21 connects LD2 to PA5.
  • ST-LINK/V2-1 (sheet 3): an STM32F103CBT6 does the SWD debugging (PA13/PA14, PB3 SWO, NRST), the USB mass-storage flashing, and the Virtual COM port. Removing the two CN2 jumpers frees it to debug an external board on CN4.
  • Extension connectors (sheet 4): the Arduino (CN5/CN6/CN8/CN9) and Morpho (CN7/CN10) headers, with every solder-bridge option drawn next to the pin it changes.

Nucleo-L476RG Specs

The Nucleo-L476RG combines an ultra-low-power 80MHz STM32L476RGT6 with the standard Nucleo-64 board (MB1136 rev C). Here are its specifications, including the board-level parts that chip-only spec lists usually skip.

Nucleo-L476RG development board (MB1136 rev C)

Get a Nucleo-L476RG: The official ST board is the one I recommend. Grab it from Amazon or AliExpress.

ItemNucleo-L476RG
MCUSTM32L476RGT6, LQFP64
CoreArm Cortex-M4 with FPU and DSP, up to 80MHz (100 DMIPS), ART Accelerator
Memory1MB Flash in 2 banks (read-while-write), 128KB SRAM (96KB SRAM1 + 32KB SRAM2)
Low powerShutdown 30nA, Standby 120nA, Stop 2 1.1µA, VBAT 300nA, Run 100µA/MHz
Logic level3.3v (all I/Os 5v tolerant except PA3, PA4, PA5 and PB0)
GPIO pins51 on the Morpho headers, 22 on the Arduino headers (20 connected by default)
Board supplyUSB 5v (300mA), VIN 7v–12v, E5V 4.75v–5.25v, or 3.3v direct
5v regulatorLD1117S50TR: 800mA at 7v in, 450mA at 7v–9v, 250mA at 9v–12v
3.3v regulatorLD39050PU33R, 500mA
ClocksNo HSE (MSI or HSI16 + PLL for 80MHz), 32.768kHz LSE crystal (X2)
DebuggerOn-board ST-LINK/V2-1 (snap-off): SWD, drag-and-drop flashing, Virtual COM port on USART2
USB connectorMini-B (CN1), for the ST-LINK only
HeadersArduino Uno V3 (CN5, CN6, CN8, CN9) + two 2×19 ST Morpho headers (CN7, CN10)
User I/OLD2 green LED (PA5), B1 user button (PC13), B2 reset button
Current measurementJP6 (IDD) jumper in series with the MCU supply
PCBMB1136 rev C (MB1136-L476RG-C03/C04/C05), the same PCB as the Nucleo-F401RE and F446RE

Nucleo-L476RG Specifications Summary

  • The Nucleo-L476RG runs the STM32L476RGT6 at up to 80MHz with 1MB Flash and 128KB RAM.
  • It draws 30nA in Shutdown, 120nA in Standby (420nA with the RTC), and 1.1µA in Stop 2 (1.4µA with the RTC).
  • All 51 GPIOs are on the Morpho headers; the Arduino headers carry 22 of them (D0/D1 are disconnected by default).
  • Every I/O is 5v tolerant except PA3 (D0), PA4 (A2), PA5 (D13) and PB0 (A3), which are 3.3v-only TT pins.
  • It has 3x 12-bit ADCs at 5Msps (up to 16-bit with hardware oversampling) with 16 external channels; 9 ADC pins are on the Arduino headers.
  • It has 2x 12-bit DAC outputs (A2 and D13), 2 op-amps and 2 comparators.
  • 17 Arduino pins can output PWM: D2–D15, A0, A1 and A3.
  • It has 6 serial ports: 3 USARTs, 2 UARTs and 1 LPUART. USART2 on PA2/PA3 is the ST-LINK Virtual COM port.
  • The default I2C pins are D15 (PB8, SCL) and D14 (PB9, SDA), and A4/A5 work as I2C3 out of the box.
  • The default SPI pins are D13 (SCK), D12 (MISO), D11 (MOSI) on SPI1.
  • It has 1x CAN 2.0B on D15/D14 (PB8/PB9) and USB OTG FS on PA11/PA12 (Morpho only).
  • The user LED LD2 is on PA5 (D13), and the user button B1 is on PC13 (also wake-up pin WKUP2).

Nucleo-L476RG Peripherals: MCU vs On the Headers

The STM32L476RG has more peripherals than the Arduino headers can show. This table tells you what the chip has and where you can actually reach it on the board.

PeripheralSTM32L476RG (LQFP64)On the Arduino headersOn the Morpho headers
ADC3x 12-bit, 5Msps, 16 external channels, oversampling to 16-bit9 pins (A0–A5, D11–D13)14 pins by default, 16 after SB62/SB63
DAC2x 12-bit (DAC1_OUT1/OUT2)A2 (PA4), D13 (PA5)both
Op-amp / comparator2x op-amps with PGA, 2x ultra-low-power comparatorsOPAMP1 inputs on A0/A1, OPAMP2 inputs on D12/D11, output on A3all
PWM timersTIM1/8 (advanced), TIM2/5 (32-bit), TIM3/4, TIM15/16/17; TIM6/7 basic17 PWM pins28 PWM pins
Low-power timersLPTIM1, LPTIM2 (run in Stop mode)A4, A5, A2, D4, D7, D10, D13more on PB1, PB2, PB7, PC2, PC3
U(S)ARTUSART1/2/3, UART4/5, LPUART1USART1, USART3_TX, LPUART1 (A4/A5, D6), UART4; USART2 only after SB62/SB63all six
SPISPI1, SPI2, SPI3 + Quad-SPISPI1 (D11–D13), SPI3 (D3–D5)SPI1–SPI3, Quad-SPI
I²CI2C1, I2C2, I2C3, all Fast-mode Plus (1MHz)I2C1 (D14/D15), I2C3 (A4/A5), I2C2_SCL (D6)all three
CAN1x CAN 2.0BD14/D15plus PA11/PA12
USBOTG FS with on-chip PHY (LPM, BCD)nonePA11/PA12
Others2x SAI, SDMMC, LCD driver, touch sensing, DFSDM, SWPMI, RNG, 14 DMA channelssome signalsyes

Nucleo-L476RG Quick Pin Selection Guide

Not sure which pin to use? Here are the Nucleo-L476RG pins I’d pick first for each job, and why.

Use caseRecommended pinsWhy
Serial to the PCUSART2 (PA2/PA3) via USBAlready wired to the ST-LINK Virtual COM port; Serial in Arduino
Serial to a module (GPS, Bluetooth…)USART1: D8 (TX), D2 (RX)On the Arduino header and free by default
Serial that wakes from Stop 2LPUART1: A4 (TX), A5 (RX)Keeps receiving in Stop 2 at 9600 baud from the LSE
I2C sensors and displaysD15 (SCL), D14 (SDA)The default Wire pins; add 4.7kΩ pull-ups
Second I2C busA5 (SCL), A4 (SDA)I2C3, with no solder-bridge change
SPI devicesD13 (SCK), D12 (MISO), D11 (MOSI), D10 (CS)The default SPI pins (SPI1)
PWM (motors, LEDs, servos)D3, D5, D6, D9, D10, D11Free timer channels on the Arduino header
Analog inputsA0, A1, A4, A5ADC pins that are 5v tolerant as digital pins and free by default
Analog output (DAC)A2 (PA4)DAC1_OUT1 with no LED load (D13 drives LD2)
CAN busD15 (CAN1_RX), D14 (CAN1_TX)With a CAN transceiver such as the SN65HVD230
USB devicePA11 (DM), PA12 (DP) on CN10USB OTG FS with the on-chip PHY
Wake-up from Standby/ShutdownPC13 (B1), A0 (PA0)WKUP2 and WKUP1
On-board LED / buttonPA5 (LD2), PC13 (B1)LED_BUILTIN and USER_BTN in Arduino
Safest general GPIOD2, D4, D7, D8 and the Morpho-only PC8, PC9, PC10–PC12, PH0, PH1No board load, no debug or boot role

Nucleo-L476RG Pins to Use With Caution

PinReasonWhat to do
PA3 (D0), PA4 (A2), PA5 (D13), PB0 (A3)TT pins: not 5v tolerant (3.6v max)Never connect 5v signals; use a level shifter or divider
PA5 (D13)Drives LED LD2 (via SB21)Expect the LED load on SPI SCK or DAC; open SB21 for a clean signal
PA2, PA3 (D1, D0)Wired to the ST-LINK Virtual COM port, disconnected from D0/D1Use USART1 for header serial, or close SB62/SB63 and open SB13/SB14
PA13, PA14SWD pins of the ST-LINKDon’t reuse them, or you lose debugging
PB3 (D3), PB4 (D5), PA15JTAG pins (SWO, NJTRST, JTDI) after resetSet debug to Serial Wire to free them
PC13, PC14, PC15Backup-domain pins: 3mA max, 2MHz max, never drive an LEDUse them for inputs only; PC14/PC15 are taken by X2
PH0, PH1Free GPIOs here, but weaker pads than normal I/OsFine for slow signals; keep HSE off in CubeMX
PC0, PC1 (A5, A4)I2C3, not I2C1Use I2C3 in your code, or move I2C1 there with SB46/SB52 (and open SB51/SB56)

Nucleo-L476RG Pins Functions

The 51 GPIO pins of the Nucleo-L476RG are divided into the following groups based on the hardware functionality they’re used for. Most pins have several alternate functions, so one pin can belong to more than one group.

We’ll discuss each pin group in the following sections one by one in more detail.


Nucleo-L476RG Power Pins

The Nucleo-L476RG can be powered from the USB connector (5v, 300mA), the VIN pin (7v–12v), the E5V pin (4.75v–5.25v) or directly from 3.3v. The power pins are highlighted in red in the pinout diagrams.

Nucleo-L476RG power pins (VDD, E5V, IOREF, 3V3, 5V, VIN, VBAT, GND) on the CN7 Morpho header

PinHeader pinsRangeNotes
VINCN6-8, CN7-247v–12v inLD1117 5v regulator: 800mA at 7v, 450mA at 7v–9v, 250mA at 9v–12v. Set JP5 to E5V
E5VCN7-64.75v–5.25v in500mA max. Set JP5 to E5V
U5VCN10-85vFrom the ST-LINK USB connector
5VCN6-5, CN7-185v outLimited by the source you power the board from
3V3CN6-4, CN7-163.3v out / in500mA regulator; use it as an input only with SB2 and SB12 open
IOREFCN6-2, CN7-123.3vTells shields the I/O level
AVDD / AREFCN10-7, CN5-8= VDDTied to 3.3v by SB57; open it for an external reference
VBATCN7-33= VDDTied to VDD by SB45; open it to run the RTC from a coin cell
GNDCN6-6/7, CN5-7, CN7-8/19/20/22, CN10-9/20/320vAll grounds are common

When you power the board from USB, the ST-LINK asks the PC for 300mA, and that’s the budget for the board plus any shield. If your project needs more, power it from VIN or E5V. The power-up order with an external supply is: move JP5 to E5V, apply the external power, check that the red LD3 LED is on, and only then plug in the USB cable.

Note: Do not feed 5v into the 3V3 pin, and don’t connect two power sources to the same rail at the same time. If you want to supply the board with 3.3v directly, open SB2 (and SB12), otherwise you back-feed the on-board regulator and the ST-LINK.


Nucleo-L476RG Low-Power Modes & Current Measurement

The Nucleo-L476RG is the Nucleo-64 board to pick for battery projects: the STM32L476RG draws only 30nA in Shutdown, 120nA in Standby and 1.1µA in Stop 2. You can measure that current on the board itself, by replacing the JP6 (IDD) jumper with an ammeter.

ModeTypical current (DS10198)What keeps runningHow it wakes up
Run (LDO)100µA/MHzEverything–
Stop 21.1µA (1.4µA with RTC)SRAM and registers kept; RTC, LPTIM1 and LPUART1 can runAny EXTI pin, RTC, LPTIM1, LPUART1; about 4µs, then the code continues
Standby120nA (420nA with RTC)Backup registers, RTC; SRAM2 optionally keptWKUP pins, RTC, reset; restarts from reset
Shutdown30nABackup registers, RTC from the LSEWKUP pins, RTC, reset; restarts from reset
VBAT300nARTC and 32 backup registers from a coin cellWhen VDD comes back

Nucleo-L476RG Wake-Up Pins: WKUP1 = PA0 (A0), WKUP2 = PC13 (B1 button), WKUP4 = PA2 and WKUP5 = PC5 (CN10-6). The blue B1 button is the easiest way to try it: put the MCU in Standby or Shutdown, and wake it with WKUP2 set to a falling edge.

How to Measure the Nucleo-L476RG Current With JP6

  1. Flash your low-power firmware first, while the board is still powered normally.
  2. Remove the JP6 (IDD) jumper and connect your ammeter (or a power analyzer) across its two pins. Only the MCU’s VDD current flows through it; the ST-LINK, the LEDs and the regulator aren’t included.
  3. Start on a high current range, then switch to the µA range once the MCU is asleep, so the reset current doesn’t trip the meter.
  4. For real nano-amp readings, cut the ST-LINK off from the MCU: remove the CN2 jumpers or keep the ST-LINK in reset, because its USART2 and SWD lines leak current into the MCU pins.
  5. Set all unused pins to analog mode before sleeping, and disable the debug-in-low-power options, or the readings stay in the tens of µA.

Note: If the current is much higher than the datasheet says, the usual causes are floating pins, the debugger still attached, and the green LED LD2 left on. ST’s own STM32CubeL4 PWR examples for this board use the same JP6 method.

Learn more in our STM32 Low Power Modes Tutorial series.


Nucleo-L476RG GPIO Pins

The Nucleo-L476RG has 51 GPIO pins on its Morpho headers, and 22 of them are also on the Arduino headers (D0–D15, A0–A5). They work at 3.3v, and all of them are 5v tolerant except PA3 (D0), PA4 (A2), PA5 (D13) and PB0 (A3).

Nucleo-L476RG GPIO pins on the Arduino headers (D0-D15, A0-A5)

Each GPIO can be an input (floating, pull-up or pull-down), a push-pull or open-drain output, an analog pin or an alternate function. Here are the electrical limits from the DS10198 datasheet:

  • Absolute max current per pin: ±20mA. Keep it under ±8mA for guaranteed logic levels.
  • Total current for all pins: 100mA sunk and 100mA sourced.
  • PC13, PC14 and PC15: 3mA max and 2MHz max; never drive an LED with them.
  • 5v tolerance (FT) only applies while the board is powered and the pin isn’t in analog mode.

Note: On the Nucleo-L476RG, D0 (PA3), A2 (PA4), D13 (PA5) and A3 (PB0) are 3.3v-only. On the Nucleo-F401RE all four are 5v-tolerant, and on the F446RE only A2 and D13 are 3.3v-only, so a 5v shield that was fine on those boards can damage these pins on the L476RG.

Learn more in our STM32 GPIO Tutorial series.


Nucleo-L476RG Interrupt Pins

Every GPIO pin on the Nucleo-L476RG can be an external interrupt source. The STM32L476RG has 16 EXTI lines for the pins, one per pin number, so PA0, PB0 and PC0 all share EXTI0 and only one of them can use it at a time. The EXTI lines also wake the MCU from Sleep and Stop modes.

EXTI linePins that can use itInterrupt vector
EXTI0 – EXTI4Px0 – Px4 (one port each)EXTI0_IRQn … EXTI4_IRQn (one each)
EXTI5 – EXTI9Px5 – Px9EXTI9_5_IRQn (shared)
EXTI10 – EXTI15Px10 – Px15 (B1 = PC13 on EXTI13)EXTI15_10_IRQn (shared)

The user button B1 on PC13 is the easiest pin to try an interrupt with: it has an external pull-up and reads LOW when pressed, so set a falling-edge trigger. In Arduino, attachInterrupt(digitalPinToInterrupt(pin), isr, FALLING) works on any pin.

Learn more in our STM32 External Interrupt Tutorial.


Nucleo-L476RG ADC Pins

The Nucleo-L476RG has 3x 12-bit ADCs at up to 5Msps with 16 external channels, and 9 of them are on the Arduino headers: A0–A5 plus D11, D12 and D13. With hardware oversampling, the ADC gives up to 16-bit results. The reference is VDDA (3.3v) by default.

Nucleo-L476RG ADC pins (A0 PA0, A1 PA1, A2 PA4, A3 PB0, A4 PC1, A5 PC0, D11 PA7, D12 PA6, D13 PA5)

Arduino pinGPIOADC channelHeader pins
A0PA0ADC12_IN5CN8-1, CN7-28
A1PA1ADC12_IN6CN8-2, CN7-30
A2PA4ADC12_IN9 (3.3v only)CN8-3, CN7-32
A3PB0ADC12_IN15 (3.3v only)CN8-4, CN7-34
A4PC1ADC123_IN2CN8-5, CN7-36
A5PC0ADC123_IN1CN8-6, CN7-38
D11PA7ADC12_IN12CN5-4, CN10-15
D12PA6ADC12_IN11CN5-5, CN10-13
D13PA5ADC12_IN10 (3.3v only)CN5-6, CN10-11
–PB1ADC12_IN16CN10-24
–PC2ADC123_IN3CN7-35
–PC3ADC123_IN4CN7-37
–PC4ADC12_IN13CN10-34
–PC5ADC12_IN14CN10-6

Channels named ADC123 can be read by any of the three ADCs, and ADC12 channels by ADC1 or ADC2. The channel numbers are different from the F4 Nucleos (A0 is IN5 here, not IN0), so don’t copy the channel numbers from an F401RE or F446RE project. PA2 and PA3 (IN7/IN8) are also analog pins, but they’re taken by the Virtual COM port.

Note: A pin in analog mode is never 5v tolerant, so keep every ADC input between 0v and 3.3v. Use a voltage divider to measure higher voltages.

There are so many sensors that we can read with the ADC pins, which include: potentiometers, LDRs, analog temperature sensors (LM35, NTC thermistors), current sensors (ACS712), joysticks, soil moisture sensors, and much more.

Learn more in our STM32 ADC Tutorial series.


Nucleo-L476RG DAC Pins

The Nucleo-L476RG has 2x 12-bit DAC outputs: DAC1_OUT1 on A2 (PA4) and DAC1_OUT2 on D13 (PA5). They output 0v to 3.3v, and they have a low-power sample-and-hold mode for battery-powered designs.

DAC outputGPIOArduino pinHeader pinsNote
DAC1_OUT1PA4A2CN8-3, CN7-32Clean output, recommended
DAC1_OUT2PA5D13CN5-6, CN10-11Loaded by LED LD2 (SB21)

Note: If the voltage on D13 isn’t what you set, it’s the green LED LD2 loading the output. Use DAC1_OUT1 on A2, enable the DAC output buffer, or open SB21 to disconnect the LED.

In the Arduino core, analogWrite() on A2 and D13 uses the DAC instead of PWM.

Learn more in our STM32 DAC Tutorial series.


Nucleo-L476RG Op-Amp & Comparator Pins

The Nucleo-L476RG has 2 op-amps with a built-in programmable gain amplifier (PGA) and 2 ultra-low-power comparators, which the F4 Nucleos don’t have. OPAMP1 has its inputs on A0/A1, and OPAMP2 has its inputs on D12/D11 and its output on A3.

BlockNon-inverting input (+)Inverting input (−)Output
OPAMP1PA0 (A0)PA1 (A1)PA3 (D0, the VCP RX pin)
OPAMP2PA6 (D12)PA7 (D11)PB0 (A3)
COMP1PC5 (CN10-6), PB2 (CN10-22)PB1 (CN10-24), PC4 (CN10-34), internal VREFINT/DACPB0 (A3), PB10 (D6)
COMP2PB4 (D5), PB6 (D10)PB3 (D3), PB7 (CN7-21), internal VREFINT/DACPB5 (D4), PB11 (CN10-18)

In PGA mode, an op-amp amplifies a small sensor signal by x2 to x16 and feeds it straight to the ADC inside the chip, so you don’t need an external amplifier for a thermocouple or a shunt resistor. The comparators can compare a pin against an internal reference or the DAC, and they keep working in Stop mode to wake the MCU.

Learn more in our STM32 OpAmp (PGA) Tutorial.

Learn more in our STM32 Comparator Tutorial.


Nucleo-L476RG PWM Pins

The Nucleo-L476RG has 17 PWM pins on the Arduino headers (D2–D15, A0, A1 and A3) and 28 in total across the Morpho headers. The PWM pins are highlighted in orange in the pinout diagrams.

Nucleo-L476RG PWM pins (D2-D15, A0, A1, A3) with their timer channels

Arduino pinGPIOTimer channelArduino pinGPIOTimer channel
D2PA10TIM1_CH3D10PB6TIM4_CH1
D3PB3TIM2_CH2D11PA7TIM17_CH1 (or TIM3_CH2)
D4PB5TIM3_CH2D12PA6TIM3_CH1 (or TIM16_CH1)
D5PB4TIM3_CH1D13PA5TIM2_CH1
D6PB10TIM2_CH3D14PB9TIM4_CH4 (or TIM17_CH1)
D7PA8TIM1_CH1D15PB8TIM4_CH3 (or TIM16_CH1)
D8PA9TIM1_CH2A0PA0TIM2_CH1 / TIM5_CH1
D9PC7TIM3_CH2 (or TIM8_CH2)A1PA1TIM2_CH2 / TIM5_CH2
A3PB0TIM3_CH3

Pins on the same timer share its frequency, and some pins share the same channel: D13 and A0 can both be TIM2_CH1, D3 and A1 can both be TIM2_CH2, and D4, D9 and D11 can all be TIM3_CH2. Two pins on one channel always output the same duty cycle, so pick the alternative timer in brackets (or TIM5 for A0/A1) when you need them separately. TIM2 and TIM5 are 32-bit timers; the rest are 16-bit.

Nucleo-L476RG Low-Power Timer (LPTIM) Pins

The Nucleo-L476RG also has 2 low-power timers, LPTIM1 and LPTIM2. They run from the LSE or LSI clock and keep counting, generating PWM or waking the MCU while it sleeps in Stop mode (LPTIM1 even in Stop 2).

TimerOutputInputsExternal trigger
LPTIM1A4 (PC1), PB2IN1: A5 (PC0), D4 (PB5); IN2: PC2, PB7PC3, D10 (PB6)
LPTIM2A2 (PA4), D7 (PA8)IN1: PB1, A5 (PC0)D13 (PA5), PC3

There are so many things that we can control with PWM, which include: LED dimming, DC motor speed (with a driver), servo motors, buzzers, ESCs for brushless motors, and much more.

Calculate your timer settings with this STM32 PWM Calculator.

Learn more in our STM32 PWM Tutorial series.


Nucleo-L476RG UART Pins

The Nucleo-L476RG has 6 serial ports: 3 USARTs (USART1, USART2, USART3), 2 UARTs (UART4, UART5) and 1 low-power UART (LPUART1). USART2 (PA2/PA3) is wired to the ST-LINK Virtual COM port, so it reaches your PC through the USB cable, not the D0/D1 pins.

Nucleo-L476RG UART pins (D8 PA9 USART1_TX, D2 PA10 USART1_RX, D6 PB10 USART3_TX, A0/A1 UART4, A4/A5 LPUART1)

Nucleo-L476RG Default Serial (USART2): PA2 (TX) and PA3 (RX), to the PC over USB.

UARTTX pinsRX pinsNote
USART1D8 (PA9), D10 (PB6)D2 (PA10), PB7 (CN7-21)Best choice for a header UART
USART2PA2 (D1 after SB62)PA3 (D0 after SB63)ST-LINK Virtual COM port
USART3D6 (PB10), PC4 (CN10-34), PC10 (CN7-1)PB11 (CN10-18), PC5 (CN10-6), PC11 (CN7-2)
UART4A0 (PA0), PC10 (CN7-1)A1 (PA1), PC11 (CN7-2)
UART5PC12 (CN7-3)PD2 (CN7-4)Morpho only
LPUART1A4 (PC1), PB11 (CN10-18)A5 (PC0), D6 (PB10)Works in Stop 2 and wakes the MCU

LPUART1 is the one to use in low-power designs: clocked from the 32.768kHz LSE, it keeps receiving at up to 9600 baud while the MCU sleeps in Stop 2, and wakes it up when a byte arrives.

Note: D0 and D1 are not connected by default. If your shield uses D0/D1 for serial, either move it to USART1 (D8/D2), or close SB62/SB63 and open SB13/SB14, which disconnects the Virtual COM port. Remember that D0 (PA3) is a 3.3v-only pin on this board.

There are so many modules that we can interface with the UART pins, which include: GPS modules, Bluetooth modules (HC-05), ESP8266/ESP32 Wi-Fi modules, LoRa modules, RS485 transceivers, fingerprint sensors, and much more.

Learn more in our STM32 UART Tutorial series.


Nucleo-L476RG I2C Pins

The Nucleo-L476RG has 3x I2C buses, all of them Fast-mode Plus (1MHz). The default I2C1 pins are D15 (PB8, SCL) and D14 (PB9, SDA), and unlike the F4 Nucleos, A5 (PC0) and A4 (PC1) are a second bus, I2C3, with no solder-bridge change.

Nucleo-L476RG I2C pins (D15 PB8 SCL, D14 PB9 SDA, D10 PB6, D6 PB10, A5 PC0 I2C3_SCL, A4 PC1 I2C3_SDA)

Nucleo-L476RG Default I2C1 Pins: D14 = PB9 (SDA) and D15 = PB8 (SCL).

I2C busSCL pinsSDA pinsNote
I2C1D15 (PB8), D10 (PB6)D14 (PB9), PB7 (CN7-21)Default Wire bus
I2C2D6 (PB10), PB13 (CN10-30)PB11 (CN10-18), PB14 (CN10-28)
I2C3A5 (PC0)A4 (PC1)Arduino Uno A4/A5 position

Note: An Arduino shield that uses A4/A5 for I2C works on the L476RG only if your code uses I2C3 (in Arduino: TwoWire Wire3(PC1, PC0);). There are no I2C pull-up resistors on the board, so add 4.7kΩ pull-ups to 3.3v unless your module already has them.

There are so many modules and sensors that we can interface with the I2C bus, which include: OLED displays (SSD1306), I2C LCDs, RTC modules (DS3231), IMUs (MPU6050), BME280 sensors, EEPROMs, and much more.

Learn more in our STM32 I2C Tutorial series.


Nucleo-L476RG SPI Pins

The Nucleo-L476RG has 3x SPI ports (SPI1, SPI2, SPI3) plus a Quad-SPI interface for external flash. The default SPI1 pins are D13 (SCK), D12 (MISO) and D11 (MOSI), just like on an Arduino Uno.

Nucleo-L476RG SPI pins (D13 PA5 SCK, D12 PA6 MISO, D11 PA7 MOSI, D3 PB3, D5 PB4, D4 PB5)

Nucleo-L476RG Default SPI1 Pins: D13 = PA5 (SCK), D12 = PA6 (MISO), D11 = PA7 (MOSI), and any GPIO (usually D10) as CS.

SPI portSCKMISOMOSINSS
SPI1D13 (PA5), D3 (PB3)D12 (PA6), D5 (PB4)D11 (PA7), D4 (PB5)A2 (PA4), PA15
SPI2D6 (PB10), PB13PB14, PC2PB15, PC3PB12, D14 (PB9)
SPI3D3 (PB3), PC10D5 (PB4), PC11D4 (PB5), PC12A2 (PA4), PA15
Quad-SPID6 (PB10)IO0–IO3: PB1, A3 (PB0), D11 (PA7), D12 (PA6)PB11

Note: D13 (SPI1_SCK) also drives the green LED LD2, so the LED flickers during SPI transfers. That’s normal. UM1724 calls D10 “SPI1_CS”, but PB6 has no hardware NSS: drive it as a GPIO chip select in software.

There are so many modules that we can interface with the SPI bus, which include: TFT displays (ILI9341, ST7735), SD card modules, nRF24L01 radios, MAX7219 LED drivers, W5500 Ethernet modules, and much more.

Learn more in our STM32 SPI Tutorial series.


Nucleo-L476RG CAN Pins

The Nucleo-L476RG has 1x CAN 2.0B controller (CAN1) on D15 (PB8, RX) and D14 (PB9, TX), or on PA11/PA12 on the CN10 Morpho header.

Nucleo-L476RG CAN and USB pins (D15 PB8 CAN1_RX, D14 PB9 CAN1_TX, D7 PA8 OTG_FS_SOF, D8 PA9 OTG_FS_VBUS, D2 PA10 OTG_FS_ID)

CANRX pinsTX pins
CAN1D15 (PB8), PA11 (CN10-14)D14 (PB9), PA12 (CN10-12)

Note: The board has no CAN transceiver. Connect a 3.3v transceiver (SN65HVD230, TJA1051T/3…) between the pins and the bus, or use loopback mode for a quick test. D14/D15 can be I2C1 or CAN1, never both at once, so move your I2C devices to I2C3 on A4/A5 when you use CAN.


Nucleo-L476RG USB Pins

The STM32L476RG has a USB OTG FS controller with an on-chip PHY, but the Nucleo-L476RG’s Mini-B connector only goes to the ST-LINK. To use the MCU’s own USB, wire a USB connector to PA11 (D−) and PA12 (D+) on CN10. VDDUSB is already tied to 3.3v on the board.

SignalGPIOHeader pin
D− (DM)PA11CN10-14
D+ (DP)PA12CN10-12
VBUS sensePA9D8, CN10-21
IDPA10D2, CN10-33
SOFPA8D7, CN10-23

USB needs an exact 48MHz clock, and there’s no HSE crystal on this board. The trick is to run the MSI oscillator at 48MHz and let the 32.768kHz LSE crystal trim it automatically (MSI PLL mode, “MSIPLLEN” in CubeMX), or to take 48MHz from PLLSAI1.

Learn more in our STM32 USB CDC Tutorial.


Nucleo-L476RG Debug (SWD) & Boot Pins

The Nucleo-L476RG is programmed and debugged over SWD on PA13 (SWDIO) and PA14 (SWCLK), with PB3 (SWO) for trace output, all wired to the on-board ST-LINK/V2-1. The boot mode is set by the BOOT0 pin (CN7-7) and the nBOOT1 option bit; unlike the F4 Nucleos, there’s no BOOT1 pin.

Nucleo-L476RG debug and boot pins (PA13 SWDIO, PA14 SWCLK, PA15 JTDI, PB3 SWO, PB4 NJTRST, BOOT0, NRST) on CN7

PinHeader pinFunction after reset
PA13CN7-13SWDIO (JTMS)
PA14CN7-15SWCLK (JTCK)
PB3D3, CN10-31SWO (JTDO), to the ST-LINK via SB15
PA15CN7-17JTDI (pull-up on)
PB4D5, CN10-27NJTRST
NRSTCN6-3, CN7-14Reset (B2 button, ST-LINK)
BOOT0CN7-7Pulled LOW by 10kΩ
BOOT0nBOOT1 (option bit)Boots from
0anyMain Flash (normal)
11 (default)System memory (ST bootloader)
10Embedded SRAM

To start the ST system bootloader, place a jumper from CN7-5 (VDD) to CN7-7 (BOOT0) and reset the board. According to AN2606 (section 79), the STM32L476 bootloader listens on these pins:

InterfacePinsHeader
USART1PA9 (TX), PA10 (RX)D8, D2
USART2PA2 (TX), PA3 (RX)ST-LINK Virtual COM port
USART3PC10 (TX), PC11 (RX)CN7-1, CN7-2
I2C1 / I2C2 / I2C3PB6/PB7, PB10/PB11, PC0/PC1 (SCL/SDA)D10/CN7-21, D6/CN10-18, A5/A4
USB DFUPA11 (DM), PA12 (DP)CN10-14, CN10-12
SPI1 / SPI2 / CAN1PA4–PA7, PB12–PB15, PB8/PB9Only in bootloader V9.x chips

USB DFU works on this board without an HSE because the bootloader trims the MSI with the LSE crystal. To debug another STM32 board with the on-board ST-LINK, remove both CN2 jumpers and use the 6-pin CN4 SWD connector.

Learn more in our STM32 SWD Debugging Tutorial.


Nucleo-L476RG On-Board Features

Besides the headers, the Nucleo-L476RG has 3 LEDs, 2 buttons, a few jumpers, and a long list of solder bridges. Here’s what each one does.

PartPin / ConnectionWhat it does
LD1 COM (red/green)ST-LINKRed blinking: before USB init. Red: ready. Green: target connected. Red/green blinking: communicating. Orange: communication failure
LD2 USER (green)PA5 / D13 (SB21)HIGH = on
LD3 PWR (red)+5VThe board is powered
B1 USER (blue)PC13 (SB17)External pull-up, reads LOW when pressed; also WKUP2
B2 RESET (black)NRSTResets the MCU
JP1U5VON: limits the USB request to 100mA, lets a USB charger power the board
JP5Power selectU5V (default) or E5V (for VIN and E5V)
JP6 (IDD)MCU supplyRemove it and insert an ammeter to measure the MCU current
CN2ST-LINK jumpersON: the ST-LINK debugs the on-board MCU. OFF: use CN4 for an external target

Nucleo-L476RG Solder Bridges

These are the solder bridges you’re most likely to change, with the L476RG defaults (UM1724 Table 10 and section 7.9.1):

BridgeDefaultEffect
SB13, SB14ONPA2/PA3 (USART2) to the ST-LINK Virtual COM port
SB62, SB63OFFPA2/PA3 not on D1/D0 (close them to use D0/D1)
SB51, SB56ONA5 = PC0, A4 = PC1
SB46, SB52OFFClose (and open SB51/SB56) to put I2C1 PB9/PB8 on A4/A5
SB21ONLED LD2 on PA5
SB16, SB50OFFNo 8MHz MCO from the ST-LINK (HSE not used, to save power)
SB54, SB55ONPH0/PH1 on CN7-29/31 as GPIOs
SB48, SB49OFFPC14/PC15 go to X2, not to CN7-25/27
SB45ONVBAT = VDD
SB57ONAVDD/AREF = VDD
SB2, SB12ON3.3v regulator output, ST-LINK NRST
SB15ONSWO (PB3) to the ST-LINK
SB17ONB1 button on PC13

Getting Started With Nucleo-L476RG

You can program the Nucleo-L476RG with any of the common STM32 toolchains, and the ST-LINK on board means you don’t need anything else besides a Mini-USB cable.

  • STM32CubeIDE: start a new project from the Board Selector, pick NUCLEO-L476RG, and let CubeMX set up LD2, B1 and USART2 for you. Leave HSE disabled and clock the PLL from MSI or HSI16 to reach 80MHz (Range 1, 4 Flash wait states).
  • Arduino IDE (STM32duino): install “STM32 MCU based boards”, then choose Board: “Nucleo-64” and Board part number: “Nucleo L476RG”.
  • PlatformIO: board ID nucleo_l476rg, with the STM32Cube, Arduino or Zephyr framework.
  • Zephyr RTOS: board name nucleo_l476rg.
  • Drag-and-drop: the board shows up as a USB drive called NODE_L476RG; copy a .bin file onto it to flash it.
Arduino namePinDefault
SerialPA2 / PA3 (USART2)To the PC through the ST-LINK
WirePB9 (SDA, D14), PB8 (SCL, D15)I2C1
SPID13 / D12 / D11, CS = D10SPI1
LED_BUILTINPA5 (D13)LD2
USER_BTNPC13B1
analogWrite() on A2, D13PA4, PA5DAC instead of PWM
System clockMSI 4MHz → PLL80MHz

Here’s the classic first test, blinking LD2 and printing to the Serial Monitor at 115200 baud:

With STM32CubeIDE and HAL, the same blink is HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5); in the main loop. Follow the STM32 LED Blink Code Example for the full walk-through, and set up the 80MHz clock with the STM32 RCC Clock Configuration Guide.


Nucleo-L476RG Common Problems & Fixes

Why doesn’t Serial work on D0/D1? PA2/PA3 go to the ST-LINK Virtual COM port, and D0/D1 are disconnected by default (SB62/SB63 open). Read Serial in the PC’s terminal over USB, or use USART1 on D8/D2 for a header UART (Zephyr board docs).

Why doesn’t my CubeMX project with “HSE bypass” start? There’s no 8MHz MCO on the L476RG board (SB16/SB50 are open), unlike the F4 Nucleos. Disable HSE and use MSI or HSI16 with the PLL.

Why doesn’t my I2C shield respond on A4/A5? A4/A5 are PC1/PC0, which are I2C3, not I2C1. Use I2C3 in your code, wire the module to D14/D15, or move SB46/SB52 and SB51/SB56. Add 4.7kΩ pull-ups.

Why won’t PA15 work as a GPIO output? PA15 is JTDI after reset. Set System Core → SYS → Debug to “Serial Wire” in CubeMX, which frees PA15, PB3 and PB4 (ST Community).

Why doesn’t an interrupt on PC14 or PC15 fire? They aren’t on CN7-25/27 by default: the 32.768kHz crystal X2 uses them (SB48/SB49 open). Pick another pin.

Why is my Stop/Standby current so high? Unused pins left floating, the ST-LINK still connected to the MCU, and debug-in-low-power left on. Set unused pins to analog, remove the CN2 jumpers, and measure on JP6.

Why did a 5v shield damage D0, A2, A3 or D13? PA3, PA4, PA5 and PB0 are 3.3v-only (TT) on the L476RG. Use a level shifter on those pins.


Nucleo-L476RG vs Nucleo-F446RE

The Nucleo-L476RG and the Nucleo-F446RE share the same MB1136 PCB, so the headers, power, LEDs and ST-LINK are identical. The MCU is what changes, and it changes a lot:

FeatureNucleo-L476RGNucleo-F446RE
MCU clock80MHz180MHz
Flash / RAM1MB / 128KB512KB / 128KB
Lowest-power modeShutdown, 30nAStandby (µA range)
ADC3x 12-bit, 5Msps, 16-bit oversampling3x 12-bit, 2.4Msps
DAC2 channels2 channels
Op-amps / comparators2 / 2None
CAN1x CAN 2.0B2x CAN 2.0B
Serial ports5 + LPUART16
I2C on A4/A5Yes (I2C3)No (solder bridges needed)
USBOTG FSOTG FS + OTG HS
Clock sourceMSI/HSI16 (no HSE)8MHz MCO from the ST-LINK
3.3v-only header pinsD0, A2, A3, D13A2, D13

Pick the Nucleo-L476RG for battery-powered and sensor projects, where the nano-amp sleep modes, the op-amps and the LPUART matter more than raw speed. Pick the F446RE when you need 180MHz, two CAN buses or USB high-speed.


Nucleo-L476RG Pin Details

Here is every Nucleo-L476RG header pin in physical order, with its main functions, all its alternate functions, its 5v tolerance, and a short description. The Arduino headers come first, then the two ST Morpho headers.

Nucleo-L476RG Arduino Header Pins (CN5, CN6, CN8, CN9)

Click to expand the full pin table (32 pins)
PinLabelGPIOMain functionsAll alternate functions5v tolerantDescription
CN6-1NC––––Not connected.
CN6-2IOREF–3.3v ref––3.3v I/O reference for shields.
CN6-3RESET–NRST––NRST: pull it LOW to reset the MCU.
CN6-43V3–3.3v in/out––3.3v output from the LD39050 regulator (500mA), or 3.3v input with SB2/SB12 open.
CN6-55V–5v out––5v output from USB, VIN or E5V.
CN6-6GND––––Ground.
CN6-7GND––––Ground.
CN6-8VIN–7v–12v in––7v–12v input to the 5v regulator.
CN8-1A0PA0ADC12_IN5, OPAMP1_INP, TIM2_CH1, TIM5_CH1, USART2_CTS, UART4_TX, WKUP1TIM2_CH1, TIM5_CH1, TIM8_ETR, USART2_CTS, UART4_TX, SAI1_EXTCLK, TIM2_ETR, ADC1_IN5, ADC2_IN5, OPAMP1_VINP, RTC_TAMP2, SYS_WKUP1YesA0 analog input (ADC12_IN5), OPAMP1 non-inverting input and wake-up pin WKUP1; also TIM2/TIM5 channel 1 PWM and UART4_TX.
CN8-2A1PA1ADC12_IN6, OPAMP1_INM, TIM2_CH2, TIM5_CH2, USART2_RTS, UART4_RX, LCD_SEG0TIM2_CH2, TIM5_CH2, USART2_DE, USART2_RTS, UART4_RX, LCD_SEG0, TIM15_CH1N, ADC1_IN6, ADC2_IN6, OPAMP1_VINMYesA1 analog input (ADC12_IN6) and OPAMP1 inverting input; also TIM2/TIM5 channel 2 PWM and UART4_RX.
CN8-3A2PA4ADC12_IN9, DAC1_OUT1, USART2_CK, SPI1_NSS, SPI3_NSS, SAI1_FS_B, LPTIM2_OUTSPI1_NSS, SPI3_NSS, USART2_CK, SAI1_FS_B, LPTIM2_OUT, ADC1_IN9, ADC2_IN9, DAC1_OUT1No (3.3v only)A2 analog input (ADC12_IN9), DAC1_OUT1 and LPTIM2_OUT; a TT pin, so never drive it above 3.3v.
CN8-4A3PB0ADC12_IN15, TIM3_CH3, TIM1_CH2N, USART3_CK, QSPI_IO1, COMP1_OUTTIM1_CH2N, TIM3_CH3, TIM8_CH2N, USART3_CK, QUADSPI_BK1_IO1, LCD_SEG5, COMP1_OUT, ADC1_IN15, ADC2_IN15, OPAMP2_VOUTNo (3.3v only)A3 analog input (ADC12_IN15), OPAMP2 output, COMP1 output and TIM3_CH3 PWM; a TT pin (3.3v only).
CN8-5A4PC1ADC123_IN2, I2C3_SDA, LPTIM1_OUTLPTIM1_OUT, I2C3_SDA, DFSDM1_CKIN4, LPUART1_TX, LCD_SEG19, ADC1_IN2, ADC2_IN2, ADC3_IN2YesA4 analog input (ADC123_IN2), I2C3_SDA, LPUART1_TX and LPTIM1_OUT.
CN8-6A5PC0ADC123_IN1, I2C3_SCL, LPTIM1_IN1LPTIM1_IN1, I2C3_SCL, DFSDM1_DATIN4, LPUART1_RX, LCD_SEG18, LPTIM2_IN1, ADC1_IN1, ADC2_IN1, ADC3_IN1YesA5 analog input (ADC123_IN1), I2C3_SCL, LPUART1_RX and LPTIM1_IN1.
CN5-10D15PB8TIM4_CH3, TIM16_CH1, I2C1_SCL, CAN1_RX, SDMMC1_D4, LCD_SEG16TIM4_CH3, I2C1_SCL, DFSDM1_DATIN6, CAN1_RX, LCD_SEG16, SDMMC1_D4, SAI1_MCLK_A, TIM16_CH1YesD15: the default I2C1_SCL (Wire), also CAN1_RX and TIM4_CH3 PWM.
CN5-9D14PB9TIM4_CH4, TIM17_CH1, SPI2_NSS, I2C1_SDA, CAN1_TX, SAI1_FS_A, SDMMC1_D5IR_OUT, TIM4_CH4, I2C1_SDA, SPI2_NSS, DFSDM1_CKIN6, CAN1_TX, LCD_COM3, SDMMC1_D5, SAI1_FS_A, TIM17_CH1, DAC1_EXTI9YesD14: the default I2C1_SDA (Wire), also CAN1_TX and TIM4_CH4 PWM.
CN5-8AREF–= VDDA (SB57)––ADC reference, tied to VDD by SB57.
CN5-7GND––––Ground.
CN5-6D13PA5ADC12_IN10, DAC1_OUT2, TIM2_CH1, TIM8_CH1N, SPI1_SCK, LED LD2TIM2_CH1, TIM2_ETR, TIM8_CH1N, SPI1_SCK, LPTIM2_ETR, ADC1_IN10, ADC2_IN10, DAC1_OUT2No (3.3v only)D13: drives the green user LED LD2, SPI1_SCK, DAC1_OUT2 and ADC12_IN10; a TT pin (3.3v only).
CN5-5D12PA6ADC12_IN11, OPAMP2_INP, TIM3_CH1, TIM16_CH1, USART3_CTS, SPI1_MISO, QSPI_IO3TIM1_BKIN, TIM3_CH1, TIM8_BKIN, SPI1_MISO, USART3_CTS, QUADSPI_BK1_IO3, LCD_SEG3, TIM1_BKIN_COMP2, TIM8_BKIN_COMP2, TIM16_CH1, ADC1_IN11, ADC2_IN11, OPAMP2_VINPYesD12: SPI1_MISO, ADC12_IN11, OPAMP2 non-inverting input and TIM3_CH1/TIM16_CH1 PWM.
CN5-4D11PA7ADC12_IN12, OPAMP2_INM, TIM17_CH1, TIM3_CH2, SPI1_MOSI, QSPI_IO2TIM1_CH1N, TIM3_CH2, TIM8_CH1N, SPI1_MOSI, QUADSPI_BK1_IO2, LCD_SEG4, TIM17_CH1, ADC1_IN12, ADC2_IN12, OPAMP2_VINMYesD11: SPI1_MOSI, ADC12_IN12, OPAMP2 inverting input and TIM17_CH1/TIM3_CH2 PWM.
CN5-3D10PB6TIM4_CH1, TIM16_CH1N, USART1_TX, I2C1_SCL, SAI1_FS_B, LPTIM1_ETRLPTIM1_ETR, TIM4_CH1, TIM8_BKIN2, I2C1_SCL, DFSDM1_DATIN5, USART1_TX, TSC_G2_IO3, TIM8_BKIN2_COMP2, SAI1_FS_B, TIM16_CH1N, COMP2_INPYesD10: USART1_TX, I2C1_SCL, LPTIM1_ETR and TIM4_CH1 PWM.
CN5-2D9PC7TIM3_CH2, TIM8_CH2, SDMMC1_D7, TSC_G4_IO2TIM3_CH2, TIM8_CH2, DFSDM1_DATIN3, TSC_G4_IO2, LCD_SEG25, SDMMC1_D7, SAI2_MCLK_BYesD9: TIM3_CH2/TIM8_CH2 PWM and SDMMC1_D7.
CN5-1D8PA9TIM1_CH2, USART1_TX, OTG_FS_VBUS, LCD_COM1TIM1_CH2, USART1_TX, LCD_COM1, TIM15_BKIN, DAC1_EXTI9, USB_OTG_FS_VBUSYesD8: USART1_TX, TIM1_CH2 PWM and the USB OTG FS VBUS sense input.
CN9-8D7PA8TIM1_CH1, USART1_CK, OTG_FS_SOF, MCO, LPTIM2_OUTRCC_MCO, TIM1_CH1, USART1_CK, USB_OTG_FS_SOF, LCD_COM0, LPTIM2_OUTYesD7: TIM1_CH1 PWM, LPTIM2_OUT, USB OTG FS SOF and the MCO clock output.
CN9-7D6PB10TIM2_CH3, USART3_TX, LPUART1_RX, SPI2_SCK, I2C2_SCL, QSPI_CLK, SAI1_SCK_ATIM2_CH3, I2C2_SCL, SPI2_SCK, DFSDM1_DATIN7, USART3_TX, LPUART1_RX, QUADSPI_CLK, LCD_SEG10, COMP1_OUT, SAI1_SCK_AYesD6: USART3_TX, LPUART1_RX, I2C2_SCL, SPI2_SCK, QSPI_CLK and TIM2_CH3 PWM.
CN9-6D5PB4TIM3_CH1, USART1_CTS, UART5_RTS, SPI1_MISO, SPI3_MISO, NJTRST, TSC_G2_IO1SYS_JTRST, TIM3_CH1, SPI1_MISO, SPI3_MISO, USART1_CTS, UART5_DE, UART5_RTS, TSC_G2_IO1, LCD_SEG8, SAI1_MCLK_B, TIM17_BKIN, COMP2_INPYesD5: NJTRST after reset, then SPI1/SPI3_MISO, TIM3_CH1 or a COMP2 input.
CN9-5D4PB5TIM3_CH2, USART1_CK, UART5_CTS, SPI1_MOSI, SPI3_MOSI, I2C1_SMBA, SAI1_SD_B, LPTIM1_IN1LPTIM1_IN1, TIM3_CH2, I2C1_SMBA, SPI1_MOSI, SPI3_MOSI, USART1_CK, UART5_CTS, TSC_G2_IO2, LCD_SEG9, COMP2_OUT, SAI1_SD_B, TIM16_BKINYesD4: SPI1/SPI3_MOSI, LPTIM1_IN1, COMP2_OUT and TIM3_CH2 PWM.
CN9-4D3PB3TIM2_CH2, USART1_RTS, SPI1_SCK, SPI3_SCK, SWO, SAI1_SCK_BSYS_JTDO-SWO, TIM2_CH2, SPI1_SCK, SPI3_SCK, USART1_DE, USART1_RTS, LCD_SEG7, SAI1_SCK_B, COMP2_INMYesD3: SWO trace output after reset (to the ST-LINK via SB15), then SPI1/SPI3_SCK or TIM2_CH2.
CN9-3D2PA10TIM1_CH3, USART1_RX, OTG_FS_ID, LCD_COM2TIM1_CH3, USART1_RX, USB_OTG_FS_ID, LCD_COM2, TIM17_BKINYesD2: USART1_RX, TIM1_CH3 PWM and the USB OTG FS ID pin.
CN9-2D1PA2ADC12_IN7, TIM2_CH3, TIM15_CH1, USART2_TXTIM2_CH3, TIM5_CH3, USART2_TX, LCD_SEG1, SAI2_EXTCLK, TIM15_CH1, ADC1_IN7, ADC2_IN7, RCC_LSCO, SYS_WKUP4YesUSART2_TX, wired to the ST-LINK Virtual COM port, so it is not on D1 unless you close SB62; also WKUP4.
CN9-1D0PA3ADC12_IN8, TIM2_CH4, TIM15_CH2, USART2_RXTIM2_CH4, TIM5_CH4, USART2_RX, LCD_SEG2, TIM15_CH2, ADC1_IN8, ADC2_IN8, OPAMP1_VOUTNo (3.3v only)USART2_RX, wired to the ST-LINK Virtual COM port (not on D0 unless you close SB63); also OPAMP1_VOUT, and a 3.3v-only TT pin.

Nucleo-L476RG Morpho CN7 Pins

On CN7, pin 1 is at the end nearest the ST-LINK, and odd pins are on the outer column.

Click to expand the full pin table (38 pins)
PinLabelGPIOMain functionsAll alternate functions5v tolerantDescription
CN7-1–PC10USART3_TX, UART4_TX, SPI3_SCK, SDMMC1_D2, SAI2_SCK_BSPI3_SCK, USART3_TX, UART4_TX, TSC_G3_IO2, LCD_COM4, LCD_SEG28, LCD_SEG40, SDMMC1_D2, SAI2_SCK_BYesMorpho only: USART3_TX / UART4_TX and SPI3_SCK.
CN7-2–PC11USART3_RX, UART4_RX, SPI3_MISO, SDMMC1_D3, SAI2_MCLK_BSPI3_MISO, USART3_RX, UART4_RX, TSC_G3_IO3, LCD_COM5, LCD_SEG29, LCD_SEG41, SDMMC1_D3, SAI2_MCLK_B, ADC1_EXTI11, ADC2_EXTI11, ADC3_EXTI11YesMorpho only: USART3_RX / UART4_RX and SPI3_MISO.
CN7-3–PC12UART5_TX, USART3_CK, SPI3_MOSI, SDMMC1_CK, SAI2_SD_BSPI3_MOSI, USART3_CK, UART5_TX, TSC_G3_IO4, LCD_COM6, LCD_SEG30, LCD_SEG42, SDMMC1_CK, SAI2_SD_BYesMorpho only: UART5_TX, SPI3_MOSI and SDMMC1_CK.
CN7-4–PD2TIM3_ETR, UART5_RX, USART3_RTS, SDMMC1_CMD, TSC_SYNCTIM3_ETR, USART3_DE, USART3_RTS, UART5_RX, TSC_SYNC, LCD_COM7, LCD_SEG31, LCD_SEG43, SDMMC1_CMDYesMorpho only: UART5_RX, SDMMC1_CMD and TIM3_ETR.
CN7-5VDD–3.3v (VDD)––3.3v MCU supply (VDD).
CN7-6E5V–5v external in––External 5v input (4.75v–5.25v, 500mA) with JP5 on E5V.
CN7-7BOOT0–10kΩ to GND––BOOT0, pulled LOW by 10kΩ; tie it to VDD (CN7-5) to start the system bootloader.
CN7-8GND––––Ground.
CN7-9NC––––Not connected.
CN7-10NC––––Not connected.
CN7-11NC––––Not connected.
CN7-12IOREF–3.3v ref––3.3v I/O reference for shields.
CN7-13–PA13SWDIO, IR_OUTSYS_JTMS-SWDIO, IR_OUT, USB_OTG_FS_NOEYesSWDIO, used by the on-board ST-LINK to program and debug the MCU; leave it alone.
CN7-14RESET–NRST––NRST: pull it LOW to reset the MCU.
CN7-15–PA14SWCLKSYS_JTCK-SWCLKYesSWCLK, used by the on-board ST-LINK to program and debug the MCU; leave it alone.
CN7-163V3–3.3v in/out––3.3v output from the LD39050 regulator (500mA), or 3.3v input with SB2/SB12 open.
CN7-17–PA15TIM2_CH1, UART4_RTS, SPI1_NSS, SPI3_NSS, JTDI, SAI2_FS_BSYS_JTDI, TIM2_CH1, TIM2_ETR, SPI1_NSS, SPI3_NSS, UART4_DE, UART4_RTS, TSC_G3_IO1, LCD_SEG17, SAI2_FS_B, ADC1_EXTI15, ADC2_EXTI15, ADC3_EXTI15YesJTDI after reset (with its pull-up on), then usable as TIM2_CH1, SPI1/SPI3_NSS or UART4_RTS.
CN7-185V–5v out––5v output from USB, VIN or E5V.
CN7-19GND––––Ground.
CN7-20GND––––Ground.
CN7-21–PB7TIM4_CH2, TIM17_CH1N, USART1_RX, UART4_CTS, I2C1_SDA, LPTIM1_IN2, COMP2_INMLPTIM1_IN2, TIM4_CH2, TIM8_BKIN, I2C1_SDA, DFSDM1_CKIN5, USART1_RX, UART4_CTS, TSC_G2_IO4, LCD_SEG21, TIM8_BKIN_COMP1, TIM17_CH1N, COMP2_INM, SYS_PVD_INYesMorpho only: USART1_RX, I2C1_SDA, LPTIM1_IN2 and TIM4_CH2 PWM.
CN7-22GND––––Ground.
CN7-23–PC13B1 USER, WKUP2RTC_OUT_ALARM, RTC_OUT_CALIB, RTC_TAMP1, RTC_TS, SYS_WKUP2YesThe blue user button B1 (reads LOW when pressed) and wake-up pin WKUP2; a weak backup-domain pin (3mA max).
CN7-24VIN–7v–12v in––7v–12v input to the 5v regulator.
CN7-25–PC14OSC32_INRCC_OSC32_INYesOSC32_IN for the 32.768kHz LSE crystal X2; not connected to the header by default.
CN7-26NC––––Not connected.
CN7-27–PC15OSC32_OUTADC1_EXTI15, ADC2_EXTI15, ADC3_EXTI15, RCC_OSC32_OUTYesOSC32_OUT for the 32.768kHz LSE crystal X2; not connected to the header by default.
CN7-28A0PA0ADC12_IN5, OPAMP1_INP, TIM2_CH1, TIM5_CH1, USART2_CTS, UART4_TX, WKUP1TIM2_CH1, TIM5_CH1, TIM8_ETR, USART2_CTS, UART4_TX, SAI1_EXTCLK, TIM2_ETR, ADC1_IN5, ADC2_IN5, OPAMP1_VINP, RTC_TAMP2, SYS_WKUP1YesA0 analog input (ADC12_IN5), OPAMP1 non-inverting input and wake-up pin WKUP1; also TIM2/TIM5 channel 1 PWM and UART4_TX.
CN7-29–PH0OSC_INRCC_OSC_INYesA free GPIO on CN7-29: the L476RG board has no HSE clock (SB54 ON, SB16/SB50 OFF).
CN7-30A1PA1ADC12_IN6, OPAMP1_INM, TIM2_CH2, TIM5_CH2, USART2_RTS, UART4_RX, LCD_SEG0TIM2_CH2, TIM5_CH2, USART2_DE, USART2_RTS, UART4_RX, LCD_SEG0, TIM15_CH1N, ADC1_IN6, ADC2_IN6, OPAMP1_VINMYesA1 analog input (ADC12_IN6) and OPAMP1 inverting input; also TIM2/TIM5 channel 2 PWM and UART4_RX.
CN7-31–PH1OSC_OUTRCC_OSC_OUTYesA free GPIO on CN7-31: the L476RG board has no HSE clock (SB55 ON).
CN7-32A2PA4ADC12_IN9, DAC1_OUT1, USART2_CK, SPI1_NSS, SPI3_NSS, SAI1_FS_B, LPTIM2_OUTSPI1_NSS, SPI3_NSS, USART2_CK, SAI1_FS_B, LPTIM2_OUT, ADC1_IN9, ADC2_IN9, DAC1_OUT1No (3.3v only)A2 analog input (ADC12_IN9), DAC1_OUT1 and LPTIM2_OUT; a TT pin, so never drive it above 3.3v.
CN7-33VBAT–= VDD (SB45)––RTC/backup supply, tied to VDD by SB45.
CN7-34A3PB0ADC12_IN15, OPAMP2_VOUT, TIM3_CH3, TIM1_CH2N, USART3_CK, QSPI_IO1, COMP1_OUTTIM1_CH2N, TIM3_CH3, TIM8_CH2N, USART3_CK, QUADSPI_BK1_IO1, LCD_SEG5, COMP1_OUT, ADC1_IN15, ADC2_IN15, OPAMP2_VOUTNo (3.3v only)A3 analog input (ADC12_IN15), OPAMP2 output, COMP1 output and TIM3_CH3 PWM; a TT pin (3.3v only).
CN7-35–PC2ADC123_IN3, SPI2_MISO, LPTIM1_IN2, DFSDM1_CKOUTLPTIM1_IN2, SPI2_MISO, DFSDM1_CKOUT, LCD_SEG20, ADC1_IN3, ADC2_IN3, ADC3_IN3YesMorpho only: ADC123_IN3 analog input, SPI2_MISO and LPTIM1_IN2.
CN7-36A4PC1ADC123_IN2, LPUART1_TX, I2C3_SDA, LPTIM1_OUTLPTIM1_OUT, I2C3_SDA, DFSDM1_CKIN4, LPUART1_TX, LCD_SEG19, ADC1_IN2, ADC2_IN2, ADC3_IN2YesA4 analog input (ADC123_IN2), I2C3_SDA, LPUART1_TX and LPTIM1_OUT.
CN7-37–PC3ADC123_IN4, SPI2_MOSI, SAI1_SD_A, LPTIM1_ETRLPTIM1_ETR, SPI2_MOSI, LCD_VLCD, SAI1_SD_A, LPTIM2_ETR, ADC1_IN4, ADC2_IN4, ADC3_IN4YesMorpho only: ADC123_IN4 analog input, SPI2_MOSI and LPTIM1_ETR.
CN7-38A5PC0ADC123_IN1, LPUART1_RX, I2C3_SCL, LPTIM1_IN1LPTIM1_IN1, I2C3_SCL, DFSDM1_DATIN4, LPUART1_RX, LCD_SEG18, LPTIM2_IN1, ADC1_IN1, ADC2_IN1, ADC3_IN1YesA5 analog input (ADC123_IN1), I2C3_SCL, LPUART1_RX and LPTIM1_IN1.

Nucleo-L476RG Morpho CN10 Pins

On CN10, pin 1 is also at the ST-LINK end, but odd pins are on the inner column.

Click to expand the full pin table (38 pins)
PinLabelGPIOMain functionsAll alternate functions5v tolerantDescription
CN10-1–PC9TIM3_CH4, TIM8_CH4, SDMMC1_D1, TSC_G4_IO4TIM8_BKIN2, TIM3_CH4, TIM8_CH4, TSC_G4_IO4, USB_OTG_FS_NOE, LCD_SEG27, SDMMC1_D1, SAI2_EXTCLK, TIM8_BKIN2_COMP1, DAC1_EXTI9YesMorpho only: TIM3/TIM8 channel 4 PWM and SDMMC1_D1.
CN10-2–PC8TIM3_CH3, TIM8_CH3, SDMMC1_D0, TSC_G4_IO3TIM3_CH3, TIM8_CH3, TSC_G4_IO3, LCD_SEG26, SDMMC1_D0YesMorpho only: TIM3/TIM8 channel 3 PWM and SDMMC1_D0.
CN10-3D15PB8TIM4_CH3, TIM16_CH1, I2C1_SCL, CAN1_RX, SAI1_MCLK_A, SDMMC1_D4TIM4_CH3, I2C1_SCL, DFSDM1_DATIN6, CAN1_RX, LCD_SEG16, SDMMC1_D4, SAI1_MCLK_A, TIM16_CH1YesD15: the default I2C1_SCL (Wire), also CAN1_RX and TIM4_CH3 PWM.
CN10-4–PC6TIM3_CH1, TIM8_CH1, SDMMC1_D6, SAI2_MCLK_ATIM3_CH1, TIM8_CH1, DFSDM1_CKIN3, TSC_G4_IO1, LCD_SEG24, SDMMC1_D6, SAI2_MCLK_AYesMorpho only: TIM3/TIM8 channel 1 PWM and SDMMC1_D6.
CN10-5D14PB9TIM4_CH4, TIM17_CH1, SPI2_NSS, I2C1_SDA, CAN1_TX, SAI1_FS_A, SDMMC1_D5IR_OUT, TIM4_CH4, I2C1_SDA, SPI2_NSS, DFSDM1_CKIN6, CAN1_TX, LCD_COM3, SDMMC1_D5, SAI1_FS_A, TIM17_CH1, DAC1_EXTI9YesD14: the default I2C1_SDA (Wire), also CAN1_TX and TIM4_CH4 PWM.
CN10-6–PC5ADC12_IN14, COMP1_INP, USART3_RX, WKUP5USART3_RX, LCD_SEG23, ADC1_IN14, ADC2_IN14, COMP1_INP, SYS_WKUP5YesMorpho only: ADC12_IN14 analog input, COMP1 non-inverting input, USART3_RX and WKUP5.
CN10-7AVDD–= VDD (SB57)––Analog supply VDDA, tied to VDD by SB57.
CN10-8U5V–USB 5v––5v from the ST-LINK USB connector.
CN10-9GND––––Ground.
CN10-10NC––––Not connected.
CN10-11D13PA5ADC12_IN10, DAC1_OUT2, TIM2_CH1, TIM8_CH1N, SPI1_SCK, LED LD2TIM2_CH1, TIM2_ETR, TIM8_CH1N, SPI1_SCK, LPTIM2_ETR, ADC1_IN10, ADC2_IN10, DAC1_OUT2No (3.3v only)D13: drives the green user LED LD2, SPI1_SCK, DAC1_OUT2 and ADC12_IN10; a TT pin (3.3v only).
CN10-12–PA12TIM1_ETR, USART1_RTS, OTG_FS_DP, CAN1_TXTIM1_ETR, USART1_DE, USART1_RTS, CAN1_TX, USB_OTG_FS_DPYesMorpho only: USB OTG FS D+ (DP), CAN1_TX or TIM1_ETR.
CN10-13D12PA6ADC12_IN11, OPAMP2_INP, TIM3_CH1, TIM16_CH1, USART3_CTS, SPI1_MISO, QSPI_IO3TIM1_BKIN, TIM3_CH1, TIM8_BKIN, SPI1_MISO, USART3_CTS, QUADSPI_BK1_IO3, LCD_SEG3, TIM1_BKIN_COMP2, TIM8_BKIN_COMP2, TIM16_CH1, ADC1_IN11, ADC2_IN11, OPAMP2_VINPYesD12: SPI1_MISO, ADC12_IN11, OPAMP2 non-inverting input and TIM3_CH1/TIM16_CH1 PWM.
CN10-14–PA11TIM1_CH4, USART1_CTS, OTG_FS_DM, CAN1_RXTIM1_CH4, TIM1_BKIN2, USART1_CTS, CAN1_RX, USB_OTG_FS_DM, TIM1_BKIN2_COMP1, ADC1_EXTI11, ADC2_EXTI11, ADC3_EXTI11YesMorpho only: USB OTG FS D− (DM), CAN1_RX or TIM1_CH4.
CN10-15D11PA7ADC12_IN12, OPAMP2_INM, TIM17_CH1, TIM3_CH2, SPI1_MOSI, QSPI_IO2TIM1_CH1N, TIM3_CH2, TIM8_CH1N, SPI1_MOSI, QUADSPI_BK1_IO2, LCD_SEG4, TIM17_CH1, ADC1_IN12, ADC2_IN12, OPAMP2_VINMYesD11: SPI1_MOSI, ADC12_IN12, OPAMP2 inverting input and TIM17_CH1/TIM3_CH2 PWM.
CN10-16–PB12TIM1_BKIN, TIM15_BKIN, USART3_CK, LPUART1_RTS, SPI2_NSS, I2C2_SMBA, SAI2_FS_A, TSC_G1_IO1TIM1_BKIN, TIM1_BKIN_COMP2, I2C2_SMBA, SPI2_NSS, DFSDM1_DATIN1, USART3_CK, LPUART1_DE, LPUART1_RTS, TSC_G1_IO1, LCD_SEG12, SWPMI1_IO, SAI2_FS_A, TIM15_BKINYesMorpho only: SPI2_NSS, LPUART1_RTS, TIM1_BKIN and SAI2_FS_A.
CN10-17D10PB6TIM4_CH1, TIM16_CH1N, USART1_TX, I2C1_SCL, SAI1_FS_B, LPTIM1_ETRLPTIM1_ETR, TIM4_CH1, TIM8_BKIN2, I2C1_SCL, DFSDM1_DATIN5, USART1_TX, TSC_G2_IO3, TIM8_BKIN2_COMP2, SAI1_FS_B, TIM16_CH1N, COMP2_INPYesD10: USART1_TX, I2C1_SCL, LPTIM1_ETR and TIM4_CH1 PWM.
CN10-18–PB11TIM2_CH4, USART3_RX, LPUART1_TX, I2C2_SDA, QSPI_NCS, COMP2_OUTTIM2_CH4, I2C2_SDA, DFSDM1_CKIN7, USART3_RX, LPUART1_TX, QUADSPI_NCS, LCD_SEG11, COMP2_OUT, ADC1_EXTI11, ADC2_EXTI11, ADC3_EXTI11YesMorpho only (CN10-18): USART3_RX, LPUART1_TX, I2C2_SDA, QSPI_NCS and TIM2_CH4; this pin is missing on the F4 Nucleo-64 boards.
CN10-19D9PC7TIM3_CH2, TIM8_CH2, SDMMC1_D7, SAI2_MCLK_BTIM3_CH2, TIM8_CH2, DFSDM1_DATIN3, TSC_G4_IO2, LCD_SEG25, SDMMC1_D7, SAI2_MCLK_BYesD9: TIM3_CH2/TIM8_CH2 PWM and SDMMC1_D7.
CN10-20GND––––Ground.
CN10-21D8PA9TIM1_CH2, USART1_TX, OTG_FS_VBUS, LCD_COM1TIM1_CH2, USART1_TX, LCD_COM1, TIM15_BKIN, DAC1_EXTI9, USB_OTG_FS_VBUSYesD8: USART1_TX, TIM1_CH2 PWM and the USB OTG FS VBUS sense input.
CN10-22–PB2I2C3_SMBA, LPTIM1_OUT, RTC_OUTRTC_OUT_ALARM, RTC_OUT_CALIB, LPTIM1_OUT, I2C3_SMBA, DFSDM1_CKIN0, COMP1_INPYesMorpho only: a normal GPIO on the L476 (there is no BOOT1 pin): LPTIM1_OUT, RTC_OUT, I2C3_SMBA and a COMP1 input.
CN10-23D7PA8TIM1_CH1, USART1_CK, OTG_FS_SOF, MCO, LPTIM2_OUTRCC_MCO, TIM1_CH1, USART1_CK, USB_OTG_FS_SOF, LCD_COM0, LPTIM2_OUTYesD7: TIM1_CH1 PWM, LPTIM2_OUT, USB OTG FS SOF and the MCO clock output.
CN10-24–PB1ADC12_IN16, COMP1_INM, TIM3_CH4, TIM1_CH3N, USART3_RTS, QSPI_IO0, LPTIM2_IN1TIM1_CH3N, TIM3_CH4, TIM8_CH3N, DFSDM1_DATIN0, USART3_DE, USART3_RTS, QUADSPI_BK1_IO0, LCD_SEG6, LPTIM2_IN1, ADC1_IN16, ADC2_IN16, COMP1_INMYesMorpho only: ADC12_IN16, COMP1 inverting input, TIM3_CH4 PWM and LPTIM2_IN1.
CN10-25D6PB10TIM2_CH3, USART3_TX, LPUART1_RX, SPI2_SCK, I2C2_SCL, QSPI_CLK, SAI1_SCK_ATIM2_CH3, I2C2_SCL, SPI2_SCK, DFSDM1_DATIN7, USART3_TX, LPUART1_RX, QUADSPI_CLK, LCD_SEG10, COMP1_OUT, SAI1_SCK_AYesD6: USART3_TX, LPUART1_RX, I2C2_SCL, SPI2_SCK, QSPI_CLK and TIM2_CH3 PWM.
CN10-26–PB15TIM15_CH2, TIM1_CH3N, SPI2_MOSI, SAI2_SD_A, RTC_REFINRTC_REFIN, TIM1_CH3N, TIM8_CH3N, SPI2_MOSI, DFSDM1_CKIN2, TSC_G1_IO4, LCD_SEG15, SWPMI1_SUSPEND, SAI2_SD_A, TIM15_CH2, ADC1_EXTI15, ADC2_EXTI15, ADC3_EXTI15YesMorpho only: SPI2_MOSI and TIM15_CH2/TIM1_CH3N PWM.
CN10-27D5PB4TIM3_CH1, USART1_CTS, UART5_RTS, SPI1_MISO, SPI3_MISO, NJTRST, SAI1_MCLK_BSYS_JTRST, TIM3_CH1, SPI1_MISO, SPI3_MISO, USART1_CTS, UART5_DE, UART5_RTS, TSC_G2_IO1, LCD_SEG8, SAI1_MCLK_B, TIM17_BKIN, COMP2_INPYesD5: NJTRST after reset, then SPI1/SPI3_MISO, TIM3_CH1 or a COMP2 input.
CN10-28–PB14TIM15_CH1, TIM1_CH2N, USART3_RTS, SPI2_MISO, I2C2_SDA, SAI2_MCLK_A, SWPMI1_RXTIM1_CH2N, TIM8_CH2N, I2C2_SDA, SPI2_MISO, DFSDM1_DATIN2, USART3_DE, USART3_RTS, TSC_G1_IO3, LCD_SEG14, SWPMI1_RX, SAI2_MCLK_A, TIM15_CH1YesMorpho only: SPI2_MISO, I2C2_SDA and TIM15_CH1/TIM1_CH2N PWM.
CN10-29D4PB5TIM3_CH2, USART1_CK, UART5_CTS, SPI1_MOSI, SPI3_MOSI, I2C1_SMBA, SAI1_SD_B, LPTIM1_IN1LPTIM1_IN1, TIM3_CH2, I2C1_SMBA, SPI1_MOSI, SPI3_MOSI, USART1_CK, UART5_CTS, TSC_G2_IO2, LCD_SEG9, COMP2_OUT, SAI1_SD_B, TIM16_BKINYesD4: SPI1/SPI3_MOSI, LPTIM1_IN1, COMP2_OUT and TIM3_CH2 PWM.
CN10-30–PB13TIM1_CH1N, TIM15_CH1N, USART3_CTS, LPUART1_CTS, SPI2_SCK, I2C2_SCL, SAI2_SCK_A, SWPMI1_TXTIM1_CH1N, I2C2_SCL, SPI2_SCK, DFSDM1_CKIN1, USART3_CTS, LPUART1_CTS, TSC_G1_IO2, LCD_SEG13, SWPMI1_TX, SAI2_SCK_A, TIM15_CH1NYesMorpho only: SPI2_SCK, I2C2_SCL, LPUART1_CTS and TIM1_CH1N.
CN10-31D3PB3TIM2_CH2, USART1_RTS, SPI1_SCK, SPI3_SCK, SWO, SAI1_SCK_BSYS_JTDO-SWO, TIM2_CH2, SPI1_SCK, SPI3_SCK, USART1_DE, USART1_RTS, LCD_SEG7, SAI1_SCK_B, COMP2_INMYesD3: SWO trace output after reset (to the ST-LINK via SB15), then SPI1/SPI3_SCK or TIM2_CH2.
CN10-32AGND––––Analog ground.
CN10-33D2PA10TIM1_CH3, USART1_RX, OTG_FS_ID, LCD_COM2TIM1_CH3, USART1_RX, USB_OTG_FS_ID, LCD_COM2, TIM17_BKINYesD2: USART1_RX, TIM1_CH3 PWM and the USB OTG FS ID pin.
CN10-34–PC4ADC12_IN13, COMP1_INM, USART3_TX, LCD_SEG22USART3_TX, LCD_SEG22, ADC1_IN13, ADC2_IN13, COMP1_INMYesMorpho only: ADC12_IN13 analog input, COMP1 inverting input and USART3_TX.
CN10-35D1PA2USART2_TXTIM2_CH3, TIM5_CH3, USART2_TX, LCD_SEG1, SAI2_EXTCLK, TIM15_CH1, ADC1_IN7, ADC2_IN7, RCC_LSCO, SYS_WKUP4YesUSART2_TX, wired to the ST-LINK Virtual COM port, so it is not on D1 unless you close SB62; also WKUP4.
CN10-36NC––––Not connected.
CN10-37D0PA3USART2_RXTIM2_CH4, TIM5_CH4, USART2_RX, LCD_SEG2, TIM15_CH2, ADC1_IN8, ADC2_IN8, OPAMP1_VOUTNo (3.3v only)USART2_RX, wired to the ST-LINK Virtual COM port (not on D0 unless you close SB63); also OPAMP1_VOUT, and a 3.3v-only TT pin.
CN10-38NC––––Not connected.

Wrap Up

To conclude this guide article, the Nucleo-L476RG is a very solid low-power development board. It gives you an 80MHz Cortex-M4F with 1MB of Flash, nano-amp sleep modes, 3 fast ADCs, 2 DACs, op-amps, and comparators, on a board that you can program out of the box. Just remember the board-level gotchas: D0/D1 are the ST-LINK’s, A4/A5 are I2C3, there’s no HSE, and D0, A2, A3 and D13 are 3.3v-only.

We hope it’s been a helpful guide to help you decide which pins to use for your project. For more boards, check out the Pinouts, Datasheets & Schematic Diagrams Library. Follow this STM32 Series of Tutorials to learn more about programming STM32 microcontrollers.

If you’re just getting started with STM32, you need to check out the STM32 Getting Started Ultimate Guide below.

Getting Started With STM32 ARM Cortex MCUs

The complete beginner’s guide to STM32 microcontrollers: the toolchain, your first project, and the STM32 tutorials series step by step.

Share This Page With Your Network!
Join Our +25,000 Newsletter Subscribers!

Stay Updated With All New Content Releases. You Also Get Occasional FREE Coupon Codes For Courses & Other Stuff!

Photo of author
Author
Embedded systems engineer with several years of experience in embedded software and hardware design. I work as an embedded SW engineer in the Automotive & e-Mobility industry. However, I still do Hardware design and SW development for DSP, Control Systems, Robotics, AI/ML, and other fields I'm passionate about.
I love reading, writing, creating projects, and teaching. A reader by day and a writer by night, it's my lifestyle. I believe that the combination of brilliant minds, bold ideas, and a complete disregard for what is possible, can and will change the world! I will be there when it happens, will you?

Leave a Comment