STM32H743, USB2 SOF events happen normally or at twice the expected rate.
I have designed an audio device based on a STM32H743 MCU. For synchronization purposes I need to be able to count incoming USB frames.
To achieve this, I use TIM5 in slave mode, with ITR8 as its trigger.
The results are puzzling. I am getting either 1000 SOFs per second (as expected) - or 2000.
The behavior is specific to a particular MCU. I have 12 boards, all running the same code. Five count SOFs correctly and seven at twice the expected rate. Reflashing a MCU, even after a full chip erase, makes no difference.
The markings on all the processors are identical.
What might be going on? Any ideas?
