Systick_Handler doesn't called

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

DkAlex
Posts: 1
Joined: Wed Sep 05, 2018 4:15 pm

Systick_Handler doesn't called

Postby DkAlex » Wed Sep 05, 2018 4:32 pm

Hi,
I'm Working on a custom board equiped with STM32F429.
I Would like to make a simple periodical task in a first time.
The problem is not to create this function but I think that the Systick_Handler is not called (I tested with a breakpoint).

I configure the Systick as below in the main.c:

Code: Select all

/**Configure the Systick interrupt time
    */
  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);


And I put a breakpoint in the Systick_Handler() in stm32f4xx_it.c (generated by cube Mx):

Code: Select all

void SysTick_Handler(void)
{
  /* USER CODE BEGIN SysTick_IRQn 0 */

  /* USER CODE END SysTick_IRQn 0 */
  HAL_IncTick();
  HAL_SYSTICK_IRQHandler();
  GRAPHICS_IncTick();
  /* USER CODE BEGIN SysTick_IRQn 1 */

  /* USER CODE END SysTick_IRQn 1 */
}


Nothing happens and the program run in the main task without passing through SysTick_Handler.
Is there another things to do after configuration to activate the IT ?

Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: No registered users and 0 guests