Heartbeat
STM32 Bare Metal LED Blink Exercise
Task
Blink the LED on PA5 five times, then leave it off. PA5 is low at reset. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
PA5 must make exactly ten edges. PA5 rises first and falls last. Timing is not graded.
Notes
This question needs no clock enable. Your program is built and run at -O0, then again at -O2, and must pass both.