Skip to main content
MSchl.2105
Associate II
Jul 25, 2021 4:38 PM UTC
Question

Using STM32CubeMX to make a DFU bootloader, I want to light a LED whenever USB packets are exchanged, to indicate that a DFU binary is being transferred. ...but I can't find the right callback to place my HAL_GPIO_WritePin. What is the callback to u

..

This topic has been closed for replies.

1 reply

MSchl.2105
Associate II
Jul 25, 2021 4:54 PM UTC

I'm finding methods like EP0_TxSent and USBD_LL_DataInStage, but I'm not finding a simple interrupt or callback to indicate 'a USB data packet was sent or received.'

I want to implement that interrupt and blink my GPIO connected LED inside it.