2025-07-02 2:52 PM - last edited on 2025-07-02 3:26 PM by Pavel A.
I'm using the STM32F405RGT6 board in a controller project.
I wanted to use PA0 as PWM and PA1 as RX. For some reason, when configuring the .ioc, even though I configure UART4 as receiver only, it doesn't allow me to use PA0 as PWM.
Is there any other way to configure this in the code?
2025-07-02 3:20 PM
Hello @Maria-e-Elisa and welcome to the ST Community.
This option is not possible throw CubeMX. So, if you want to configure the TX pin for another function, you can create your project on your own (without CubeMX code generation). Or create a basic code that Keeps the TX pin active. And on the generated code, made the modifications you need to change the TX pin functionality. Also, you can set the USART to use only one pin (the TX pin for TX and RX) by setting the mode to single wire half duplex mode.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-07-02 4:38 PM
@Maria-e-Elisa wrote:the STM32F405RGT6 board
What STM32F405RGT6 board, exactly?
See: How to write your question to maximize your chances to find a solution.
STM32F405RGT6 is just a chip part number - it doesn't identify a board.