How Embedded Engineers Actually Read Datasheets | STM32, Embedded systems, embedded, microcontroller
Do you need 2,140 pages to blink one LED?
About twenty pages cover both lighting and dimming LD2 on the NUCLEO-G474RE. First enable the GPIOA clock and clear PA5’s mode bits before selecting output. To dim the LED with 1 kHz PWM, the reference manual gives you the TIM2 settings, and the datasheet shows that AF1 routes channel 1 to PA5.