2026-04-14 9:54 AM - last edited on 2026-04-22 3:04 AM by KDJEM.1
Hi,
I'm developing a custom STM32G491CEU6 board with USB-C and pins for external ST-LINK programmer. Board is powered from external source. I connected only D+, D- and GND from on USB-C to MCU, because I wanted to use this only for debug. Right now the USB-C communication works only if ST-LINK is connected (had no idea about VBUS sensing). Can i override it somehow? Schematics below
Solved! Go to Solution.
2026-04-14 1:50 PM
There's no reason why it can't work. The reason that it isn't is going to be specific to your setup. Maybe NRST is held low, or the firmware doesn't pass a certain stage, or it is miswired.
There are no issues in the posted schematics.
2026-04-14 11:17 AM
What type of debug you mean? If USB CDC printing you require implement it in your code... USB pins isnt debug interface .
2026-04-14 11:48 AM
Yes, I meant CDC printing, not classic Debug. More important for me is why it's not working without ST-LINK. I was looking for a solution, but couldn't find one.
2026-04-14 12:05 PM
Perhaps the ST-LINK is providing a GND connection to your PC.
2026-04-14 1:50 PM
There's no reason why it can't work. The reason that it isn't is going to be specific to your setup. Maybe NRST is held low, or the firmware doesn't pass a certain stage, or it is miswired.
There are no issues in the posted schematics.
2026-04-15 4:18 AM
You were right, I had NRST floating, I connected it via 10k resistor to 3,3V and it works like a charm. TY all.
2026-04-15 4:29 AM - edited 2026-04-15 4:33 AM
@ErKaTech wrote:
I had NRST floating, I connected it via 10k resistor to 3,3V and it works like a charm. TY all.
That's weird. There is an internal pull-up resistor inside the chip. Refer to the reference manual RM0440:
It should work without adding an external pull-up resistor on NRST pin!
However you need instead to add a filtering capacitor of 100nF on NRST connected to the ground:
Please refer to the reference design in AN5093 "Getting started with STM32G4 Series hardware development boards" / Figure 8.