MotionFX Flash and RAM Size Problem
I would like to use the MotionFX Library from the X-CUBE-MEMS1 package in a project on a STM32WL55JC.
The datasheet of the library states the following:
- Cortex-M4: 44.1 kB of code and 1.1 kB of data memory
I have already written a library for another application that converts my data for the MotionFX library and returns me the filtered values (Similar to User Manual UM2220, page 14). Before I include this, I have 8.66 KB of free RAM and 38.91 KB of free Flash. When I add the functions with the MotionFX Lib, I get the following errors:
- FLASH overflowed by 4336 bytes
- RAM overflowed by 3200 bytes
Now my questions:
- Is Code Size == Flash Size ?
- Is it possible to reduce the required RAM & Flash size by the MotionFx Library by changing the compiler settings?
- Why does the real required RAM & Flash size differ from the values given in the user manual?
- Is there generally an approach to reduce the size of the library for my application (simple Kalman filter, no calibration of the IMUs) by omitting something?
Best regards.
