Has anyone had any success generating sinusoidal PWM with DMA, on STM32G474? The same code that I implemented on a STM32F series does not work. Also, the ST example for this board, related to this topic, TIM_DMA, does not run as it has binaries missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-10 8:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-14 8: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-04-14 9: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.
