AnsweredAssumed Answered

CubeMX and SysTick

Question asked by carpenter.adrian on Feb 2, 2018
Latest reply on Feb 5, 2018 by dhenry

Why does CubeMX generate the following lines in SystemClock_Config if the HAL timer is set to anything other than SysTick?

 

HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000);

/**Configure the Systick
*/
HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK);

/* SysTick_IRQn interrupt configuration */
HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);

 

I'm having to comment these lines out as they are interfering with my code and they shouldn't be there in my opinion.

Outcomes