Skip to main content
Visitor II
March 11, 2024
Question

UART only works while ST-Link is connected

  • March 11, 2024
  • 2 replies
  • 1033 views

I'm using an ST-Link broken off from a NUCLEO board to program a custom board with an STM32G4A1 on it. The issue is that UART transmission only seems to work while the ST-Link is connected - probing the line with a scope shows no activity when the ST-link is disconnected from the board. This is especially confusing since the LED blinks in the while loop are still working, indicating that the program is actually running.

I've used this ST-Link with several custom boards at this point, and never had an issue like this. Any idea as to what might be causing this? The UART is in single wire half duplex mode, in case that matters.

2 replies

ST Employee
March 11, 2024

Hello @jm-vdai ,

can you give more details about the UART instance and the pins you are using ?

BR

 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Andrew Neil
Super User
March 11, 2024

Are you missing a ground connection?

Then, when the ST-Link is connected, it provides the ground ...

:thinking_face:

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.