2020-01-23 11:39 AM
2020-01-23 12:49 PM
It works for me out of the box using STM32CubeIDE USART1 on a NUCLEO-G071RB board.
Note the DEM,... remarks in the ref.man: This bit can only be written when the USART is disabled (UE=0).
2020-01-23 12:53 PM
So are you using the DEM bit to turn the DE pin on and off directly?
2020-01-23 01:06 PM
No, I configured USART1 in the STM32CubeIDE GUI "pinout view": Mode ansynchronous, checked Hardware Flow Control (RS485), generated the code.
Then; I checked the registers during debug and the output using LA.
2020-01-23 01:16 PM
Read out and check/post the relevant USART and GPIO registers' content.
Can you toggle the given pin "manually" if set as GPIO output?
JW