Skip to main content
Associate III
October 15, 2024
Solved

Use STLİNK Port for UART Communication

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.
testbenchmarkBest answer
Associate III
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...

4 replies

Tesla DeLorean
Guru
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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
testbenchmarkAuthorBest answer
Associate III
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...

Andrew Neil
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?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Sco
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?