How make the nucleo-h7s3l8 HID device can be detached
I folloe the nucleo-h7s3l8 HID example to create my project (by STM32Cubemx), But it is not work.Pc always didnt detect ny board.
I trace code to here(like the picture) when I use debug tool
In my code ,the CAD_StateMachine_SNK run onec time and _handle->cstate is USBPD_CAD_STATE_DETACHED. It is wrong
I think the USBPD_PWR_IF_GetVBUSStatus need to be called,but my peoject never process USBPD_PWR_IF_GetVBUSStatus. I dont know how to resolve this problem.
Can anybody tell me how to do?Can tell me something that I need to fix my code or cubemx config ?
My code is in the attach
