Skip to main content
Michal Dudka
Lead
Mar 25, 2022 7:53 AM UTC
Solved

CubeMX 6.4.0 bug - Unable to set up any UART1 mode if none TX pin is free

I've planed use UART1 in "only receive" mode and i used all possible UART1_TX pins for another purposes. In that case UART1 config is bocked and user can't config single wire modes, like "only receive" or "single-wire half duplex " (possible thanks RX/TX Swap).

There are few workarounds:

1) give up UART1 config by cubeMX and write your own code (possible best way)

2) prevent that situation by configuring UART first, before blocking UART1_TX pins by other peripherals

0693W00000Lvhx4QAB.png

This topic has been closed for replies.
KraalBest answer
Mar 25, 2022 11:29 AM UTC

Hi,

See my question https://community.st.com/s/question/0D53W00000GXETISA5/cubemx-does-not-handle-io-alternate-functions-and-peripherals

I'm not a CubeMX user, so I prefer to write my own code, based on a careful read of both the datasheet, the reference manual and the errata sheet.

Best regards,

Kraal

1 reply

KraalBest answer
Mar 25, 2022 11:29 AM UTC

Hi,

See my question https://community.st.com/s/question/0D53W00000GXETISA5/cubemx-does-not-handle-io-alternate-functions-and-peripherals

I'm not a CubeMX user, so I prefer to write my own code, based on a careful read of both the datasheet, the reference manual and the errata sheet.

Best regards,

Kraal