2016-05-17 04:20 PM
The title says it all.
I'm using the freertos middleware and configured CubeMX to use tim7 as timebase. As a result, CubeMX generates the stm32f3xx_hal_timebase_TIM.c file and in there defines the IRQ Callback void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { HAL_IncTick(); } This is rather unfortunate, though, as without user code I cannot modify it to use other timers as well. Suggestion, change it to: void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { /* USER CODE START 1 */ /* USER CODE END 1 */ if (htim->Instance == TIMxx) { HAL_IncTick(); } /* USER CODE START 2 */ /* USER CODE END 2 */ } And place this at the bottom of the main.c file. Otherwise I cannot include needed headers etc. NOTE: TIMxx is the timer which was selected as timebase. Thanks!2016-05-18 06:53 AM
Hi Valentin,
I will communicate your feedback to our CubeMx team .-Hannibal-2016-06-06 07:41 PM
Thanks a lot!
2016-10-06 08:22 AM
Dear Valentin,
Issue fixed since STM32CubeMX release 4.15.
Best regards
2016-10-24 01:35 PM
Great job!
Thanks for fixing that!