Thread limit?
Posted: Sat Sep 13, 2014 2:14 am
Hello,
I wonder if there is any thread limit on Chibios?
I am currently running a 3 thread project on an AVR (ATMEGA328P) with 2k of RAM and wenever I try to activate a fourth thread, it simply does not run at all. If I change initialization position on mainthread, then, the last one is never started.
Unfortunately I am using an ICSP programmer without debug support, so I cannot check any of the Debug messages generated by the OS.
I have checked memory after compilation and the whole project is using 1606 Bytes, so there is still free RAM.
The working area for the threads are (64+64+128+64), but as I've said, if I change thread initialization position, the last one never starts.
Is there any configuration on the chconf.h file that may be affecting this?
Thanks
I wonder if there is any thread limit on Chibios?
I am currently running a 3 thread project on an AVR (ATMEGA328P) with 2k of RAM and wenever I try to activate a fourth thread, it simply does not run at all. If I change initialization position on mainthread, then, the last one is never started.
Unfortunately I am using an ICSP programmer without debug support, so I cannot check any of the Debug messages generated by the OS.
I have checked memory after compilation and the whole project is using 1606 Bytes, so there is still free RAM.
The working area for the threads are (64+64+128+64), but as I've said, if I change thread initialization position, the last one never starts.
Is there any configuration on the chconf.h file that may be affecting this?
Thanks