cancel
Showing results for 
Search instead for 
Did you mean: 

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.

WTom
Associate III

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;

0 REPLIES 0