Integrating ChibiOS to STM32Cube via CMSIS-OS on Nucle F411
Posted: Tue Sep 29, 2015 4:33 pm
Hi Giovanni and ChibiOS users,
I'm trying to integrating ChibiOS in STM32CubeMX on NucleF411RE board. STM32Cube software enable us to integrate RTOS via CMSIS interface, and they included FreeRTOS on that.
I think it will be nice if I can have ChibiOS instead FreeRTOS on my STM32Cube, so I try to use simple SysTick to generate timer event, I configure CH_CFG_ST_TIMEDELTA 0 in chconf.h, and call chibios scheduler from SysTickCallback, but I got chSysHalt with reason "SV#6".
I suppose the error is on my wrong SysTick implementation, and the other is the linker script, cube linker script quite different from chibios script.
This is my SysTick ISR: (cube style ISR callback funtion)
void HAL_SYSTICK_Callback(void)
{
// CH_IRQ_PROLOGUE();
chSysLockFromISR();
chSysTimerHandlerI();
chSysUnlockFromISR();
// CH_IRQ_EPILOGUE();
}
I also attach my debugger screen, I'm using openstm32 ide and I put chibios project code on https://github.com/swiedjaja/Cube-F411RE-ChibiOS
thanks for let me participate on this very interesting rtos software!
I'm trying to integrating ChibiOS in STM32CubeMX on NucleF411RE board. STM32Cube software enable us to integrate RTOS via CMSIS interface, and they included FreeRTOS on that.
I think it will be nice if I can have ChibiOS instead FreeRTOS on my STM32Cube, so I try to use simple SysTick to generate timer event, I configure CH_CFG_ST_TIMEDELTA 0 in chconf.h, and call chibios scheduler from SysTickCallback, but I got chSysHalt with reason "SV#6".
I suppose the error is on my wrong SysTick implementation, and the other is the linker script, cube linker script quite different from chibios script.
This is my SysTick ISR: (cube style ISR callback funtion)
void HAL_SYSTICK_Callback(void)
{
// CH_IRQ_PROLOGUE();
chSysLockFromISR();
chSysTimerHandlerI();
chSysUnlockFromISR();
// CH_IRQ_EPILOGUE();
}
I also attach my debugger screen, I'm using openstm32 ide and I put chibios project code on https://github.com/swiedjaja/Cube-F411RE-ChibiOS
thanks for let me participate on this very interesting rtos software!