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)
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 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).
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:
| Document | ID | Revision | What you’ll use it for | Link |
|---|---|---|---|---|
| STM32L476xx datasheet | DS10198 | Rev 11 (Jul 2024) | Pin definitions (FT/TT), alternate-function table, low-power currents, electrical limits | |
| STM32L47xxx/48xxx/49xxx/4Axxx reference manual | RM0351 | Rev 11 (Apr 2026) | Registers and how every peripheral and low-power mode works | |
| STM32 Nucleo-64 boards (MB1136) user manual | UM1724 | Rev 17 (Sep 2025) | Board pinout tables, jumpers, solder bridges, power options | |
| NUCLEO-L476RG data brief | DB2196 | Rev 23 (Oct 2026) | One-page board summary and order code | |
| STM32L476xx/486xx errata sheet | ES0250 | Rev 13 (May 2025) | Known silicon limitations and workarounds | |
| System memory boot mode | AN2606 | Rev 71 (Nov 2026) | Bootloader pins and versions (section 79: STM32L47xxx/48xxx) | |
| MB1136 board schematic | MB1136 C-05 | Aug 2022 | Full board circuit (see the next section) |
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.
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.

Get a Nucleo-L476RG: The official ST board is the one I recommend. Grab it from Amazon or AliExpress.
| Item | Nucleo-L476RG |
|---|---|
| MCU | STM32L476RGT6, LQFP64 |
| Core | Arm Cortex-M4 with FPU and DSP, up to 80MHz (100 DMIPS), ART Accelerator |
| Memory | 1MB Flash in 2 banks (read-while-write), 128KB SRAM (96KB SRAM1 + 32KB SRAM2) |
| Low power | Shutdown 30nA, Standby 120nA, Stop 2 1.1µA, VBAT 300nA, Run 100µA/MHz |
| Logic level | 3.3v (all I/Os 5v tolerant except PA3, PA4, PA5 and PB0) |
| GPIO pins | 51 on the Morpho headers, 22 on the Arduino headers (20 connected by default) |
| Board supply | USB 5v (300mA), VIN 7v–12v, E5V 4.75v–5.25v, or 3.3v direct |
| 5v regulator | LD1117S50TR: 800mA at 7v in, 450mA at 7v–9v, 250mA at 9v–12v |
| 3.3v regulator | LD39050PU33R, 500mA |
| Clocks | No HSE (MSI or HSI16 + PLL for 80MHz), 32.768kHz LSE crystal (X2) |
| Debugger | On-board ST-LINK/V2-1 (snap-off): SWD, drag-and-drop flashing, Virtual COM port on USART2 |
| USB connector | Mini-B (CN1), for the ST-LINK only |
| Headers | Arduino Uno V3 (CN5, CN6, CN8, CN9) + two 2×19 ST Morpho headers (CN7, CN10) |
| User I/O | LD2 green LED (PA5), B1 user button (PC13), B2 reset button |
| Current measurement | JP6 (IDD) jumper in series with the MCU supply |
| PCB | MB1136 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.
| Peripheral | STM32L476RG (LQFP64) | On the Arduino headers | On the Morpho headers |
|---|---|---|---|
| ADC | 3x 12-bit, 5Msps, 16 external channels, oversampling to 16-bit | 9 pins (A0–A5, D11–D13) | 14 pins by default, 16 after SB62/SB63 |
| DAC | 2x 12-bit (DAC1_OUT1/OUT2) | A2 (PA4), D13 (PA5) | both |
| Op-amp / comparator | 2x op-amps with PGA, 2x ultra-low-power comparators | OPAMP1 inputs on A0/A1, OPAMP2 inputs on D12/D11, output on A3 | all |
| PWM timers | TIM1/8 (advanced), TIM2/5 (32-bit), TIM3/4, TIM15/16/17; TIM6/7 basic | 17 PWM pins | 28 PWM pins |
| Low-power timers | LPTIM1, LPTIM2 (run in Stop mode) | A4, A5, A2, D4, D7, D10, D13 | more on PB1, PB2, PB7, PC2, PC3 |
| U(S)ART | USART1/2/3, UART4/5, LPUART1 | USART1, USART3_TX, LPUART1 (A4/A5, D6), UART4; USART2 only after SB62/SB63 | all six |
| SPI | SPI1, SPI2, SPI3 + Quad-SPI | SPI1 (D11–D13), SPI3 (D3–D5) | SPI1–SPI3, Quad-SPI |
| I²C | I2C1, I2C2, I2C3, all Fast-mode Plus (1MHz) | I2C1 (D14/D15), I2C3 (A4/A5), I2C2_SCL (D6) | all three |
| CAN | 1x CAN 2.0B | D14/D15 | plus PA11/PA12 |
| USB | OTG FS with on-chip PHY (LPM, BCD) | none | PA11/PA12 |
| Others | 2x SAI, SDMMC, LCD driver, touch sensing, DFSDM, SWPMI, RNG, 14 DMA channels | some signals | yes |
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 case | Recommended pins | Why |
|---|---|---|
| Serial to the PC | USART2 (PA2/PA3) via USB | Already 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 2 | LPUART1: A4 (TX), A5 (RX) | Keeps receiving in Stop 2 at 9600 baud from the LSE |
| I2C sensors and displays | D15 (SCL), D14 (SDA) | The default Wire pins; add 4.7kΩ pull-ups |
| Second I2C bus | A5 (SCL), A4 (SDA) | I2C3, with no solder-bridge change |
| SPI devices | D13 (SCK), D12 (MISO), D11 (MOSI), D10 (CS) | The default SPI pins (SPI1) |
| PWM (motors, LEDs, servos) | D3, D5, D6, D9, D10, D11 | Free timer channels on the Arduino header |
| Analog inputs | A0, A1, A4, A5 | ADC 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 bus | D15 (CAN1_RX), D14 (CAN1_TX) | With a CAN transceiver such as the SN65HVD230 |
| USB device | PA11 (DM), PA12 (DP) on CN10 | USB OTG FS with the on-chip PHY |
| Wake-up from Standby/Shutdown | PC13 (B1), A0 (PA0) | WKUP2 and WKUP1 |
| On-board LED / button | PA5 (LD2), PC13 (B1) | LED_BUILTIN and USER_BTN in Arduino |
| Safest general GPIO | D2, D4, D7, D8 and the Morpho-only PC8, PC9, PC10–PC12, PH0, PH1 | No board load, no debug or boot role |
Nucleo-L476RG Pins to Use With Caution
| Pin | Reason | What 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/D1 | Use USART1 for header serial, or close SB62/SB63 and open SB13/SB14 |
| PA13, PA14 | SWD pins of the ST-LINK | Don’t reuse them, or you lose debugging |
| PB3 (D3), PB4 (D5), PA15 | JTAG pins (SWO, NJTRST, JTDI) after reset | Set debug to Serial Wire to free them |
| PC13, PC14, PC15 | Backup-domain pins: 3mA max, 2MHz max, never drive an LED | Use them for inputs only; PC14/PC15 are taken by X2 |
| PH0, PH1 | Free GPIOs here, but weaker pads than normal I/Os | Fine for slow signals; keep HSE off in CubeMX |
| PC0, PC1 (A5, A4) | I2C3, not I2C1 | Use 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.
- Power Pins: VIN, 5V, 3V3, IOREF, E5V, U5V, AVDD, VBAT, GND
- Low-Power Modes & Wake-Up Pins (WKUP1, WKUP2, WKUP4, WKUP5)
- 51x Digital GPIO Pins (22 on the Arduino headers)
- 16x External Interrupt Lines (any GPIO)
- 16x ADC Analog Input Pins (9 on the Arduino headers)
- 2x DAC Output Pins
- 2x Op-Amps & 2x Comparators
- 28x PWM Pins (17 on the Arduino headers) + 2x LPTIM
- 6x Serial Ports (3 USARTs, 2 UARTs, 1 LPUART)
- 3x I2C Buses
- 3x SPI Ports + Quad-SPI
- 1x CAN Bus Port
- 1x USB OTG FS Port (Morpho only)
- Debug (SWD) & Boot Pins
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.

