2023-06-19 07:31 AM - last edited on 2023-06-27 01:58 AM by Amel NASRI
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?
2023-06-19 03:00 PM
Check if you don't run the application from within an interrupt.
Some generic "interrupt does not fire" checklist here.
JW
2023-08-31 11:25 PM
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!