Associate
June 10, 2022
Solved
STM32G061C8U6 UART Generated Config is Incorrect
- June 10, 2022
- 9 replies
- 3593 views
STM32CubeIDE Version: 1.9.0
Hal MCU : v1.5.1
Chip: STM32G061C8U6
If you enable USART1 in asynchronous mode for pins PA9 and PA10 the auto generated code incorrectly sets the port to AF0 when it should be AF1 see datasheet table 13 or port.png.
When set to the correct port it transmits but at very low amplitude of a few mv. See scpoe.png
Setting the pins to PB7 and PB8 UART works fine.
How to get it working for pins PA9 and PA10?