| Pin | Header pins | Range | Notes |
|---|---|---|---|
| VIN | CN6-8, CN7-24 | 7v–12v in | LD1117 5v regulator: 800mA at 7v, 450mA at 7v–9v, 250mA at 9v–12v. Set JP5 to E5V |
| E5V | CN7-6 | 4.75v–5.25v in | 500mA max. Set JP5 to E5V |
| U5V | CN10-8 | 5v | From the ST-LINK USB connector |
| 5V | CN6-5, CN7-18 | 5v out | Limited by the source you power the board from |
| 3V3 | CN6-4, CN7-16 | 3.3v out / in | 500mA regulator; use it as an input only with SB2 and SB12 open |
| IOREF | CN6-2, CN7-12 | 3.3v | Tells shields the I/O level |
| AVDD / AREF | CN10-7, CN5-8 | = VDD | Tied to 3.3v by SB57; open it for an external reference |
| VBAT | CN7-33 | = VDD | Tied to VDD by SB45; open it to run the RTC from a coin cell |
| GND | CN6-6/7, CN5-7, CN7-8/19/20/22, CN10-9/20/32 | 0v | All 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.
| Mode | Typical current (DS10198) | What keeps running | How it wakes up |
|---|---|---|---|
| Run (LDO) | 100µA/MHz | Everything | – |
| Stop 2 | 1.1µA (1.4µA with RTC) | SRAM and registers kept; RTC, LPTIM1 and LPUART1 can run | Any EXTI pin, RTC, LPTIM1, LPUART1; about 4µs, then the code continues |
| Standby | 120nA (420nA with RTC) | Backup registers, RTC; SRAM2 optionally kept | WKUP pins, RTC, reset; restarts from reset |
| Shutdown | 30nA | Backup registers, RTC from the LSE | WKUP pins, RTC, reset; restarts from reset |
| VBAT | 300nA | RTC and 32 backup registers from a coin cell | When 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
- Flash your low-power firmware first, while the board is still powered normally.
- 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.
- 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.
- 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.
- 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).

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.
Also Read
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 line | Pins that can use it | Interrupt vector |
|---|---|---|
| EXTI0 – EXTI4 | Px0 – Px4 (one port each) | EXTI0_IRQn … EXTI4_IRQn (one each) |
| EXTI5 – EXTI9 | Px5 – Px9 | EXTI9_5_IRQn (shared) |
| EXTI10 – EXTI15 | Px10 – 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.
Also Read
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.

