Is there an option to only use the Rx-pin of a uart / usart so that the Tx-pin can be used for something else (in my case SPI_SCK)?
If I enable a uart / usart in STM32CubeMx and go to the "Configuration" tab I can change "Data Direction" to "Receive only". But this doesn't disable the Tx-pin.
Another way may be using half-duplex mode but then the Tx-pin would be used anyways and I couldn't use it for SPI.
Note: I am still planning my own board and don't have any hardware to test.
Hopefully someone can help.