cancel
Showing results for 
Search instead for 
Did you mean: 

Systick does not generate IRQ - STM32G0

JR2963
Senior II

Hi,

I have made a custom bootloader. When I jump to application so very often (not always!) the systick in app does not generate interrupt. I checked the Systick - yes systick ticks and is running. For sure I added in main.c:

NVIC_DisableIRQ(SysTick_IRQn);
NVIC_ClearPendingIRQ(SysTick_IRQn);
NVIC_EnableIRQ(SysTick_IRQn);

Any idea please?

2 REPLIES 2

Check if you don't run the application from within an interrupt. 

Some generic "interrupt does not fire" checklist here.

JW

Adrian Chmiel
Associate

I had this problem several times, problem mostly time is with BOOT0 pin.

Probably in your design it is connected to something and forces a change of the interrupt vertor table address.

Please check SCB_VTOR registry, should point to flash memory (not System memory of SRAM).

You can dissable checking BOOT0 pin by unchecking Option Bytes in STM32CubeProgrammer
Option Bytes -> User Configuration -> unCheck "nSWBOOT0"

Good luck!