cancel
Showing results for 
Search instead for 
Did you mean: 

Adding UART to existing project

ISeed
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks!

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

View solution in original post

2 REPLIES 2
S.Ma
Principal

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.

Thanks!

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