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-04 10:17 PM
Hi,
I am not sure if it will answer your query properly but I think this Timer + DMA + PWM might help you.
2023-09-04 10:45 PM
Hi thanks but i am looking for Bare-Metal approach of code rather than using HAL Libraries. Because in the reference manual there are no clear step for using Timer DMA
2023-09-05 06:43 AM
2023-09-05 08:52 PM
Hi sarra, thanks but the thing is i am able to generate PWM using timers but not using timer DMA. If you can help me that !
2023-09-05 09:07 PM
Hello @DJ1
This tutorial (guide + vidéo) is downing exactly what you are looking for.PWM with DMA in STM32.
Best regards.
II
2023-09-05 10:18 PM
You can always explore the HAL function to know what they are doing that you need to do for bare metal to work.
2023-09-06 12:49 AM
I made some examples in LL_ instead of HAL_ is LL_ ok for you or not "Bare metal" enough?
2023-09-06 07:09 AM - edited 2023-09-06 07:16 AM
What *exactly* do you want to do? Details matter.
On what STM32?
What do you already have?
JW
PS. Maybe have a look at "breathing" demo (table-driven version, as the other one is slightly crazy) here.
2023-09-07 01:43 AM
Hi, so the thing is earlier i tried on how to increase the clock frequency using PLL through bare metal coding/scratch. Now i want to use timers for generating PWM using DMA. So what would be the steps to follow for using PWM with DMA that to coding from scratch/using register without using HAL libraries. I went through the HAL_TIM_PWM_Start_DMA function but could not get much through it.
I also tried developing code through registers but in that the PWM is not generating.