I've the same error. I tried to debug, what should be the problem, and I found the location of error in port.c prvPortStartFirstTask() function. Unfortunately it is an assembler function. I think so it is a stack problem,:
__asm volatile(
" ldr r0, =0xE000ED08 " /* Use the NVIC offset register to locate the stack. */
" ldr r0, [r0] "
" ldr r0, [r0] "
" msr msp, r0 " /* Set the msp back to the start of the stack. */
" mov r0, #0 " /* Clear the bit that indicates the FPU is in use, see comment above. */
" msr control, r0 "
" cpsie i " /* Globally enable interrupts. */
" cpsie f "
" dsb "
" isb "
" svc 0 " /* System call to start first task. */
" nop "
);
my fw version is 1.25.0. I tried with 1.24.0 also.
And finally I found this:
https://community.st.com/s/question/0D53W00000EmtEASAZ/stm32f407gdisc1-the-project-template-doesnt-work-with-rtos-stm32cubemx-60-lib-125
and that is the solution.