Why is my CubeMx created USART not running?
- November 26, 2018
- 2 replies
- 1222 views
Hi Guys,
I created a Keil5 project with CubeMX. In this project, i only created a USART (USART1) periphery application. So simple as that. BUT: My usart seams not to run. I enabled it by "HAL_USART_ENABLE_IT" in the setup and call the "HAL_USART_RECEIVE_IT" in the USART1_IRQHandler function. Secondly i tried to enable RCC-Clock by "__HAL_RCC_USART1_CLK_ENABLE();", but my buffer was still empty.
In the Debug Session, i made a Screenshot of the huart1 variable. There you can see the values of every Register during debugging. They stay all the same, so no chasnges during debugging.
Do you see anything I missed for calling? The USART clock should be connected with the usart periphery automatically by using CubeMX, souldn't it?
Thank you and have a nice day.
