AnsweredAssumed Answered

Why does UART not work in my project?

Question asked by N_rgaard.Esben_Dueho on Apr 12, 2017
Latest reply on Apr 12, 2017 by N_rgaard.Esben_Dueho

Hi.

I have an stm32nucleo board with the stm32F051 chip.

In CubeMX v.4.20.1 I have created a project based on stm32F030 (F051 is not available) where USART2 and Green LED gpio are activated.

In main() I loop - toggle the LED and transmit a UART message.

I'm running Keil MDK and my project compiles successfully.

When I load the project onto the nucleo the LED starts blinking but there is no activity on the TX pin (PA2).

 

Does anyone have an idea of what might be wrong? (My project is attached.)

Could it be because my cubeMX project is based on a slightly different ship? In the STM32F0x Reference manual (RM0091) it seems that the F03x and F05x are very similar.

 

Thanks,

-Esben

Attachments

Outcomes