SysTick ISR not firing Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
yusuf.husainy
Posts: 9
Joined: Sat Jan 27, 2018 1:33 am
Has thanked: 4 times
Been thanked: 5 times

SysTick ISR not firing

Post by yusuf.husainy »

Hello All,

Following is my setup:
ChibiOS 18.2.0: os-less
Board: Nucleo144-STM32L496ZG
SYSCLOCK: 80MHz, HSE is enabled, 16MHz Crystal.

Osal tick frequency:
#define OSAL_ST_FREQUENCY 1000

On creating an os-less project, I am unable to get SysTick interrupts. I checked the core peripheral registers value after bootup and halInit() they seem to be correct for 1msec tick.

Attached is the dmp file

Kind request if someone can help to look in the correct direction to reolve why SysTick ISR is not getting fired. The breakpoint never hits. virtual timers created do not get updated.

Thanks :)
Attachments
bootloader_dmp.zip
(5.99 KiB) Downloaded 420 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: SysTick ISR not firing

Post by Giovanni »

Hi,

Make sure to enable interrupts after halInit().

Giovanni
yusuf.husainy
Posts: 9
Joined: Sat Jan 27, 2018 1:33 am
Has thanked: 4 times
Been thanked: 5 times

Re: SysTick ISR not firing

Post by yusuf.husainy »

Thank you, that worked for me.

chSysInit() is the case when RT is built, calls chSysEnable() which will then enable interrupts globally.

For os-less, since chSysInit() is out of the picture, osalSysEnable() was needed to be called after halInit() which enables the global interrupts.
Post Reply