Why MCUs Feel Hard (It's Not C) | 3 Things to Check When Your MCU Won't Work
Why does the LED blink while the UART on the same board prints garbage?
An LED can blink while the UART on the same board prints garbage. On a NUCLEO-F401RE, checking the peripheral clock, the pin’s assigned function and the peripheral’s enable state helps narrow down the fault before you rewrite the code.