How many threads I can create.

Hi. My application has aproximately 8 thread and it is running ok, but if I put the 9th thread it hangs. Has freertos a variable to configure the total threads that I can create? Best regards. Paulo

How many threads I can create.

Do you have enough RAM to hold all the threads stacks? Have you checked xTaskCreate return value?

How many threads I can create.

> Has freertos a variable to configure the total threads that I > can create? No you can continue to create tasks until you run out of heap RAM. Which memory file are you using? Heap_1 and heap_2 are sized using configTOTAL_HEAP_SIZE in FreeRTOSConfig.h.

How many threads I can create.

I am using heap_2, and all of you are right, I decreased the amount of stack to the new thread and it was created without a problem. So my problem is not enough memory. Thak you all. Paulo