cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 jumps to SysTick_Handler when interrupts are enabled

mstolpe_nloop
Visitor

The STM32WB55 it will jump to the SysTick_Handler interrupt handler routine after we have configured the clocks and the RTC and then enable the interrupts. I don't understand why this is happening. I have checked the following registers:

  • SysTick->CTRL->CLKSOURCE is set to processor clock
  • SysTick->CTRL->TICKINT is disabled
  • SysTick->CTRL->ENABLE is active

Shouldn't the interrupt have been disabled by setting SysTick->CTRL->TICKINT to '0'?

1 REPLY 1
TDK
Guru

When it's at SysTick_Handler, look at the VECTACTIVE field in SCB->ICSR to determine what interrupt the processor is in. Subtract 16 and compare to the values in IRQn_Type.

Note that systick gets enabled in HAL_RCC_ClockConfig.

 

Where are CLKSOURCE and ENABLE getting set but TICKINT is not?

If you feel a post has answered your question, please click "Accept as Solution".