cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 UART Single Wire Half Duplex - Incorrect initialisation code

The initialisation code generated (by CubeIDE v1.13.0) leaves both the transmitter and the receiver enabled!
This is clearly not a valid state!

See: 

https://community.st.com/t5/embedded-software-mcus/hal-uart-transmit-with-single-wire-half-duplex/m-p/579328

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
1 REPLY 1

Same problem here - with STM32C011:

https://community.st.com/t5/stm32cubemx-mcus/cubemx-generates-bad-code-for-uart-in-half-duplex/td-p/776144

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.