2023-09-04 09:43 PM
Hi guys, Can anyone list out a few steps which need to be followed for bare-metal code generation of using Timer in DMA for PWM generation.
Thanks!
2023-09-07 04:42 AM
HAL stuff is hard to read and get through, but (most of) it works.
So you just need lots of concentration and perseverance...
When starting from scratch:
- read the RM
- "collect" relevant registers
- start simple: no settings, just a fixed frequency & duty cycle square
- then add stuff...
PS: DMA is one of the few things I use HAL, many of the HAL_DMA_Start functions are quite "slim" compared to the normal HAL stuff
2023-09-08 01:51 AM - edited 2023-09-08 01:51 AM
Which STM32?
> I also tried developing code through registers but in that the PWM is not generating.
Show.
JW
PS. +1 to what @LCE wrote above.