STM32F401RE, FreeRTOS: osErrorISR returned by osKernelInitialize(), osThreadNew(), osKernelStart()

The wrappers (looks like maybe CMSIS wrapper) are not provided by FreeRTOS, but typically by the chip manufacturer. As such, it is hard to supply support for them here, as there are many versions of them, none that are provided here.

My first guess on the issue is that FreeRTOS disables the interrupts before the scheduler starts, and depending on the type of machine you are on, that disabling can look like you are in an ISR, and that could confuse IS_IRQ().