I use STLink-v2 to debug the original odrive source code pulled from github .it always goes into Default_Handler when execute function prvPortStartFirstTask().
The FreeRTOS takes the first task by SVC ISR,and the “SVC 0” inline assembler statement didn’t call vPortSVCHandler() in port.c but the Default_Handler in startup_stm32f405xx.s.
I’m sure that the “SVC 0” leads the problem,because the ISR_NUMBER in IPSR is 11.
What can I do to make the program to run?
Any suggest would be appreciated!
Set tup.config
CONFIG_DEBUG=true
and CONFIG_USE_LTO=false