Skip to main content
Graduate
March 17, 2025
Solved

Using NUCLEO-U031R8 STLINK VCP on external target

  • March 17, 2025
  • 3 replies
  • 1211 views

Hello!

I am using the onboard STLINK on the NUCLEO-U031R8 to program a STM32U0 on a custom PCB. I use the SWD interface connected over jumper wires and programming works fine. I would like to enable printf for debug purposes, and since SWV is not available for this series, I am trying to connect USART2 from my PCB to the STLINK using fly wires. However, I can't seem to find where the TX and RX pins are exposed on the STLINK. The jumpers and CN3 mentioned in section 6.8 of UM1724 also don't match up. On further inspection, it seems that some Nucleo boards have the TX and RX pins exposed as a header, but my particular one does not. Is there a way for me to use VCP this way with this Nucleo board? 

Thank you in advance! 

    This topic has been closed for replies.
    Best answer by TDK

    https://www.st.com/resource/en/schematic_pack/mb1932-u031r8-b01-schematic.pdf

    They're not exposed at a header. If you have tools/skills to remove the resistor and solder a wire in its place, you could use them. This is going to be out of reach for most hobby setups.

    As @Pavel A. suggests, you can use a 0.05" pitch 14 pin header to interface with a standard programmer and route out the VCP signals that way.

    3 replies

    Super User
    March 17, 2025

    Do yourself a favor, get ST-LINK v3 MINIE.  Be happy.

     

    TDKAnswer
    Super User
    March 18, 2025

    https://www.st.com/resource/en/schematic_pack/mb1932-u031r8-b01-schematic.pdf

    They're not exposed at a header. If you have tools/skills to remove the resistor and solder a wire in its place, you could use them. This is going to be out of reach for most hobby setups.

    As @Pavel A. suggests, you can use a 0.05" pitch 14 pin header to interface with a standard programmer and route out the VCP signals that way.

    Graduate
    March 19, 2025

    Thank you all! I was just trying to make sure I didn’t miss anything obvious. I stumbled on an old STLINK V3 lying around the lab so I’m using that now.