cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 incorrect svd file

dungeonlords789
Senior III

I enable counter by __HAL_TIM_ENABLE(&htim17);

and I see in debugger that PSC register incrementing, not CNT. CNT is always zero. Are the registers messed up?

Settings are from CubeIDE 1.41 with stm32wb pack 1.8:

static void MX_TIM17_Init(void)

{

 /* USER CODE BEGIN TIM17_Init 0 */

 /* USER CODE END TIM17_Init 0 */

 /* USER CODE BEGIN TIM17_Init 1 */

 /* USER CODE END TIM17_Init 1 */

 htim17.Instance = TIM17;

 htim17.Init.Prescaler = 0;

 htim17.Init.CounterMode = TIM_COUNTERMODE_UP;

 htim17.Init.Period = 65535;

 htim17.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;

 htim17.Init.RepetitionCounter = 0;

 htim17.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;

 if (HAL_TIM_Base_Init(&htim17) != HAL_OK)

 {

   Error_Handler();

 }

 /* USER CODE BEGIN TIM17_Init 2 */

 /* USER CODE END TIM17_Init 2 */

}

0693W000003BsbtQAC.png0693W000003BsbyQAC.png

13 REPLIES 13
dungeonlords789
Senior III

I check for TIM17. SVD files by @Imen Ezzine​ is correct. But in 1.9.0 pack there are old SVD files.

@Christophe Arnal​ 

It's time to make true order with stm32wb!

0693W00000GWslOQAT.jpg

Imen Ezzine
ST Employee

Hi dungeonlords789,

Thank you for your feedback!

We are always trying to enhance our SVD quality and we will make sure to take this into consideration for our next release.

Regards,

-Imen

Also check RTC registers!

0693W00000GWyQlQAL.png