It is time to use some alternate functions on ports pins. For this example we will use alternate function of PORTA.2 and PORTA.3 to serve as RX/TX of USART2.
In previous posts I wrote about blinking LED and configuring ports. Now it is time to read some buttons.
As mentioned in previous article in this one I will explain how to blink LED on Nucleo F401RE using STM32CubeMX and SW4STM32. We won’t go into details about each line of code. Purpose of this tutorial is just to get LED to blink.