STM32G4 dithering + DMAR + 16bit access
There is glitch when accessing timer registers using DMA
- Halfword memory to halfword peripheral DMA transfer
- DMA target is TIM15->DMAR, configured to write ARR register.
- TIM15 dithering enabled
Under these conditions, bits from ARR[3:0] will end up in ARR[19:16] and will be used as part of timer period.
Using word (32bit) transfer destination fixes this problem. This behavior is undocumented and it does take some time to find it.
