Skip to main content
Visitor II
March 13, 2025
Question

One USB port for both ST-Link and user device applications

  • March 13, 2025
  • 2 replies
  • 495 views

Hello ST community,

I am trying to create a USB connection between my NUCLEO-STM32F303RE board and my computer. The datasheet indicates that configuring the USB port for this user device purpose is possible. However, when I received the board, I realized it only had one USB port. Naturally, that port should be reserved for the ST-Link and there would be none left for the user device.

The thing is even STM32CubeMX proposes the USER DEVICE middleware for this board, so I don't feel like I misunderstood the datasheet.

My question is the following : Is it possible that the ST-Link and the USB user device share the same USB port ? If so, how to activate the usb user device properly ?

I haven't found this problem anywhere else. If someone could tell me if I am not understanding something, it would be helpful.

Thanks.

    This topic has been closed for replies.

    2 replies

    Super User
    March 13, 2025

    > Is it possible that the ST-Link and the USB user device share the same USB port ?

    No, the USB port is hooked up to the ST-Link chip and not the target STM32F303 chip.

    If you want to use USB, you'll need to wire it using a breakout board or similar to the appropriate pins.

    Graduate II
    March 13, 2025

    The USB here isn't connected to the STM32F303 part, you'd need to use a different board.

    Or use the USB-CDC/VCP provided by the ST-LINK (STM32F103) that connects to a USART on the STM32F303

    You can find a SCHEMATIC for the board under the "CAD Resources" tab, to better understand what's wired to what.