cancel
Showing results for 
Search instead for 
Did you mean: 

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

admi2
Visitor

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.

2 REPLIES 2
TDK
Guru

> 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.

If you feel a post has answered your question, please click "Accept as Solution".

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..