FreeRTOS in 344 bytes

ujush wrote on Friday, July 23, 2010:

Hi,

Is it possible that the FreeRTOS Kernel configuration can be reduced into 344 bytes? Did someone already had a configuration on this? Please, could you share your idea?

Thanks a lot.

davedoors wrote on Friday, July 23, 2010:

You have 344 bytes total, or just 344 bytes left for the kernel?
Are you running an 8, 16, or 32 bit processor?
Which compiler are you using?
Are you expecting to get the task stacks into that 344 bytes too?

There is no way anybody can answer this question without the above information.

ujush wrote on Monday, July 26, 2010:

Q. You have 344 bytes total, or just 344 bytes left for the kernel?
A. just a 344 bytes total for the kernel
Q. Are you running an 8, 16, or 32 bit processor?
A. 32 bit processor
Q. Which compiler are you using?
A. Keil IDE
Q. Are you expecting to get the task stacks into that 344 bytes too?
A. Yes

Thanks.

richard_damon wrote on Monday, July 26, 2010:

It might be nice to know the processor, but my first guess is somehow you don’t have enough processer.
For a 32 bit processor, 344 bytes is just 86 32 bits words.  It may be possible to get FreeRTOS down that small, but probably only in a toy configureration, but I am not sure.

What are you expecting to get done in this configuration?
I hope the processor has significantly more memory (most 32 bit processors do), what else is using up all that memory, and what is the chances to adjust things to get more for the program?

ujush wrote on Tuesday, July 27, 2010:

The processor is LPC1768, i try to reduce the value of configTotal_Heap_Size but still the total is in the range of  1KB.
Because i have read in a blog that the freertos kernel can have a minimum size of 344 bytes. So i’m amaze about it and i wanted to know on how to configure the OS to get that RAM value; and were planning to use the freertos for our development.