2024-05-13 07:35 AM - edited 2024-05-13 07:36 AM
Using TIMER4 - CH1 as PWM generator with DMA1 - Channel1 (memory to peripheral, circular mode, Half Word), the code generation produces this output in file tim.c:
where (see red arrow) it uses DMA_REQUEST_TIM1_CH1 instead of DMA_REQUEST_TIM4_CH1.
Obviously, this way the PWM function doesn't work properly. By manually changing the value, it works fine!
I've tested the same settings on different timers but seems that only TIMER4 is affected.
Has anyone else noticed the same problem?
Solved! Go to Solution.
2024-05-14 04:08 AM
Hello @Jack_BBass ,
Further to your comment, thank you for reporting this issue.
I've been able to reproduce it and I've reported to the Dev Team for correction (under internal ticket number 181323 ).
Thanks.
Mahmoud
2024-05-13 07:39 AM - edited 2024-05-13 07:42 AM
Hello @Jack_BBass ,
First let me thank you for posting and welcome to the ST Community.
I suggest that you provide the MCU Commercial part Number.
Thanks.
Mahmoud
2024-05-13 11:37 PM
Sure, the MCU is STM32G0B1KCU6.
2024-05-14 04:08 AM
Hello @Jack_BBass ,
Further to your comment, thank you for reporting this issue.
I've been able to reproduce it and I've reported to the Dev Team for correction (under internal ticket number 181323 ).
Thanks.
Mahmoud