| Arduino pin | GPIO | ADC channel | Header pins |
|---|---|---|---|
| A0 | PA0 | ADC12_IN5 | CN8-1, CN7-28 |
| A1 | PA1 | ADC12_IN6 | CN8-2, CN7-30 |
| A2 | PA4 | ADC12_IN9 (3.3v only) | CN8-3, CN7-32 |
| A3 | PB0 | ADC12_IN15 (3.3v only) | CN8-4, CN7-34 |
| A4 | PC1 | ADC123_IN2 | CN8-5, CN7-36 |
| A5 | PC0 | ADC123_IN1 | CN8-6, CN7-38 |
| D11 | PA7 | ADC12_IN12 | CN5-4, CN10-15 |
| D12 | PA6 | ADC12_IN11 | CN5-5, CN10-13 |
| D13 | PA5 | ADC12_IN10 (3.3v only) | CN5-6, CN10-11 |
| – | PB1 | ADC12_IN16 | CN10-24 |
| – | PC2 | ADC123_IN3 | CN7-35 |
| – | PC3 | ADC123_IN4 | CN7-37 |
| – | PC4 | ADC12_IN13 | CN10-34 |
| – | PC5 | ADC12_IN14 | CN10-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.
Also Read
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 output | GPIO | Arduino pin | Header pins | Note |
|---|---|---|---|---|
| DAC1_OUT1 | PA4 | A2 | CN8-3, CN7-32 | Clean output, recommended |
| DAC1_OUT2 | PA5 | D13 | CN5-6, CN10-11 | Loaded 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.
Also Read
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.
| Block | Non-inverting input (+) | Inverting input (−) | Output |
|---|---|---|---|
| OPAMP1 | PA0 (A0) | PA1 (A1) | PA3 (D0, the VCP RX pin) |
| OPAMP2 | PA6 (D12) | PA7 (D11) | PB0 (A3) |
| COMP1 | PC5 (CN10-6), PB2 (CN10-22) | PB1 (CN10-24), PC4 (CN10-34), internal VREFINT/DAC | PB0 (A3), PB10 (D6) |
| COMP2 | PB4 (D5), PB6 (D10) | PB3 (D3), PB7 (CN7-21), internal VREFINT/DAC | PB5 (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.
Also Read
Learn more in our STM32 Comparator Tutorial.
Also Read
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.

| Arduino pin | GPIO | Timer channel | Arduino pin | GPIO | Timer channel |
|---|---|---|---|---|---|
| D2 | PA10 | TIM1_CH3 | D10 | PB6 | TIM4_CH1 |
| D3 | PB3 | TIM2_CH2 | D11 | PA7 | TIM17_CH1 (or TIM3_CH2) |
| D4 | PB5 | TIM3_CH2 | D12 | PA6 | TIM3_CH1 (or TIM16_CH1) |
| D5 | PB4 | TIM3_CH1 | D13 | PA5 | TIM2_CH1 |
| D6 | PB10 | TIM2_CH3 | D14 | PB9 | TIM4_CH4 (or TIM17_CH1) |
| D7 | PA8 | TIM1_CH1 | D15 | PB8 | TIM4_CH3 (or TIM16_CH1) |
| D8 | PA9 | TIM1_CH2 | A0 | PA0 | TIM2_CH1 / TIM5_CH1 |
| D9 | PC7 | TIM3_CH2 (or TIM8_CH2) | A1 | PA1 | TIM2_CH2 / TIM5_CH2 |
| A3 | PB0 | TIM3_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).
| Timer | Output | Inputs | External trigger |
|---|---|---|---|
| LPTIM1 | A4 (PC1), PB2 | IN1: A5 (PC0), D4 (PB5); IN2: PC2, PB7 | PC3, D10 (PB6) |
| LPTIM2 | A2 (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.
Also Read
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 Default Serial (USART2): PA2 (TX) and PA3 (RX), to the PC over USB.
| UART | TX pins | RX pins | Note |
|---|---|---|---|
| USART1 | D8 (PA9), D10 (PB6) | D2 (PA10), PB7 (CN7-21) | Best choice for a header UART |
| USART2 | PA2 (D1 after SB62) | PA3 (D0 after SB63) | ST-LINK Virtual COM port |
| USART3 | D6 (PB10), PC4 (CN10-34), PC10 (CN7-1) | PB11 (CN10-18), PC5 (CN10-6), PC11 (CN7-2) | |
| UART4 | A0 (PA0), PC10 (CN7-1) | A1 (PA1), PC11 (CN7-2) | |
| UART5 | PC12 (CN7-3) | PD2 (CN7-4) | Morpho only |
| LPUART1 | A4 (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.
Also Read
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 Default I2C1 Pins: D14 = PB9 (SDA) and D15 = PB8 (SCL).
| I2C bus | SCL pins | SDA pins | Note |
|---|---|---|---|
| I2C1 | D15 (PB8), D10 (PB6) | D14 (PB9), PB7 (CN7-21) | Default Wire bus |
| I2C2 | D6 (PB10), PB13 (CN10-30) | PB11 (CN10-18), PB14 (CN10-28) | |
| I2C3 | A5 (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.
Also Read
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 Default SPI1 Pins: D13 = PA5 (SCK), D12 = PA6 (MISO), D11 = PA7 (MOSI), and any GPIO (usually D10) as CS.
| SPI port | SCK | MISO | MOSI | NSS |
|---|---|---|---|---|
| SPI1 | D13 (PA5), D3 (PB3) | D12 (PA6), D5 (PB4) | D11 (PA7), D4 (PB5) | A2 (PA4), PA15 |
| SPI2 | D6 (PB10), PB13 | PB14, PC2 | PB15, PC3 | PB12, D14 (PB9) |
| SPI3 | D3 (PB3), PC10 | D5 (PB4), PC11 | D4 (PB5), PC12 | A2 (PA4), PA15 |
| Quad-SPI | D6 (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.
Also Read
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.

| CAN | RX pins | TX pins |
|---|---|---|
| CAN1 | D15 (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.
| Signal | GPIO | Header pin |
|---|---|---|
| D− (DM) | PA11 | CN10-14 |
| D+ (DP) | PA12 | CN10-12 |
| VBUS sense | PA9 | D8, CN10-21 |
| ID | PA10 | D2, CN10-33 |
| SOF | PA8 | D7, 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.
Also Read
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.

| Pin | Header pin | Function after reset |
|---|---|---|
| PA13 | CN7-13 | SWDIO (JTMS) |
| PA14 | CN7-15 | SWCLK (JTCK) |
| PB3 | D3, CN10-31 | SWO (JTDO), to the ST-LINK via SB15 |
| PA15 | CN7-17 | JTDI (pull-up on) |
| PB4 | D5, CN10-27 | NJTRST |
| NRST | CN6-3, CN7-14 | Reset (B2 button, ST-LINK) |
| BOOT0 | CN7-7 | Pulled LOW by 10kΩ |
| BOOT0 | nBOOT1 (option bit) | Boots from |
|---|---|---|
| 0 | any | Main Flash (normal) |
| 1 | 1 (default) | System memory (ST bootloader) |
| 1 | 0 | Embedded 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:
| Interface | Pins | Header |
|---|---|---|
| USART1 | PA9 (TX), PA10 (RX) | D8, D2 |
| USART2 | PA2 (TX), PA3 (RX) | ST-LINK Virtual COM port |
| USART3 | PC10 (TX), PC11 (RX) | CN7-1, CN7-2 |
| I2C1 / I2C2 / I2C3 | PB6/PB7, PB10/PB11, PC0/PC1 (SCL/SDA) | D10/CN7-21, D6/CN10-18, A5/A4 |
| USB DFU | PA11 (DM), PA12 (DP) | CN10-14, CN10-12 |
| SPI1 / SPI2 / CAN1 | PA4–PA7, PB12–PB15, PB8/PB9 | Only 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.
Also Read
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.
| Part | Pin / Connection | What it does |
|---|---|---|
| LD1 COM (red/green) | ST-LINK | Red 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) | +5V | The board is powered |
| B1 USER (blue) | PC13 (SB17) | External pull-up, reads LOW when pressed; also WKUP2 |
| B2 RESET (black) | NRST | Resets the MCU |
| JP1 | U5V | ON: limits the USB request to 100mA, lets a USB charger power the board |
| JP5 | Power select | U5V (default) or E5V (for VIN and E5V) |
| JP6 (IDD) | MCU supply | Remove it and insert an ammeter to measure the MCU current |
| CN2 | ST-LINK jumpers | ON: 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):
| Bridge | Default | Effect |
|---|---|---|
| SB13, SB14 | ON | PA2/PA3 (USART2) to the ST-LINK Virtual COM port |
| SB62, SB63 | OFF | PA2/PA3 not on D1/D0 (close them to use D0/D1) |
| SB51, SB56 | ON | A5 = PC0, A4 = PC1 |
| SB46, SB52 | OFF | Close (and open SB51/SB56) to put I2C1 PB9/PB8 on A4/A5 |
| SB21 | ON | LED LD2 on PA5 |
| SB16, SB50 | OFF | No 8MHz MCO from the ST-LINK (HSE not used, to save power) |
| SB54, SB55 | ON | PH0/PH1 on CN7-29/31 as GPIOs |
| SB48, SB49 | OFF | PC14/PC15 go to X2, not to CN7-25/27 |
| SB45 | ON | VBAT = VDD |
| SB57 | ON | AVDD/AREF = VDD |
| SB2, SB12 | ON | 3.3v regulator output, ST-LINK NRST |
| SB15 | ON | SWO (PB3) to the ST-LINK |
| SB17 | ON | B1 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 name | Pin | Default |
|---|---|---|
Serial | PA2 / PA3 (USART2) | To the PC through the ST-LINK |
Wire | PB9 (SDA, D14), PB8 (SCL, D15) | I2C1 |
SPI | D13 / D12 / D11, CS = D10 | SPI1 |
LED_BUILTIN | PA5 (D13) | LD2 |
USER_BTN | PC13 | B1 |
analogWrite() on A2, D13 | PA4, PA5 | DAC instead of PWM |
| System clock | MSI 4MHz → PLL | 80MHz |
Here’s the classic first test, blinking LD2 and printing to the Serial Monitor at 115200 baud:
|
1 2 3 4 5 6 7 8 9 10 11 |
void setup() { pinMode(LED_BUILTIN, OUTPUT); // LD2 on PA5 (D13) pinMode(USER_BTN, INPUT); // B1 on PC13, LOW when pressed Serial.begin(115200); // USART2 to the ST-LINK VCP } void loop() { digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); Serial.println(digitalRead(USER_BTN) ? "B1 released" : "B1 pressed"); delay(500); } |
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:
| Feature | Nucleo-L476RG | Nucleo-F446RE |
|---|---|---|
| MCU clock | 80MHz | 180MHz |
| Flash / RAM | 1MB / 128KB | 512KB / 128KB |
| Lowest-power mode | Shutdown, 30nA | Standby (µA range) |
| ADC | 3x 12-bit, 5Msps, 16-bit oversampling | 3x 12-bit, 2.4Msps |
| DAC | 2 channels | 2 channels |
| Op-amps / comparators | 2 / 2 | None |
| CAN | 1x CAN 2.0B | 2x CAN 2.0B |
| Serial ports | 5 + LPUART1 | 6 |
| I2C on A4/A5 | Yes (I2C3) | No (solder bridges needed) |
| USB | OTG FS | OTG FS + OTG HS |
| Clock source | MSI/HSI16 (no HSE) | 8MHz MCO from the ST-LINK |
| 3.3v-only header pins | D0, A2, A3, D13 | A2, 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)
| Pin | Label | GPIO | Main functions | All alternate functions | 5v tolerant | Description |
|---|---|---|---|---|---|---|
| CN6-1 | NC | – | – | – | – | Not connected. |
| CN6-2 | IOREF | – | 3.3v ref | – | – | 3.3v I/O reference for shields. |
| CN6-3 | RESET | – | NRST | – | – | NRST: pull it LOW to reset the MCU. |
| CN6-4 | 3V3 | – | 3.3v in/out | – | – | 3.3v output from the LD39050 regulator (500mA), or 3.3v input with SB2/SB12 open. |
| CN6-5 | 5V | – | 5v out | – | – | 5v output from USB, VIN or E5V. |
| CN6-6 | GND | – | – | – | – | Ground. |
| CN6-7 | GND | – | – | – | – | Ground. |
| CN6-8 | VIN | – | 7v–12v in | – | – | 7v–12v input to the 5v regulator. |
| CN8-1 | A0 | PA0 | ADC12_IN5, OPAMP1_INP, TIM2_CH1, TIM5_CH1, USART2_CTS, UART4_TX, WKUP1 | TIM2_CH1, TIM5_CH1, TIM8_ETR, USART2_CTS, UART4_TX, SAI1_EXTCLK, TIM2_ETR, ADC1_IN5, ADC2_IN5, OPAMP1_VINP, RTC_TAMP2, SYS_WKUP1 | Yes | A0 analog input (ADC12_IN5), OPAMP1 non-inverting input and wake-up pin WKUP1; also TIM2/TIM5 channel 1 PWM and UART4_TX. |
| CN8-2 | A1 | PA1 | ADC12_IN6, OPAMP1_INM, TIM2_CH2, TIM5_CH2, USART2_RTS, UART4_RX, LCD_SEG0 | TIM2_CH2, TIM5_CH2, USART2_DE, USART2_RTS, UART4_RX, LCD_SEG0, TIM15_CH1N, ADC1_IN6, ADC2_IN6, OPAMP1_VINM | Yes | A1 analog input (ADC12_IN6) and OPAMP1 inverting input; also TIM2/TIM5 channel 2 PWM and UART4_RX. |
| CN8-3 | A2 | PA4 | ADC12_IN9, DAC1_OUT1, USART2_CK, SPI1_NSS, SPI3_NSS, SAI1_FS_B, LPTIM2_OUT | SPI1_NSS, SPI3_NSS, USART2_CK, SAI1_FS_B, LPTIM2_OUT, ADC1_IN9, ADC2_IN9, DAC1_OUT1 | No (3.3v only) | A2 analog input (ADC12_IN9), DAC1_OUT1 and LPTIM2_OUT; a TT pin, so never drive it above 3.3v. |
| CN8-4 | A3 | PB0 | ADC12_IN15, TIM3_CH3, TIM1_CH2N, USART3_CK, QSPI_IO1, COMP1_OUT | TIM1_CH2N, TIM3_CH3, TIM8_CH2N, USART3_CK, QUADSPI_BK1_IO1, LCD_SEG5, COMP1_OUT, ADC1_IN15, ADC2_IN15, OPAMP2_VOUT | No (3.3v only) | A3 analog input (ADC12_IN15), OPAMP2 output, COMP1 output and TIM3_CH3 PWM; a TT pin (3.3v only). |
| CN8-5 | A4 | PC1 | ADC123_IN2, I2C3_SDA, LPTIM1_OUT | LPTIM1_OUT, I2C3_SDA, DFSDM1_CKIN4, LPUART1_TX, LCD_SEG19, ADC1_IN2, ADC2_IN2, ADC3_IN2 | Yes | A4 analog input (ADC123_IN2), I2C3_SDA, LPUART1_TX and LPTIM1_OUT. |
| CN8-6 | A5 | PC0 | ADC123_IN1, I2C3_SCL, LPTIM1_IN1 | LPTIM1_IN1, I2C3_SCL, DFSDM1_DATIN4, LPUART1_RX, LCD_SEG18, LPTIM2_IN1, ADC1_IN1, ADC2_IN1, ADC3_IN1 | Yes | A5 analog input (ADC123_IN1), I2C3_SCL, LPUART1_RX and LPTIM1_IN1. |
| CN5-10 | D15 | PB8 | TIM4_CH3, TIM16_CH1, I2C1_SCL, CAN1_RX, SDMMC1_D4, LCD_SEG16 | TIM4_CH3, I2C1_SCL, DFSDM1_DATIN6, CAN1_RX, LCD_SEG16, SDMMC1_D4, SAI1_MCLK_A, TIM16_CH1 | Yes | D15: the default I2C1_SCL (Wire), also CAN1_RX and TIM4_CH3 PWM. |
| CN5-9 | D14 | PB9 | TIM4_CH4, TIM17_CH1, SPI2_NSS, I2C1_SDA, CAN1_TX, SAI1_FS_A, SDMMC1_D5 | IR_OUT, TIM4_CH4, I2C1_SDA, SPI2_NSS, DFSDM1_CKIN6, CAN1_TX, LCD_COM3, SDMMC1_D5, SAI1_FS_A, TIM17_CH1, DAC1_EXTI9 | Yes | D14: the default I2C1_SDA (Wire), also CAN1_TX and TIM4_CH4 PWM. |
| CN5-8 | AREF | – | = VDDA (SB57) | – | – | ADC reference, tied to VDD by SB57. |
| CN5-7 | GND | – | – | – | – | Ground. |
| CN5-6 | D13 | PA5 | ADC12_IN10, DAC1_OUT2, TIM2_CH1, TIM8_CH1N, SPI1_SCK, LED LD2 | TIM2_CH1, TIM2_ETR, TIM8_CH1N, SPI1_SCK, LPTIM2_ETR, ADC1_IN10, ADC2_IN10, DAC1_OUT2 | No (3.3v only) | D13: drives the green user LED LD2, SPI1_SCK, DAC1_OUT2 and ADC12_IN10; a TT pin (3.3v only). |
| CN5-5 | D12 | PA6 | ADC12_IN11, OPAMP2_INP, TIM3_CH1, TIM16_CH1, USART3_CTS, SPI1_MISO, QSPI_IO3 | TIM1_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_VINP | Yes | D12: SPI1_MISO, ADC12_IN11, OPAMP2 non-inverting input and TIM3_CH1/TIM16_CH1 PWM. |
| CN5-4 | D11 | PA7 | ADC12_IN12, OPAMP2_INM, TIM17_CH1, TIM3_CH2, SPI1_MOSI, QSPI_IO2 | TIM1_CH1N, TIM3_CH2, TIM8_CH1N, SPI1_MOSI, QUADSPI_BK1_IO2, LCD_SEG4, TIM17_CH1, ADC1_IN12, ADC2_IN12, OPAMP2_VINM | Yes | D11: SPI1_MOSI, ADC12_IN12, OPAMP2 inverting input and TIM17_CH1/TIM3_CH2 PWM. |
| CN5-3 | D10 | PB6 | TIM4_CH1, TIM16_CH1N, USART1_TX, I2C1_SCL, SAI1_FS_B, LPTIM1_ETR | LPTIM1_ETR, TIM4_CH1, TIM8_BKIN2, I2C1_SCL, DFSDM1_DATIN5, USART1_TX, TSC_G2_IO3, TIM8_BKIN2_COMP2, SAI1_FS_B, TIM16_CH1N, COMP2_INP | Yes | D10: USART1_TX, I2C1_SCL, LPTIM1_ETR and TIM4_CH1 PWM. |
| CN5-2 | D9 | PC7 | TIM3_CH2, TIM8_CH2, SDMMC1_D7, TSC_G4_IO2 | TIM3_CH2, TIM8_CH2, DFSDM1_DATIN3, TSC_G4_IO2, LCD_SEG25, SDMMC1_D7, SAI2_MCLK_B | Yes | D9: TIM3_CH2/TIM8_CH2 PWM and SDMMC1_D7. |
| CN5-1 | D8 | PA9 | TIM1_CH2, USART1_TX, OTG_FS_VBUS, LCD_COM1 | TIM1_CH2, USART1_TX, LCD_COM1, TIM15_BKIN, DAC1_EXTI9, USB_OTG_FS_VBUS | Yes | D8: USART1_TX, TIM1_CH2 PWM and the USB OTG FS VBUS sense input. |
| CN9-8 | D7 | PA8 | TIM1_CH1, USART1_CK, OTG_FS_SOF, MCO, LPTIM2_OUT | RCC_MCO, TIM1_CH1, USART1_CK, USB_OTG_FS_SOF, LCD_COM0, LPTIM2_OUT | Yes | D7: TIM1_CH1 PWM, LPTIM2_OUT, USB OTG FS SOF and the MCO clock output. |
| CN9-7 | D6 | PB10 | TIM2_CH3, USART3_TX, LPUART1_RX, SPI2_SCK, I2C2_SCL, QSPI_CLK, SAI1_SCK_A | TIM2_CH3, I2C2_SCL, SPI2_SCK, DFSDM1_DATIN7, USART3_TX, LPUART1_RX, QUADSPI_CLK, LCD_SEG10, COMP1_OUT, SAI1_SCK_A | Yes | D6: USART3_TX, LPUART1_RX, I2C2_SCL, SPI2_SCK, QSPI_CLK and TIM2_CH3 PWM. |
| CN9-6 | D5 | PB4 | TIM3_CH1, USART1_CTS, UART5_RTS, SPI1_MISO, SPI3_MISO, NJTRST, TSC_G2_IO1 | SYS_JTRST, TIM3_CH1, SPI1_MISO, SPI3_MISO, USART1_CTS, UART5_DE, UART5_RTS, TSC_G2_IO1, LCD_SEG8, SAI1_MCLK_B, TIM17_BKIN, COMP2_INP | Yes | D5: NJTRST after reset, then SPI1/SPI3_MISO, TIM3_CH1 or a COMP2 input. |
| CN9-5 | D4 | PB5 | TIM3_CH2, USART1_CK, UART5_CTS, SPI1_MOSI, SPI3_MOSI, I2C1_SMBA, SAI1_SD_B, LPTIM1_IN1 | LPTIM1_IN1, TIM3_CH2, I2C1_SMBA, SPI1_MOSI, SPI3_MOSI, USART1_CK, UART5_CTS, TSC_G2_IO2, LCD_SEG9, COMP2_OUT, SAI1_SD_B, TIM16_BKIN | Yes | D4: SPI1/SPI3_MOSI, LPTIM1_IN1, COMP2_OUT and TIM3_CH2 PWM. |
| CN9-4 | D3 | PB3 | TIM2_CH2, USART1_RTS, SPI1_SCK, SPI3_SCK, SWO, SAI1_SCK_B | SYS_JTDO-SWO, TIM2_CH2, SPI1_SCK, SPI3_SCK, USART1_DE, USART1_RTS, LCD_SEG7, SAI1_SCK_B, COMP2_INM | Yes | D3: SWO trace output after reset (to the ST-LINK via SB15), then SPI1/SPI3_SCK or TIM2_CH2. |
| CN9-3 | D2 | PA10 | TIM1_CH3, USART1_RX, OTG_FS_ID, LCD_COM2 | TIM1_CH3, USART1_RX, USB_OTG_FS_ID, LCD_COM2, TIM17_BKIN | Yes | D2: USART1_RX, TIM1_CH3 PWM and the USB OTG FS ID pin. |
| CN9-2 | D1 | PA2 | ADC12_IN7, TIM2_CH3, TIM15_CH1, USART2_TX | TIM2_CH3, TIM5_CH3, USART2_TX, LCD_SEG1, SAI2_EXTCLK, TIM15_CH1, ADC1_IN7, ADC2_IN7, RCC_LSCO, SYS_WKUP4 | Yes | USART2_TX, wired to the ST-LINK Virtual COM port, so it is not on D1 unless you close SB62; also WKUP4. |
| CN9-1 | D0 | PA3 | ADC12_IN8, TIM2_CH4, TIM15_CH2, USART2_RX | TIM2_CH4, TIM5_CH4, USART2_RX, LCD_SEG2, TIM15_CH2, ADC1_IN8, ADC2_IN8, OPAMP1_VOUT | No (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)
| Pin | Label | GPIO | Main functions | All alternate functions | 5v tolerant | Description |
|---|---|---|---|---|---|---|
| CN7-1 | – | PC10 | USART3_TX, UART4_TX, SPI3_SCK, SDMMC1_D2, SAI2_SCK_B | SPI3_SCK, USART3_TX, UART4_TX, TSC_G3_IO2, LCD_COM4, LCD_SEG28, LCD_SEG40, SDMMC1_D2, SAI2_SCK_B | Yes | Morpho only: USART3_TX / UART4_TX and SPI3_SCK. |
| CN7-2 | – | PC11 | USART3_RX, UART4_RX, SPI3_MISO, SDMMC1_D3, SAI2_MCLK_B | SPI3_MISO, USART3_RX, UART4_RX, TSC_G3_IO3, LCD_COM5, LCD_SEG29, LCD_SEG41, SDMMC1_D3, SAI2_MCLK_B, ADC1_EXTI11, ADC2_EXTI11, ADC3_EXTI11 | Yes | Morpho only: USART3_RX / UART4_RX and SPI3_MISO. |
| CN7-3 | – | PC12 | UART5_TX, USART3_CK, SPI3_MOSI, SDMMC1_CK, SAI2_SD_B | SPI3_MOSI, USART3_CK, UART5_TX, TSC_G3_IO4, LCD_COM6, LCD_SEG30, LCD_SEG42, SDMMC1_CK, SAI2_SD_B | Yes | Morpho only: UART5_TX, SPI3_MOSI and SDMMC1_CK. |
| CN7-4 | – | PD2 | TIM3_ETR, UART5_RX, USART3_RTS, SDMMC1_CMD, TSC_SYNC | TIM3_ETR, USART3_DE, USART3_RTS, UART5_RX, TSC_SYNC, LCD_COM7, LCD_SEG31, LCD_SEG43, SDMMC1_CMD | Yes | Morpho only: UART5_RX, SDMMC1_CMD and TIM3_ETR. |
| CN7-5 | VDD | – | 3.3v (VDD) | – | – | 3.3v MCU supply (VDD). |
| CN7-6 | E5V | – | 5v external in | – | – | External 5v input (4.75v–5.25v, 500mA) with JP5 on E5V. |
| CN7-7 | BOOT0 | – | 10kΩ to GND | – | – | BOOT0, pulled LOW by 10kΩ; tie it to VDD (CN7-5) to start the system bootloader. |
| CN7-8 | GND | – | – | – | – | Ground. |
| CN7-9 | NC | – | – | – | – | Not connected. |
| CN7-10 | NC | – | – | – | – | Not connected. |
| CN7-11 | NC | – | – | – | – | Not connected. |
| CN7-12 | IOREF | – | 3.3v ref | – | – | 3.3v I/O reference for shields. |
| CN7-13 | – | PA13 | SWDIO, IR_OUT | SYS_JTMS-SWDIO, IR_OUT, USB_OTG_FS_NOE | Yes | SWDIO, used by the on-board ST-LINK to program and debug the MCU; leave it alone. |
| CN7-14 | RESET | – | NRST | – | – | NRST: pull it LOW to reset the MCU. |
| CN7-15 | – | PA14 | SWCLK | SYS_JTCK-SWCLK | Yes | SWCLK, used by the on-board ST-LINK to program and debug the MCU; leave it alone. |
| CN7-16 | 3V3 | – | 3.3v in/out | – | – | 3.3v output from the LD39050 regulator (500mA), or 3.3v input with SB2/SB12 open. |
| CN7-17 | – | PA15 | TIM2_CH1, UART4_RTS, SPI1_NSS, SPI3_NSS, JTDI, SAI2_FS_B | SYS_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_EXTI15 | Yes | JTDI after reset (with its pull-up on), then usable as TIM2_CH1, SPI1/SPI3_NSS or UART4_RTS. |
| CN7-18 | 5V | – | 5v out | – | – | 5v output from USB, VIN or E5V. |
| CN7-19 | GND | – | – | – | – | Ground. |
| CN7-20 | GND | – | – | – | – | Ground. |
| CN7-21 | – | PB7 | TIM4_CH2, TIM17_CH1N, USART1_RX, UART4_CTS, I2C1_SDA, LPTIM1_IN2, COMP2_INM | LPTIM1_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_IN | Yes | Morpho only: USART1_RX, I2C1_SDA, LPTIM1_IN2 and TIM4_CH2 PWM. |
| CN7-22 | GND | – | – | – | – | Ground. |
| CN7-23 | – | PC13 | B1 USER, WKUP2 | RTC_OUT_ALARM, RTC_OUT_CALIB, RTC_TAMP1, RTC_TS, SYS_WKUP2 | Yes | The blue user button B1 (reads LOW when pressed) and wake-up pin WKUP2; a weak backup-domain pin (3mA max). |
| CN7-24 | VIN | – | 7v–12v in | – | – | 7v–12v input to the 5v regulator. |
| CN7-25 | – | PC14 | OSC32_IN | RCC_OSC32_IN | Yes | OSC32_IN for the 32.768kHz LSE crystal X2; not connected to the header by default. |
| CN7-26 | NC | – | – | – | – | Not connected. |
| CN7-27 | – | PC15 | OSC32_OUT | ADC1_EXTI15, ADC2_EXTI15, ADC3_EXTI15, RCC_OSC32_OUT | Yes | OSC32_OUT for the 32.768kHz LSE crystal X2; not connected to the header by default. |
| CN7-28 | A0 | PA0 | ADC12_IN5, OPAMP1_INP, TIM2_CH1, TIM5_CH1, USART2_CTS, UART4_TX, WKUP1 | TIM2_CH1, TIM5_CH1, TIM8_ETR, USART2_CTS, UART4_TX, SAI1_EXTCLK, TIM2_ETR, ADC1_IN5, ADC2_IN5, OPAMP1_VINP, RTC_TAMP2, SYS_WKUP1 | Yes | A0 analog input (ADC12_IN5), OPAMP1 non-inverting input and wake-up pin WKUP1; also TIM2/TIM5 channel 1 PWM and UART4_TX. |
| CN7-29 | – | PH0 | OSC_IN | RCC_OSC_IN | Yes | A free GPIO on CN7-29: the L476RG board has no HSE clock (SB54 ON, SB16/SB50 OFF). |
| CN7-30 | A1 | PA1 | ADC12_IN6, OPAMP1_INM, TIM2_CH2, TIM5_CH2, USART2_RTS, UART4_RX, LCD_SEG0 | TIM2_CH2, TIM5_CH2, USART2_DE, USART2_RTS, UART4_RX, LCD_SEG0, TIM15_CH1N, ADC1_IN6, ADC2_IN6, OPAMP1_VINM | Yes | A1 analog input (ADC12_IN6) and OPAMP1 inverting input; also TIM2/TIM5 channel 2 PWM and UART4_RX. |
| CN7-31 | – | PH1 | OSC_OUT | RCC_OSC_OUT | Yes | A free GPIO on CN7-31: the L476RG board has no HSE clock (SB55 ON). |
| CN7-32 | A2 | PA4 | ADC12_IN9, DAC1_OUT1, USART2_CK, SPI1_NSS, SPI3_NSS, SAI1_FS_B, LPTIM2_OUT | SPI1_NSS, SPI3_NSS, USART2_CK, SAI1_FS_B, LPTIM2_OUT, ADC1_IN9, ADC2_IN9, DAC1_OUT1 | No (3.3v only) | A2 analog input (ADC12_IN9), DAC1_OUT1 and LPTIM2_OUT; a TT pin, so never drive it above 3.3v. |
| CN7-33 | VBAT | – | = VDD (SB45) | – | – | RTC/backup supply, tied to VDD by SB45. |
| CN7-34 | A3 | PB0 | ADC12_IN15, OPAMP2_VOUT, TIM3_CH3, TIM1_CH2N, USART3_CK, QSPI_IO1, COMP1_OUT | TIM1_CH2N, TIM3_CH3, TIM8_CH2N, USART3_CK, QUADSPI_BK1_IO1, LCD_SEG5, COMP1_OUT, ADC1_IN15, ADC2_IN15, OPAMP2_VOUT | No (3.3v only) | A3 analog input (ADC12_IN15), OPAMP2 output, COMP1 output and TIM3_CH3 PWM; a TT pin (3.3v only). |
| CN7-35 | – | PC2 | ADC123_IN3, SPI2_MISO, LPTIM1_IN2, DFSDM1_CKOUT | LPTIM1_IN2, SPI2_MISO, DFSDM1_CKOUT, LCD_SEG20, ADC1_IN3, ADC2_IN3, ADC3_IN3 | Yes | Morpho only: ADC123_IN3 analog input, SPI2_MISO and LPTIM1_IN2. |
| CN7-36 | A4 | PC1 | ADC123_IN2, LPUART1_TX, I2C3_SDA, LPTIM1_OUT | LPTIM1_OUT, I2C3_SDA, DFSDM1_CKIN4, LPUART1_TX, LCD_SEG19, ADC1_IN2, ADC2_IN2, ADC3_IN2 | Yes | A4 analog input (ADC123_IN2), I2C3_SDA, LPUART1_TX and LPTIM1_OUT. |
| CN7-37 | – | PC3 | ADC123_IN4, SPI2_MOSI, SAI1_SD_A, LPTIM1_ETR | LPTIM1_ETR, SPI2_MOSI, LCD_VLCD, SAI1_SD_A, LPTIM2_ETR, ADC1_IN4, ADC2_IN4, ADC3_IN4 | Yes | Morpho only: ADC123_IN4 analog input, SPI2_MOSI and LPTIM1_ETR. |
| CN7-38 | A5 | PC0 | ADC123_IN1, LPUART1_RX, I2C3_SCL, LPTIM1_IN1 | LPTIM1_IN1, I2C3_SCL, DFSDM1_DATIN4, LPUART1_RX, LCD_SEG18, LPTIM2_IN1, ADC1_IN1, ADC2_IN1, ADC3_IN1 | Yes | A5 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)
| Pin | Label | GPIO | Main functions | All alternate functions | 5v tolerant | Description |
|---|---|---|---|---|---|---|
| CN10-1 | – | PC9 | TIM3_CH4, TIM8_CH4, SDMMC1_D1, TSC_G4_IO4 | TIM8_BKIN2, TIM3_CH4, TIM8_CH4, TSC_G4_IO4, USB_OTG_FS_NOE, LCD_SEG27, SDMMC1_D1, SAI2_EXTCLK, TIM8_BKIN2_COMP1, DAC1_EXTI9 | Yes | Morpho only: TIM3/TIM8 channel 4 PWM and SDMMC1_D1. |
| CN10-2 | – | PC8 | TIM3_CH3, TIM8_CH3, SDMMC1_D0, TSC_G4_IO3 | TIM3_CH3, TIM8_CH3, TSC_G4_IO3, LCD_SEG26, SDMMC1_D0 | Yes | Morpho only: TIM3/TIM8 channel 3 PWM and SDMMC1_D0. |
| CN10-3 | D15 | PB8 | TIM4_CH3, TIM16_CH1, I2C1_SCL, CAN1_RX, SAI1_MCLK_A, SDMMC1_D4 | TIM4_CH3, I2C1_SCL, DFSDM1_DATIN6, CAN1_RX, LCD_SEG16, SDMMC1_D4, SAI1_MCLK_A, TIM16_CH1 | Yes | D15: the default I2C1_SCL (Wire), also CAN1_RX and TIM4_CH3 PWM. |
| CN10-4 | – | PC6 | TIM3_CH1, TIM8_CH1, SDMMC1_D6, SAI2_MCLK_A | TIM3_CH1, TIM8_CH1, DFSDM1_CKIN3, TSC_G4_IO1, LCD_SEG24, SDMMC1_D6, SAI2_MCLK_A | Yes | Morpho only: TIM3/TIM8 channel 1 PWM and SDMMC1_D6. |
| CN10-5 | D14 | PB9 | TIM4_CH4, TIM17_CH1, SPI2_NSS, I2C1_SDA, CAN1_TX, SAI1_FS_A, SDMMC1_D5 | IR_OUT, TIM4_CH4, I2C1_SDA, SPI2_NSS, DFSDM1_CKIN6, CAN1_TX, LCD_COM3, SDMMC1_D5, SAI1_FS_A, TIM17_CH1, DAC1_EXTI9 | Yes | D14: the default I2C1_SDA (Wire), also CAN1_TX and TIM4_CH4 PWM. |
| CN10-6 | – | PC5 | ADC12_IN14, COMP1_INP, USART3_RX, WKUP5 | USART3_RX, LCD_SEG23, ADC1_IN14, ADC2_IN14, COMP1_INP, SYS_WKUP5 | Yes | Morpho only: ADC12_IN14 analog input, COMP1 non-inverting input, USART3_RX and WKUP5. |
| CN10-7 | AVDD | – | = VDD (SB57) | – | – | Analog supply VDDA, tied to VDD by SB57. |
| CN10-8 | U5V | – | USB 5v | – | – | 5v from the ST-LINK USB connector. |
| CN10-9 | GND | – | – | – | – | Ground. |
| CN10-10 | NC | – | – | – | – | Not connected. |
| CN10-11 | D13 | PA5 | ADC12_IN10, DAC1_OUT2, TIM2_CH1, TIM8_CH1N, SPI1_SCK, LED LD2 | TIM2_CH1, TIM2_ETR, TIM8_CH1N, SPI1_SCK, LPTIM2_ETR, ADC1_IN10, ADC2_IN10, DAC1_OUT2 | No (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 | – | PA12 | TIM1_ETR, USART1_RTS, OTG_FS_DP, CAN1_TX | TIM1_ETR, USART1_DE, USART1_RTS, CAN1_TX, USB_OTG_FS_DP | Yes | Morpho only: USB OTG FS D+ (DP), CAN1_TX or TIM1_ETR. |
| CN10-13 | D12 | PA6 | ADC12_IN11, OPAMP2_INP, TIM3_CH1, TIM16_CH1, USART3_CTS, SPI1_MISO, QSPI_IO3 | TIM1_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_VINP | Yes | D12: SPI1_MISO, ADC12_IN11, OPAMP2 non-inverting input and TIM3_CH1/TIM16_CH1 PWM. |
| CN10-14 | – | PA11 | TIM1_CH4, USART1_CTS, OTG_FS_DM, CAN1_RX | TIM1_CH4, TIM1_BKIN2, USART1_CTS, CAN1_RX, USB_OTG_FS_DM, TIM1_BKIN2_COMP1, ADC1_EXTI11, ADC2_EXTI11, ADC3_EXTI11 | Yes | Morpho only: USB OTG FS D− (DM), CAN1_RX or TIM1_CH4. |
| CN10-15 | D11 | PA7 | ADC12_IN12, OPAMP2_INM, TIM17_CH1, TIM3_CH2, SPI1_MOSI, QSPI_IO2 | TIM1_CH1N, TIM3_CH2, TIM8_CH1N, SPI1_MOSI, QUADSPI_BK1_IO2, LCD_SEG4, TIM17_CH1, ADC1_IN12, ADC2_IN12, OPAMP2_VINM | Yes | D11: SPI1_MOSI, ADC12_IN12, OPAMP2 inverting input and TIM17_CH1/TIM3_CH2 PWM. |
| CN10-16 | – | PB12 | TIM1_BKIN, TIM15_BKIN, USART3_CK, LPUART1_RTS, SPI2_NSS, I2C2_SMBA, SAI2_FS_A, TSC_G1_IO1 | TIM1_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_BKIN | Yes | Morpho only: SPI2_NSS, LPUART1_RTS, TIM1_BKIN and SAI2_FS_A. |
| CN10-17 | D10 | PB6 | TIM4_CH1, TIM16_CH1N, USART1_TX, I2C1_SCL, SAI1_FS_B, LPTIM1_ETR | LPTIM1_ETR, TIM4_CH1, TIM8_BKIN2, I2C1_SCL, DFSDM1_DATIN5, USART1_TX, TSC_G2_IO3, TIM8_BKIN2_COMP2, SAI1_FS_B, TIM16_CH1N, COMP2_INP | Yes | D10: USART1_TX, I2C1_SCL, LPTIM1_ETR and TIM4_CH1 PWM. |
| CN10-18 | – | PB11 | TIM2_CH4, USART3_RX, LPUART1_TX, I2C2_SDA, QSPI_NCS, COMP2_OUT | TIM2_CH4, I2C2_SDA, DFSDM1_CKIN7, USART3_RX, LPUART1_TX, QUADSPI_NCS, LCD_SEG11, COMP2_OUT, ADC1_EXTI11, ADC2_EXTI11, ADC3_EXTI11 | Yes | Morpho 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-19 | D9 | PC7 | TIM3_CH2, TIM8_CH2, SDMMC1_D7, SAI2_MCLK_B | TIM3_CH2, TIM8_CH2, DFSDM1_DATIN3, TSC_G4_IO2, LCD_SEG25, SDMMC1_D7, SAI2_MCLK_B | Yes | D9: TIM3_CH2/TIM8_CH2 PWM and SDMMC1_D7. |
| CN10-20 | GND | – | – | – | – | Ground. |
| CN10-21 | D8 | PA9 | TIM1_CH2, USART1_TX, OTG_FS_VBUS, LCD_COM1 | TIM1_CH2, USART1_TX, LCD_COM1, TIM15_BKIN, DAC1_EXTI9, USB_OTG_FS_VBUS | Yes | D8: USART1_TX, TIM1_CH2 PWM and the USB OTG FS VBUS sense input. |
| CN10-22 | – | PB2 | I2C3_SMBA, LPTIM1_OUT, RTC_OUT | RTC_OUT_ALARM, RTC_OUT_CALIB, LPTIM1_OUT, I2C3_SMBA, DFSDM1_CKIN0, COMP1_INP | Yes | Morpho only: a normal GPIO on the L476 (there is no BOOT1 pin): LPTIM1_OUT, RTC_OUT, I2C3_SMBA and a COMP1 input. |
| CN10-23 | D7 | PA8 | TIM1_CH1, USART1_CK, OTG_FS_SOF, MCO, LPTIM2_OUT | RCC_MCO, TIM1_CH1, USART1_CK, USB_OTG_FS_SOF, LCD_COM0, LPTIM2_OUT | Yes | D7: TIM1_CH1 PWM, LPTIM2_OUT, USB OTG FS SOF and the MCO clock output. |
| CN10-24 | – | PB1 | ADC12_IN16, COMP1_INM, TIM3_CH4, TIM1_CH3N, USART3_RTS, QSPI_IO0, LPTIM2_IN1 | TIM1_CH3N, TIM3_CH4, TIM8_CH3N, DFSDM1_DATIN0, USART3_DE, USART3_RTS, QUADSPI_BK1_IO0, LCD_SEG6, LPTIM2_IN1, ADC1_IN16, ADC2_IN16, COMP1_INM | Yes | Morpho only: ADC12_IN16, COMP1 inverting input, TIM3_CH4 PWM and LPTIM2_IN1. |
| CN10-25 | D6 | PB10 | TIM2_CH3, USART3_TX, LPUART1_RX, SPI2_SCK, I2C2_SCL, QSPI_CLK, SAI1_SCK_A | TIM2_CH3, I2C2_SCL, SPI2_SCK, DFSDM1_DATIN7, USART3_TX, LPUART1_RX, QUADSPI_CLK, LCD_SEG10, COMP1_OUT, SAI1_SCK_A | Yes | D6: USART3_TX, LPUART1_RX, I2C2_SCL, SPI2_SCK, QSPI_CLK and TIM2_CH3 PWM. |
| CN10-26 | – | PB15 | TIM15_CH2, TIM1_CH3N, SPI2_MOSI, SAI2_SD_A, RTC_REFIN | RTC_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_EXTI15 | Yes | Morpho only: SPI2_MOSI and TIM15_CH2/TIM1_CH3N PWM. |
| CN10-27 | D5 | PB4 | TIM3_CH1, USART1_CTS, UART5_RTS, SPI1_MISO, SPI3_MISO, NJTRST, SAI1_MCLK_B | SYS_JTRST, TIM3_CH1, SPI1_MISO, SPI3_MISO, USART1_CTS, UART5_DE, UART5_RTS, TSC_G2_IO1, LCD_SEG8, SAI1_MCLK_B, TIM17_BKIN, COMP2_INP | Yes | D5: NJTRST after reset, then SPI1/SPI3_MISO, TIM3_CH1 or a COMP2 input. |
| CN10-28 | – | PB14 | TIM15_CH1, TIM1_CH2N, USART3_RTS, SPI2_MISO, I2C2_SDA, SAI2_MCLK_A, SWPMI1_RX | TIM1_CH2N, TIM8_CH2N, I2C2_SDA, SPI2_MISO, DFSDM1_DATIN2, USART3_DE, USART3_RTS, TSC_G1_IO3, LCD_SEG14, SWPMI1_RX, SAI2_MCLK_A, TIM15_CH1 | Yes | Morpho only: SPI2_MISO, I2C2_SDA and TIM15_CH1/TIM1_CH2N PWM. |
| CN10-29 | D4 | PB5 | TIM3_CH2, USART1_CK, UART5_CTS, SPI1_MOSI, SPI3_MOSI, I2C1_SMBA, SAI1_SD_B, LPTIM1_IN1 | LPTIM1_IN1, TIM3_CH2, I2C1_SMBA, SPI1_MOSI, SPI3_MOSI, USART1_CK, UART5_CTS, TSC_G2_IO2, LCD_SEG9, COMP2_OUT, SAI1_SD_B, TIM16_BKIN | Yes | D4: SPI1/SPI3_MOSI, LPTIM1_IN1, COMP2_OUT and TIM3_CH2 PWM. |
| CN10-30 | – | PB13 | TIM1_CH1N, TIM15_CH1N, USART3_CTS, LPUART1_CTS, SPI2_SCK, I2C2_SCL, SAI2_SCK_A, SWPMI1_TX | TIM1_CH1N, I2C2_SCL, SPI2_SCK, DFSDM1_CKIN1, USART3_CTS, LPUART1_CTS, TSC_G1_IO2, LCD_SEG13, SWPMI1_TX, SAI2_SCK_A, TIM15_CH1N | Yes | Morpho only: SPI2_SCK, I2C2_SCL, LPUART1_CTS and TIM1_CH1N. |
| CN10-31 | D3 | PB3 | TIM2_CH2, USART1_RTS, SPI1_SCK, SPI3_SCK, SWO, SAI1_SCK_B | SYS_JTDO-SWO, TIM2_CH2, SPI1_SCK, SPI3_SCK, USART1_DE, USART1_RTS, LCD_SEG7, SAI1_SCK_B, COMP2_INM | Yes | D3: SWO trace output after reset (to the ST-LINK via SB15), then SPI1/SPI3_SCK or TIM2_CH2. |
| CN10-32 | AGND | – | – | – | – | Analog ground. |
| CN10-33 | D2 | PA10 | TIM1_CH3, USART1_RX, OTG_FS_ID, LCD_COM2 | TIM1_CH3, USART1_RX, USB_OTG_FS_ID, LCD_COM2, TIM17_BKIN | Yes | D2: USART1_RX, TIM1_CH3 PWM and the USB OTG FS ID pin. |
| CN10-34 | – | PC4 | ADC12_IN13, COMP1_INM, USART3_TX, LCD_SEG22 | USART3_TX, LCD_SEG22, ADC1_IN13, ADC2_IN13, COMP1_INM | Yes | Morpho only: ADC12_IN13 analog input, COMP1 inverting input and USART3_TX. |
| CN10-35 | D1 | PA2 | USART2_TX | TIM2_CH3, TIM5_CH3, USART2_TX, LCD_SEG1, SAI2_EXTCLK, TIM15_CH1, ADC1_IN7, ADC2_IN7, RCC_LSCO, SYS_WKUP4 | Yes | USART2_TX, wired to the ST-LINK Virtual COM port, so it is not on D1 unless you close SB62; also WKUP4. |
| CN10-36 | NC | – | – | – | – | Not connected. |
| CN10-37 | D0 | PA3 | USART2_RX | TIM2_CH4, TIM5_CH4, USART2_RX, LCD_SEG2, TIM15_CH2, ADC1_IN8, ADC2_IN8, OPAMP1_VOUT | No (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-38 | NC | – | – | – | – | 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.
The complete beginner’s guide to STM32 microcontrollers: the toolchain, your first project, and the STM32 tutorials series step by step.












