cancel
Showing results for 
Search instead for 
Did you mean: 

Use STLİNK Port for UART Communication

testbenchmark
Associate III

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?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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...

View solution in original post

4 REPLIES 4

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
Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Evangelist III

@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?

Sco
ST Employee

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?

 

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...