Hardfault caused by xPortStartScheduler on STM32F4

I’m pretty sure that osDelay just wraps vTaskDelay. That shouldn’t cause any problems.
But did you define configASSERT and enabled stack checking ?
See FreeRTOS - stacks and stack overflow checking

1 Like