Skip to main content
Graduate
October 15, 2024
Solved

Use STLİNK Port for UART Communication

  • October 15, 2024
  • 3 replies
  • 1202 views

Hi everyone,

 

I am using STM32H747I-DISCO.

 

I want to use ST-LINK  V3E port for UART communication port. I am configuring USART1 and using the HAL_UART_TRANSMIT function.

 

After download the code I close the ST-Link connection and using a serial terminal to see the result but nothing happend.

 

What am I missing?

 

 

    This topic has been closed for replies.
    Best answer by testbenchmark

    Hİ DeLorean,

     

    You're right sorry about that.

    When I create a new project I clear the pinouts.

    After configuring the USART1, the CUBEMX configure the wrong pins.

    I check the schematic of dev board, and change these pins.

    Problem solved, sorry again...

    3 replies

    Graduate II
    October 15, 2024

    Missing a lot of detail..

    Initialize the clocks, pins and peripherals. 

    HAL_UART_Init() ??

    Show all the code.

    Should be viable in a Terminal regardless of a debug session. Not clear what issue you're describing.

    testbenchmarkAuthorAnswer
    Graduate
    October 22, 2024

    Hİ DeLorean,

     

    You're right sorry about that.

    When I create a new project I clear the pinouts.

    After configuring the USART1, the CUBEMX configure the wrong pins.

    I check the schematic of dev board, and change these pins.

    Problem solved, sorry again...

    Super User
    October 15, 2024

    @testbenchmark wrote:

    What am I missing?


    As @Tesla DeLorean said, a whole load of detail!

    Remember that we can't see your board, or your computer, or what you're doing - we know nothing other than what you clearly describe in your post

    https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

     


    @testbenchmark wrote:

    After download the code I close the ST-Link connection and using a serial terminal to see the result but nothing happend.


    What, exactly, do you mean by, "close the ST-Link connection" here?

    What happens if you keep the ST-Link connection, and use the debugger to see what's happening?

    ST Employee
    October 17, 2024

    I recommend you for do these steps:

    Step1: with default status of the board, after the board powered successfully, using a serial terminal to see the data, and confirm "is it in good status".

    Step2: do the "close the ST-Link connection" action, to see if the result is align with what you've seen in step1. if not 

    =>Step3: to describe clearly what you do to for "close the ST-Link connection", hardware or software, how?