cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H725 supports VCP over USB?

Bogdan
Senior

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Bogdan
Senior

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

View solution in original post

3 REPLIES 3

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
Senior

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
Senior

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