Using OnePulse mode with Repetition Counter on STM32G4 HRTIM
I have an application which I prototyped on an STM32L476. It works fine, but I need to move up to an STM32G4 since I need extra processing power. I am driving the ADCs quite fast (5.35MHz) and need to use HRTIM to get the sampling times right (sampling the video output from an old TMS9928 chip...).
On the L476 I've been able to use several timers in OnePulse mode, and the one which clocks the ADCs is set up in OnePulse with RepetitionCounter=0xff. In this way I get a total of 256 samples per rising edge on the trigger input.
I've been trying to achieve the same on the G474, but with no success. I can get HRTIM1 to produce a single pulse in response to an edge on EEV1, but it ignores the repetition count. Is this supposed to work? If not, is there another way of achieving the result I'm looking for? I'm guessing either SYNC or Burst mode might work, but I've got to get my head around them, and I need to be sure they don't introduce any jitter.
And yes, I am using the HAL.
Any pointers gratefully appreciated. I've tried every combination of HAL_HRTIM_xxxStart I can think of to no avail. I just want to know if it's worth continuing to bang my head against this or if it's a waste of time.
Thanks