Question
HardFault with USB CDC ??
Posted on July 21, 2016 at 20:32
Hi.
When I send data out via USB, the program goes to HardFault. I found out that this happens when the function below is executed:USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev)
{
if(pdev->dev_state == USBD_STATE_CONFIGURED)
{
if(pdev->pClass->SOF != NULL)
{
pdev->pClass->SOF(pdev);
}
}
return USBD_OK;
}
This function is defined in usbd_core.c file. Has anyone an idea what could go wrong here?
Thanks