Sizeof assertion fails when calling xTimerCreateStatic/xTimerCreate

Hello. I am working on a ESP32 project that uses FreeRTOS. When I monitor the program, it boots up the chip, but fails at the point where I call xTimerCreate or xTimerCreateStatic. By analysing the backtrace, I’ve found that it fails this assertion (github dot com/FreeRTOS/FreeRTOS-Kernel/blob/0452603a943e13d27e7117f7112c4dd000748705/timers.c#L387).

I also tried increasing the configTIMER_TASK_STACK_DEPTH from 2048 to 4096, but to no avail.

I’m left confused by this behavior. Help with is very much appreciated.

Turns out I was using a very low value for thexTimerPeriodinTicks argument. It seems that I set the time period to be 1 millisec, so I passed pdMS_TO_TICK(1) as the argument to this parameter. And I think this was being translated as 0 ticks.

Thank you for sharing your solution!