cancel
Showing results for 
Search instead for 
Did you mean: 

USB Virtual COM Port with STM32H747XI on Arduino Portenta H7

AWats.4
Associate II

Hello, bit of a MCU newby here - any help would be appreciated.

As the title suggests I'm trying to get VCP working with HAL on the arduino portenta h7 which uses a STM32H747XI. I'm on Windows 10, the board appears as "USB Root Hub (USB 3.0)" in device manager under Universal Serial Bus Controllers instead of the Ports section.

I'm single booting the M7 core with the following settings/configuration:

-Using HSI clock

-CRS SYNC set to USB_FS

-USB_OTG_FS in device only mode, vbus disabled

-Class for FS IP class set to VCP, other settings default

The CDC_Transmit_FS() function seems to execute and the code loops but the serial monitor does not see it.

I think this is a firmware issue because serial communication over USB works fine on the Portenta with the Arduino bootloader and code.

Thanks in advance.

1 REPLY 1

Hello @AWats.4​ ,

Take a look at the following example provided under our H7 Firmware Package ( Path : Projects\STM32H747I-EVAL\Applications\USB_Device\CDC_Standalone)

Try to get inspiration from the USB configuration.

I hope this helps.

BeST Regards,

Walid