2024-10-03 04:36 AM - last edited on 2024-10-03 05:00 AM by SofLit
good morning. since this morning, on my nucleoH755ZIQ I am trying to make work my UART connection. I followed the stm video on YouTube and did as said:
connected USART 2 (doesn't USART 1 work?)
and then implemented the simple code
in the while loop of my main. unfortunately, when I run the console, nothing appears. I even tried it on putty and again nothing came out. so I decided to change board and take the NUCLEO C031C6 but this time could not even access the USART 2.
does somebody knows what could be the problem or have a simple code I could try to understand if the problem is the hardware or the software?
best regards
Solved! Go to Solution.
2024-10-03 04:57 AM - edited 2024-10-03 04:59 AM
Hello,
If you are using Virtual Comport of STLINK, this is normal as USART1 is not connected to the VCP but USART3.
So use USART3 instead with the correct Tx/Rx pins.
Please review the board schematics before suspecting an issue in the software.
Hope it helps
2024-10-03 04:57 AM - edited 2024-10-03 04:59 AM
Hello,
If you are using Virtual Comport of STLINK, this is normal as USART1 is not connected to the VCP but USART3.
So use USART3 instead with the correct Tx/Rx pins.
Please review the board schematics before suspecting an issue in the software.
Hope it helps
2024-10-03 06:59 AM
thank you for the response, I was searching virtual com port and not vcc so I did no see it. however I got another problem on stm32: USART mode 3 is impossible to put the mode into available:
I wanted to do it manually by turning directly the pins of PD9 and PD10 into tx nd rx but it doesn't want to turn on the usart3. I think I am missing something.
2024-10-03 07:02 AM
Hello @Jad,
I suggest to open a new thread regarding the last question.
Thank you.