Is _sbrk generated by stm32cubeide incompatible with FreeRtos?
Hello!
Stm32CubeIde generated _sbrk(int incr) function for me. Also I need to use FreeRtos.
_sbrk checks heap not to overcome stack pointer.
if (heap_end + incr > stack_ptr)
{
errno = ENOMEM;
return (caddr_t) -1;
}
But FreeRtos allocates stacks for every task from the heap. So eventually some stack pointer of a task that is going to allocate memory, will be smaller than the heap_end.
I know how to deal with it. But as this file is auto-generated, I ask you to repair this in the next releases of Stm32CubeIDe.
I use stm32F22RET6 MCU.
Stm32CubeIde 1.4.0
