1

I created a new STM32CubeIDE project for the STM32F030CC mcu. I added a GPIO output port on PA8 to enable/disable an LED. Now I tried to delay the toggle by calling HAL_Delay. But my problem is, that the interrupt SysTick_Handler does not get called.

I am a bit stuck since I found no working solution. Do I need to set up the systick interrupt myself? Or has someone a sample project which works with the STM32F030CC?

enter image description here enter image description here enter image description here

Pascal
  • 2,175
  • 4
  • 39
  • 57
  • 1
    How do you know your the 'SysTick_Handler' is not called? What 'TimeBase Source' (under SYS) is selected? Where did you call the 'HAL_Delay'? – theSealion Jun 17 '19 at 07:16

1 Answers1

0

i used STM32Cube for stm32f103, and set like your config and it worked correctly there isn't need to set up the systick interrupt yourself did you debug your code? if this lines occur

  HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000U);
  HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority ,0U);

your systick should start with 1ms clock these code are in HAL_InitTick(TICK_INT_PRIORITY); and it call by HAL_Init();