STM32L4 hardfault error with FreeRTOS after a couple of hours

Hi,

Thank you for the reply. I’ve set the CHECK_FOR_STACK_OVERFLOW TO 2 and configASSERT is already defined.

  /* Set Interrupt Group Priority */
  HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);

The NVIC_PriorityGroupConfig() is also called during the HAL initialisation which runs before the osKernelInitialise() is called.
I will make sure to go through the FAQ to see if I have missed anything else.

Kind regards,
Jona