STM32F1x: SV#8 error in systick ISR
Posted: Thu May 10, 2018 2:13 pm
Hi,
I'm in the process to port one of my projects from ChibiOS 16.x to 18.x. I've enabled the debugging runtime-checks to hunt down possible bugs in my code base. Unfortunatly, whenever a thread sleeps it triggers SV#8 in the systick timer ISR.
Changing the timer or its IRQ priority doesn't help. And neither does reducing the code to the bare minimum (no devices active except PAL, no compiler optimizations, only main thread running, etc..). The clock settings seem to be correct too (TIMCLK[1,2] = 24 Mhz, CH_CFG_ST_FREQUENCY=5000).
Has someone any idea what I'm missing?
best regards,
greb
*edit: I forgot to mention that I run ChibiOS in tickless mode
I'm in the process to port one of my projects from ChibiOS 16.x to 18.x. I've enabled the debugging runtime-checks to hunt down possible bugs in my code base. Unfortunatly, whenever a thread sleeps it triggers SV#8 in the systick timer ISR.
Changing the timer or its IRQ priority doesn't help. And neither does reducing the code to the bare minimum (no devices active except PAL, no compiler optimizations, only main thread running, etc..). The clock settings seem to be correct too (TIMCLK[1,2] = 24 Mhz, CH_CFG_ST_FREQUENCY=5000).
Has someone any idea what I'm missing?
best regards,
greb
*edit: I forgot to mention that I run ChibiOS in tickless mode