Skip to main content
Associate
May 13, 2024
Solved

STM32CubeIDE 1.15.1 code generation problem

  • May 13, 2024
  • 1 reply
  • 2093 views

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?

 

 

    This topic has been closed for replies.
    Best answer by Mahmoud Ben Romdhane

    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

    1 reply

    Technical Moderator
    May 13, 2024

    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

     

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
    Associate
    May 14, 2024

    Sure, the MCU is STM32G0B1KCU6.

     

    Technical Moderator
    May 14, 2024

    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

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.