2025-09-29 2:47 AM
Hi there, I have been trying to send a receive messages via serial with the transmit and receive commands on a H7A3ZI Nucleo board, however when I build the code and run it with the debugger I cannot see the messages in the console or command shell console. I have used a 115200 Baud rate, and connected to COM 3 with 8 bits and 1 stop bit. This has also been set up in my device manager.
When trying to connect the command shell console it is intermittent when connecting, and normally needs to be physically disconnected to reconnect.
I am using suart2 with PA2 as the TX, and PA3 as the RX.
SB16 and SB17 are soldered, and SB12 and SB64 aren't soldered.
please let me know what else I could try, here is a example of the code that I have tried to run...
2025-09-29 3:02 AM - edited 2025-09-29 3:05 AM
@Pincate wrote:I have used a 115200 Baud rate, and connected to COM 3 with 8 bits and 1 stop bit
So, presumably, you are trying to use the Virtual COM Port (VCP) in the Nudleo board's ST-Link?
@Pincate wrote:I am using suart2 with PA2 as the TX, and PA3 as the RX.
Are those pins actually connected to the VCP?
See:
PS:
Rather than posting code as a screenshot, please see How to insert source code
2025-09-29 3:34 AM - edited 2025-09-29 3:36 AM
@Andrew Neil wrote:
@Pincate wrote:
I am using suart2 with PA2 as the TX, and PA3 as the RX.
Are those pins actually connected to the VCP?
It seems not. From the schematics, USART3 instance is the one that should be used with PD8 for Tx and PD9 for Rx.
So the question here, @Pincate are you using an externa USB/UART converter connected externally to USART2? if not, you need to use USART3 (PD8 for Tx and PD9 for Rx) and the STLINK VCP.