Skip to main content
Bogdan
Senior
February 24, 2023
Solved

STM32H725 supports VCP over USB?

Hello,

i am porting a project made initially on STM32H750, but because of the semiconductor shortage on the market, the only available part was a stm32H725IGK6, which i started working on.

Regarding the usb connection, i have the following pins used:

PA9 - connected via 10k resistor to 5Vusb

PA10 - connected to ID usb pin

PA11 - connected to DN usb

PA12 - connected to DP usb

Does this devices supports VCP over usb? Because i am trying to work with some usb cdc examples, but so far i am not able to make it visible on the computer.

This topic has been closed for replies.
Bogdan
BogdanBest answer
Senior
February 25, 2023

Hmm,

i found out this in the reference manual .

Searched for USBREGEN inside the hal library, and came across this function HAL_StatusTypeDef HAL_PWREx_EnableUSBReg (void)

I implemented it after in the MX_USB_DEVICE_Init function.

Now it seems to work, i get Virtual com port 9 in windows !!!

0693W00000aHedBQAS.png0693W00000aHedBQAS.png

3 replies

waclawek.jan
Super User
February 24, 2023

If there is any USB device support, then the mcu as such does support VCP too.

Whether you can click it in CubeMX or in other way, that's another question. You could also have a look at existing examples for this mcu, in Cube or elsewhere.

Some rudimentary troubleshooting hints here.

JW

Bogdan
BogdanAuthor
Senior
February 25, 2023

Hi Jan,

thanks for the hints... I am stil strugling with these.

I am really wonder if VDD33USB pin needs to be connected somewhere.

I connected only VDD50USB to the +5V line from the usb connector

Bogdan
BogdanAuthorBest answer
Senior
February 25, 2023

Hmm,

i found out this in the reference manual .

Searched for USBREGEN inside the hal library, and came across this function HAL_StatusTypeDef HAL_PWREx_EnableUSBReg (void)

I implemented it after in the MX_USB_DEVICE_Init function.

Now it seems to work, i get Virtual com port 9 in windows !!!

0693W00000aHedBQAS.png0693W00000aHedBQAS.png