AnsweredAssumed Answered

Reducing RAM consumption on KL26Z with sensor fusion

Question asked by Remi Beges Employee on Aug 20, 2015
Latest reply on Aug 20, 2015 by Erich Styger

I started developing with the sensor fusion library on a KL26Z, added just a portion of code but I am already hitting limits in terms of RAM usage.


By building the example project FSFK_KL26Z, I printed code size information and RAM occupation (data + bss) is 15616 bytes. But the KL26Z limit is 16kB of RAM so that does not leave much space for my application.


'Invoking: Cross ARM GNU Print Size'

arm-none-eabi-size --format=berkeley -x --totals "FSFK_KL26Z.elf"

   text   data    bss    dec    hex filename

0x1569c   0xa0 0x3c60 103324  1939c FSFK_KL26Z.elf

0x1569c   0xa0 0x3c60 103324  1939c (TOTALS)

'Finished building: FSFK_KL26Z.siz'


Are there any compiler options I can select to drastically reduce RAM consumption ?

Or should I target another processor such as KL46Z instead ?


Thank you