STM32F411 going into HardFault when task from interrupt is triggered

Thanks for your reply @aggarg

Regarding ucMaxSysCallPriority I detailed the phenomenon it my previous post. (number 15)

I don’t understand what is causing the corruption given the fact that I make no dynamic allocations and my code is reduced to the use of FreeRTOS API and some basic peripherals configuration.

I don’t know if it has any importance but I also have another interrupt TIM1_xxx that start the ADC DMA conversion then the DMA2_Stream0 interrupt notifies the ControlTask.

From a time perspective, the ADC conversion is really fast so it isn’t possible to have each interrupts being called in another order.

I should also point out that I have also based my code on the sole usage of interrupts and it works just fine. I mean with the same functions I never had data corruption.