Hardfault caused by xPortStartScheduler on STM32F4

I use cubemx to generate this project, so I should all use cmsis API?