Skip to main content
Visitor II
July 15, 2021
Solved

STM32H7 USB Full Speed SOF interrupt. I used the CDC class as a template to implement a cusom vendor class. It seems to me that the Start of Frame interrupt never fires. How do I enable it?

  • July 15, 2021
  • 1 reply
  • 1469 views

I am attempting to send data in bulk, 64 bytes at a time for every SOF interrupt, however I don't see how to enable the interrupt.

I attempted defining USE_HAL_PCD_REGISTER_CALLBACKS as 1, but that doesn't seem to trigger the SOF interrupt.

    This topic has been closed for replies.
    Best answer by Walid ZRELLI

    Hello @NBaro.1​ ,

    You need to set the hhcd.Init.Sof_enable parameter to 1 in the usbd_conf.c file to enable the sof interrupt.

    Please let me know if this solved your problem.

    BeST Regards,

    Walid

    1 reply

    Visitor II
    July 29, 2021

    Hello @NBaro.1​ ,

    You need to set the hhcd.Init.Sof_enable parameter to 1 in the usbd_conf.c file to enable the sof interrupt.

    Please let me know if this solved your problem.

    BeST Regards,

    Walid