2020-07-31 07:43 PM
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 */
}
2020-11-02 05:17 PM
I check for TIM17. SVD files by @Imen Ezzine is correct. But in 1.9.0 pack there are old SVD files.
@Christophe Arnal
2021-11-08 10:04 PM
It's time to make true order with stm32wb!
2021-11-09 06:31 AM
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
2021-11-09 08:14 AM
Also check RTC registers!