Skip to main content
NBaro.1
Associate 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
  • 1491 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

Walid ZRELLI
Walid ZRELLIBest answer
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