AnsweredAssumed Answered

HardFault with USB CDC ??

Question asked by obid.matic on Jul 21, 2016
Latest reply on Jul 22, 2016 by Clive One

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)
  return USBD_OK;


This function is defined in usbd_core.c file. Has anyone an idea what could go wrong here?