Printf and Getchar (Inter.mode) via USART2 plus Timer in PWM mode

If you like it, share it

This example is based on NUCLEO-F030R8 and STM32CubeIDE and show how to:

  • Redirect the printf to USART2
  • Getchar via USART2 in Interrupt mode
  • Timer (TIM14) in PWM mode at 50% of duty cycle

For more info see here.

This entry was posted in STM32, STM32F0. Bookmark the permalink.