FreeRTOS with STM32 and going into STOP mode

I am not familiar with the STOP mode exactly but from the FreeRTOS prescriptive, you are essentially stopping everything and then doing a reset which will start everything fresh, right? If so, it should work - just remember to mask all other interrupts including the tick interrupt so that the MCU does not wake up unnecessarily.

This should be achievable with tickless idle.