2022-07-27 06:01 AM
I am trying to use the USART's via the CN2 or CN3 connector.
The documentation "um2839-discovery-kit-for-iot-node-with-stm32u5-series-stmicroelectronics.pdf" gives the following pin mappings:
CN2
USART3_TX -> PD8
USART3_RX -> PD9
CN3
USART2_TX -> PA2
USART2_RX ->PA3
When I create a project using STM32CubeIDE (version 1.9.0)
It assigns the following:
USART3_TX -> PA5
USART3_RX -> PA7
USART2_TX -> PD5
USART2_RX -> PD6
What am I to do?
Cheers,
Don
2022-07-27 09:30 AM
I have now resolved this issue.
Basically STM32CubeIDE is wrong!
I found a schematic and it confirmed what the user guide stated.
In the file stm32u5xx_hal_msp.c the function HAL_UART_MspInit() is where the pins are assigned to the UART's. I have added code to assign the correct PIN's.
I can now TX data on UART3!
2022-08-19 02:31 AM
Hi @DWell.1 and welcome to the Community :),
Thank you for your contribution.
I think that the USART2 and USART3 Pins are well described in the STM32Cube IDE.
These Pins descriptions are right and in relation with the Datasheet DS13086 REV 6.
So, you can refer to the User Manual UM2839 in the USART2 and USART3 configurations.
Kaouthar
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.