Does freertos define a software timer, does the system consume heap or stack resources?
What is the upper limit?
YES, Freertos defined a software timer, it needs RAM. The RAM can be automatically dynamically allocated from the RTOS heap within the RTOS API object creation functions, or it can can be provided by the application writer
Please refer to below link, I hope it helps