Skip to main content
ISeed
Associate III
May 19, 2019
Solved

Adding UART to existing project

  • May 19, 2019
  • 1 reply
  • 815 views

Hello,

I have donwloaded the STM32CUBE FW pack for F1 modules.

I tested 2 of them: a UART_PRINTF example and a PWR example, for the F100 Discovery board.

Both examples work well, and I want to add UART capability to the PWR example.

How does one do it?

I tries to copy all relevant files and relevant code to the PWR example, and it builds and runs without errors, but upon printing, nothing happens.

This topic has been closed for replies.
Best answer by ISeed

Thanks!

Found out the .project files were different. I made them similar and it started working.

1 reply

S.Ma
Principal
May 19, 2019

Typically you need the clock enable for uart (and dma if used), the init of uart, the gpio configuration and create the interrupt isr irq function. Check all these points first.

ISeed
ISeedAuthorBest answer
Associate III
May 19, 2019

Thanks!

Found out the .project files were different. I made them similar and it started working.