I used Cubemx to generate a project which contain FreeRTOS(V10.0.1) and emWin for STM32F429 board.
In this project I created two tasks, one is for GUI and the other is for Touch Screen. I used TIM2 for STM32 timebase and left SysTick for FreeRTOS.
The issue is everytime when I run this project, it will run into HardFault_Handler. Then I check the caller stacks and find the caller is xPortPendSVHandler (as showed in attached image).
I’m not sure what reasons may cause this issue. Can you give me some hints or suggestions about debugging this issue? Thank you.
I just solve the problem by enlarge the stack size from 128byte to 20kbyte. This solution is the same as the 2nd suggestion in the FAQ link you provide. I will follow the suggestions in this link next time when I face a FreeRTOS issue.