NUCLEO-L4R5ZI-P Virtual COM Port Not Working - No UART Output
Hello STM32 Community,
I'm having trouble getting UART communication working on my NUCLEO-L4R5ZI-P board and would appreciate any guidance.
Board Details:
- NUCLEO-L4R5ZI-P with STM32L4R5ZIT6PU
- ST-Link firmware updated to the latest version
- Programming/debugging works fine
- LED control works perfectly
Problem: No UART output appears in any terminal program, despite testing multiple configurations. The virtual COM port is detected by both macOS and Windows, but no TX activity occurs (TX indicator never lights up in terminal programs).
What I've Tested:
- USART2 on PD5/PD6 (as shown in STM32CubeIDE pin configuration)
- USART3 on PD8/PD9 (based on datasheet D0/D1 assignments)
- LPUART1 on PG7/PG8 (documented as virtual COM port option)
- USART2 on PA2/PA3 (standard NUCLEO configuration)
- Multiple alternate function mappings (AF7, AF8)
- Different baud rates (9600, 38400, 115200)
- Tested on both Mac (CoolTerm) and Windows (PuTTY)
Hardware Verification:
- Solder bridges SB130 and SB131 have resistors (closed)
- GPIO test on PD5 works (LED blinks when configured as output)
- ST-Link enumerates correctly on USB
- Virtual COM port appears in device manager
Sample Code Tested ( I can upload the full code if that is helpful):
// Basic USART2 test on PD5
RCC_AHB2ENR |= (1U << 3); // Enable GPIOD
RCC_APB1ENR1 |= (1U << 17); // Enable USART2
GPIOD_MODER |= (2U << 10); // PD5 alternate function
GPIOD_AFRL |= (7U << 20); // AF7
USART2_BRR = 417; // 9600 baud @ 4MHz
USART2_CR1 = (1U << 3) | (1U << 0); // TE | UE
// Send loop with TXE flag checking
Questions:
- Does the NUCLEO-L4R5ZI-P use a different UART/pin configuration than documented?
- Are there additional initialisation steps required for this board variant?
- Could there be a hardware defect with the virtual COM port on some units?
- Are there any known solder bridge configurations specific to this board?
Any insights would be greatly appreciated. I've exhausted the standard troubleshooting approaches and am wondering if this board variant has specific requirements I'm missing.
Thank you for your time and assistance.
