STM32 Systick function call fails
Posted: Tue Feb 18, 2020 2:53 pm
Hey there!
We are using ChibiOS with nanoFramework on a custom STM32F427 based MCU board. Now we face the problem that the software blocks at random times and triggers a hardware reset. Everytime the software freezes, we are in the timer handler, which is used for the systick. The disassembly revealed, that we branch to a register which contains a null pointer and then run into a usage fault.
The corresponding code is at line 430 in /os/rt/include/chvt.h
/* The callback is invoked outside the kernel critical zone.*/
chSysUnlockFromISR();
fn(vtp->par);
chSysLockFromISR();
Any ideas why this happens?
We are using ChibiOS with nanoFramework on a custom STM32F427 based MCU board. Now we face the problem that the software blocks at random times and triggers a hardware reset. Everytime the software freezes, we are in the timer handler, which is used for the systick. The disassembly revealed, that we branch to a register which contains a null pointer and then run into a usage fault.
The corresponding code is at line 430 in /os/rt/include/chvt.h
/* The callback is invoked outside the kernel critical zone.*/
chSysUnlockFromISR();
fn(vtp->par);
chSysLockFromISR();
Any ideas why this happens?