Can Alternate Functions Cause Pin Contention?
I am using an STM32G0B0RET and trying to use USART2 w/ RS232 Flow Control (Both CTS and RTS) on pins PA0 - PA3. I am also trying to use pin PD5 as a standard GPIO_Output. PD5 has the additional functionality of being USART2_TX. However I am seeing weird behavior off of the PD5 pin as it never seems to pull the line over 0.01V. I have tried disabling flow control and moving the USART Init above the GPIO init in the main function.
My initial assumption was that because USART2 is active on the device, PD5 cannot be used as an output, however looking at the GPIO block diagram that doesn't seem like the expected behavior. This would lead me to believe that I can't use PD6 as its additional functionality is USART2_RX. But that means that pin isnt controlled by the microcontroller which means that potentially the data written to PD6 would appear as UART RX data internally to the device??? I am not sure what is wrong in this case. Any insight, suggestions, or tests would be greatly appreciated.
