Skip to main content
Michal Dudka
Lead
March 25, 2022
Solved

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

  • March 25, 2022
  • 1 reply
  • 1230 views

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.
Best answer by Kraal

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
Senior III
March 25, 2022

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