Associate II
March 12, 2024
Question
For STM32H563IIK6 USB Virtual configuration hanging in the code.
- March 12, 2024
- 2 replies
- 1676 views
On Cubex Generated code, we added Virtual Com Port code.
But the code is going to Hard fault handler in USB_ActivateEndpoint.
HAL_StatusTypeDef USB_ActivateEndpoint(USB_DRD_TypeDef *USBx, USB_DRD_EPTypeDef *ep)
{
HAL_StatusTypeDef ret = HAL_OK;
uint32_t wEpRegVal;
wEpRegVal = PCD_GET_ENDPOINT(USBx, ep->num) & USB_EP_T_MASK;
Please can you suggest any thing is wrong.