2024-12-10 06:12 AM
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:
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
Solved! Go to Solution.
2024-12-10 07:32 AM
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
2024-12-10 06:17 AM
@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?
2024-12-10 07:11 AM - edited 2024-12-10 07:19 AM
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!
2024-12-10 07:19 AM
@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:
2024-12-10 07:32 AM
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
2024-12-11 03:09 AM
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!