While searching for the reason for a hard fault (STM32F4) I found a program path in which the infinite loop has no vTaskDelay().
It was not my intention, and I added a short delay in the loop.
This stopped my hard fault interrupt, and the program works OK now.
Whoever, I suspect that something is wrong. Not having a delay or some wait for queue, should probably consume a lot of CPU time, but should not create a hard fault error.
What should I look for?.