Memory and flash requirements for Sensor Fusion

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

Memory and flash requirements for Sensor Fusion

1,369 Views
heelcurve5
Contributor II

I'm using a board with CPU/Flash/RAM that is similar to the Kinetis platforms:

48Mhz ARM CPU,128 KB flash and 16 KB SRAM

However the operating system takes up most of that

My build (without the Sensor Fusion library) produces the following message:

Flash used: 114033 of 131072 bytes (87.0 %).
SRAM used: 14144 of 16384 bytes (86.3 %). Stack: 2048 bytes. Heap: 1024 bytes.

Is what I have left that enough to run sensor fusion e-Compass algorithm ?

Thank you

Andy

0 Kudos
1 Reply

1,152 Views
darioarias
NXP Employee
NXP Employee

Hi Andrew,

I picked as an example the project FSFK-K64F for the sensor fusion and after compiling it gave me the following results.

     text       data        bss        dec             hex    filename
  79244         64      20708     100016      186b0    FSFK_K64F.elf

The flash memory or the SRAM are not nearly enough for running e-Compass Algorithms, my recommendation would be to strictly pick only what you need from the code, because this code is meant to run a GUI that shows the values of the sensor in real time.

Darío

0 Kudos
%3CLINGO-SUB%20id%3D%22lingo-sub-683307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMemory%20and%20flash%20requirements%20for%20Sensor%20Fusion%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI'm%20using%20a%20board%20with%20CPU%2FFlash%2FRAM%20that%20is%20similar%20to%20the%20Kinetis%20platforms%3A%3C%2FP%3E%3CP%3E48Mhz%20ARM%20CPU%2C128%20KB%20flash%20and%2016%20KB%20SRAM%3C%2FP%3E%3CP%3EHowever%20the%20operating%20system%20takes%20up%20most%20of%20that%3C%2FP%3E%3CP%3EMy%20build%20(without%20the%20Sensor%20Fusion%20library)%20produces%20the%20following%20message%3A%3C%2FP%3E%3CP%3EFlash%20used%3A%20114033%20of%20131072%20bytes%20(87.0%20%25).%3CBR%20%2F%3ESRAM%20used%3A%2014144%20of%2016384%20bytes%20(86.3%20%25).%20Stack%3A%202048%20bytes.%20Heap%3A%201024%20bytes.%3C%2FP%3E%3CP%3EIs%20what%20I%20have%20left%20that%20enough%20to%20run%20sensor%20fusion%20e-Compass%20algorithm%20%3F%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3EAndy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Memory%20and%20flash%20requirements%20for%20Sensor%20Fusion%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Andrew%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20picked%20as%20an%20example%20the%20project%20FSFK-K64F%20for%20the%20sensor%20fusion%20and%20after%20compiling%20it%20gave%20me%20the%20following%20results.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20text%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20data%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20bss%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20dec%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20hex%26nbsp%3B%26nbsp%3B%20%26nbsp%3Bfilename%3CBR%20%2F%3E%26nbsp%3B%2079244%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2064%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%2020708%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20100016%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%20186b0%26nbsp%3B%26nbsp%3B%20%26nbsp%3BFSFK_K64F.elf%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThe%20flash%20memory%20or%20the%20SRAM%20are%20not%20nearly%20enough%20for%20running%20e-Compass%20Algorithms%2C%20my%20recommendation%20would%20be%20to%20strictly%20pick%20only%20what%20you%20need%20from%20the%20code%2C%20because%20this%20code%20is%20meant%20to%20run%20a%20GUI%20that%20shows%20the%20values%20of%20the%20sensor%20in%20real%20time.%3C%2FP%3E%3CP%3EDar%C3%ADo%3C%2FP%3E%3C%2FLINGO-BODY%3E