Struggling with a simple UART printf on NUCLEO-G474RE (works on H7, not here)
Hi everyone,
I’m feeling a bit defeated by a task that should be "Hello World" level simple. I’m trying to get a basic printf to show up in PuTTY using a NUCLEO-G474RE, but I’m getting absolutely nothing in the terminal.
I do this all the time with my NUCLEO-H723ZG using USART3 and it works like a charm. For the G4, I’ve switched over to USART2, but no luck.
Here is my setup:
Toolchain: CubeMX + CMake.
The Logic: I've overwritten __io_putchar() with a HAL_UART_Transmit call.
The Config: USART2 is enabled, baud rate matches PuTTY (115200), and the clocks seem fine.
I even had a friend who uses G4 boards regularly take a look, and even he couldn't figure out why the data isn't hitting the ST-Link. It feels like I'm missing one tiny, G4-specific checkbox or jumper setting.
I've put together a bare-bones repository with just the code for the printf here: https://github.com/mpek29/nucleoG4
Has anyone else run into similar issues ?
Thanks in advance for any pointers, I'm sure it's something silly I've overlooked!
