cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: CubeMX5.3, STM32G474: missing initialization. As a result, CubeMX 5.3 does generate working code for G474.

WTom
Associate III

I'm trying to port some firmware from nucleo-F334 to nucleo-G474 for the HRTIM timers and the CubeMX for G474 for HRTIM1 is not working. I found some missing statement in the initialization.

I found that the CubeMX 5.3 initlization code missing a part; specifically the HRTIM clock initialization where the PLL is defined. There's a related constant that also needs to be defined. In any case can someone confirm the problem and how long it may take to get the updated patch.

G474 clock initialization:

 PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART1;

 PeriphClkInit.Usart1ClockSelection = RCC_USART1CLKSOURCE_PCLK2;

F334 clock initialization:

PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_HRTIM1|RCC_PERIPHCLK_TIM1;

 PeriphClkInit.Tim1ClockSelection = RCC_TIM1CLK_PLLCLK;

 PeriphClkInit.Hrtim1ClockSelection = RCC_HRTIM1CLK_PLLCLK;

Expand Post

1 REPLY 1
WTom
Associate III

I should add that this is only for the HRTIM timers. Would be interested in anyone using the HRTIM timers with G474 and getting success or similar problem; I'm looking into an assembler patch; the other alternative is to continue on the F334 until a bug fix comes through.