cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO H7S3L8 USB HS CDC Standalone example, stuck on USBPD_DPM_Run()

simo zz
Senior

Hi,

I am trying to setup an USB HS CDC example with NUCLEO-H7S3L8.

After setting up the projects for both CDC_Standalone and NUCLEO-H7S3L8 board example (for the latter I manually enabled the USB HS Device from CubeMX), I successfully ran each example to run from the external OSPI memory connected to the XSPI2 port.

STM32CubeMX standalone version is 6.13.0, while STM32CubeIDE version is 1.17.0.

STM32H7RS package version is the STM32Cube_FW_H7RS_V1.1.0.

1) I understand that setting up the CDC_Standalone example should result in a working example, but it does not.

2) The USPD interface is an TCPP03-M20, the BSP included in the board example (not the CDC_Standalone example) comes with a driver for this device which I understand it is automatically used by quickly looking at the code, but it seems it is not working neither.

"Not working" means that the USB device is not detected from the PC.

So for both cases, the function USBPD_DPM_Run() called into the main while loop hangs the execution of the firmware.

Is this behavior a known issue?

Is it needed some manual modification I am not aware of?

Thanks in advance for any hint.

s.

EDIT: I have attached the ioc file I am using.

 

2 REPLIES 2
Dor_RH
ST Employee

Hello @simo zz,

Have you tried the following application CDC_Standalone available in STM32CubeH7RS :

It includes an .ioc file and could be useful for your implementation.

I hope my answer has helped you. When your question is answered, please select this topic as solution that answered you, it will help others find that answer faster.

Thanks for your contribution.

Dor_RH

Hello @Dor_RH,

The CDC_Standalone ioc I am using is already taken from the STM32CubeH7RS pack, saved to a custom home directory to do not "contaminate" the original one provided with the pack.

I have the feeling that the example is incomplete and wrong for setting up the USB HS.

For example, looking at the board schematics, TCPP03 is connected to ADC1 INP6 PF12, while the original CDC_Standalone  ioc enables INP0 on PA0.

Also, TCPP03 is connected to I2C3, while the original CDC_Standalone ioc file uses I2C2.

These are not the only differences between schematics and ioc file..

s.