cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE 1.15.1 code generation problem

Jack_BBass
Associate II

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:

 

Test01.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3
Mahmoud Ben Romdhane
ST Employee

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

 

Sure, the MCU is STM32G0B1KCU6.

 

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