Well, I suppose the sensor fusion algorithms require a bit of RAM, but I need to check exactly how much. This RAM consumption may very well come from somewhere else
I am not very familiar on this topic yet, but so far I am not using dynamic allocation so heap size should be and is zero
/* Generate a link error if heap and stack don't fit into RAM */
__heap_size = 0x00; /* required amount of heap */
__stack_size = 0x0400; /* required amount of stack */
MEMORY {
m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000000C0
m_text (RX) : ORIGIN = 0x00000410, LENGTH = 0x0001FBF0
m_data (RW) : ORIGIN = 0x1FFFF000, LENGTH = 0x00004000
m_cfmprotrom (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
}
If I remember right, I saw on MCU on eclipse website that you can print specific ram consumption per function. I'll try that to investigate