Associate II
April 12, 2017
Question
Why does UART not work in my project?
- April 12, 2017
- 1 reply
- 1249 views
Posted on April 12, 2017 at 13:41
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
#usart #cubemx #stm32f051 #nucleo