Skip to main content
Associate
December 10, 2024
Solved

Issue with USART6 on STM32F7508-DK - Unable to Transmit Data

  • December 10, 2024
  • 2 replies
  • 1051 views

Dear STM Community,

I am currently working on enabling USART6 for data transmission on my STM32F7508-DK board, but I have been unsuccessful so far. I have checked the datasheet for the correct RX and TX pin configurations, and I have tried two different pin combinations:

  1. PG9 for USART6_RX and PG14 for USART6_TX
  2. PC6 for USART6_TX and PC7 for USART6_RX

When I use USART1, everything works perfectly, but I need USART1 for other tasks, so I am planning to use USART6 for terminal output.

Could someone help me or provide a solution to get USART6 working as expected?

Thank you in advance for your assistance.

Best regards,
@AS5

Best answer by Tesla DeLorean

USART1 PA9/PB7 "works" because it's actually plumbed to the ST-LINK VCP

If you want other USARTs to work you're going to need to wire them to another USB-to-CMOS serial adapter.

Perhaps look a pins wired to the Arduino Shield, and not in use for other purposes.

USART6 PC6/PC7 go to Arduino D1/D0 pins, you'll need to wire to those

2 replies

Andrew Neil
Super User
December 10, 2024

@AS5 wrote:

I am currently working on enabling USART6 for data transmission on my STM32F7508-DK board, but I have been unsuccessful so far.5


In what way(s), "unsuccessful"?

How are you testing?

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

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.
AS5Author
Associate
December 10, 2024

Thank you for your response.

I tried to test a simple communication setup to send a message to the terminal. I followed the datasheet to configure the pins, but the USART6 still doesn't work. To debug the issue, I created a small test function that uses USART1 (which I know works reliably) to print potential error messages. This way, I could identify what might be going wrong with USART6.

Attached, you'll find a screenshot of the terminal output and the function I used to diagnose the issue.

Looking forward to your insights!

AS5_2-1733843884408.png

AS5_3-1733843911377.png

 

 

 

Andrew Neil
Super User
December 10, 2024

@AS5 wrote:

I tried to test a simple communication setup to send a message to the terminal.


So how did you connect your UART to that terminal?

Please see the Posting Tips for how to post source code - not as a screenshot:

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

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.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
December 10, 2024

USART1 PA9/PB7 "works" because it's actually plumbed to the ST-LINK VCP

If you want other USARTs to work you're going to need to wire them to another USB-to-CMOS serial adapter.

Perhaps look a pins wired to the Arduino Shield, and not in use for other purposes.

USART6 PC6/PC7 go to Arduino D1/D0 pins, you'll need to wire to those

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
AS5Author
Associate
December 11, 2024

Thank you so much for your explanation! Following your advice, I successfully connected USART6 to the D1/D0 pins on the Arduino shield, which allowed me to establish communication via USART6 and start printing to the terminal. Everything is working as expected now!