Skip to main content
Graduate II
June 19, 2023
Question

Systick does not generate IRQ - STM32G0

  • June 19, 2023
  • 2 replies
  • 1052 views

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?

    This topic has been closed for replies.

    2 replies

    Super User
    June 19, 2023

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

    Some generic "interrupt does not fire" checklist here.

    JW

    Visitor II
    September 1, 2023

    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!