Memory usage of FreeRTOS example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Memory usage of FreeRTOS example

2,079 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by remcopoelstra on Fri Nov 21 07:23:06 MST 2014
Hi,

I'm using an LPC11A12 (4kB RAM) and compiled the FreeRTOS blinky example. Works great, but the size of the executable is reported as:
text   data    bss    dec    hexfilename
   6368     36   3392   9796   2644nxp_lpcxpresso_11u37h_freertos_blinky.axf

As (static) RAM usage is data+bss in size, does this mean that blinking three LED's takes up almost all memory?
I suppose I also need some stack and heap to create the actual tasks, so that leaves little room for communication buffers etc.

Thanks in advance.

Kind regards,

Remco Poelstra
0 Kudos
2 Replies

992 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by remcopoelstra on Mon Nov 24 02:37:03 MST 2014
Many thanks! This really saved my day.

Regards,

Remco Poelstra
0 Kudos

992 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by www.FreeRTOS.org on Sat Nov 22 03:48:46 MST 2014
Please see the FAQ "Why does my compiler tell me FreeRTOS is consuming all available RAM" - http://www.freertos.org/FAQMem.html#RAMUse2
0 Kudos