Skip to main content
Graduate
October 3, 2024
Solved

Simple UART not working on nucleoH755ZIQ

  • October 3, 2024
  • 1 reply
  • 1164 views

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:

Jad_0-1727955007350.png

connected USART 2 (doesn't USART 1 work?)

and then implemented the simple code 

Capture d’écran 2024-10-03 à 13.31.03.png

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.

Capture d’écran 2024-10-03 à 13.35.41.png

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 

    This topic has been closed for replies.
    Best answer by mƎALLEm

    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.

    SofLit_0-1727956619413.png

    Please review the board schematics before suspecting an issue in the software.

    Hope it helps

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    October 3, 2024

    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.

    SofLit_0-1727956619413.png

    Please review the board schematics before suspecting an issue in the software.

    Hope it helps

    JadAuthor
    Graduate
    October 3, 2024

    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:

    Jad_0-1727963894602.png

    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.

    Technical Moderator
    October 3, 2024

    Hello @Jad,

    I suggest to open a new thread regarding the last question.

    Thank you.