2021-02-10 08:25 AM
2021-04-14 08:52 AM
Hi CDami.1 (Community Member),
Please check the example provided for STM32G4 Cube library (download it as update in STM32CubeMX):
"\Repository\STM32Cube_FW_G4_V1.4.0\Projects\NUCLEO-G474RE\Examples\TIM\TIM_DMA"\
There is TIM DMA example: DMA is changing the duty cycle - which can be adopted to sinewave generation.
Regards
Igor
2021-04-14 09:37 AM
That was the first thing I tried, but the example does not compile. Anyhow, I found the solution to my problem; the DMA should be configured as word instead of halfword.