"some features do not work" They usually should. Can you explain a bit more what does work and what not?
Ther might be a conflict with em_eeprom component or with the flash functions.
Is there a chance that you post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
The two most likely issues are the emulated EEPROM and writing to flash space as user_1377889 mentioned. (Both use flash space)
Can you list which features/functions fail above 90% flash usage?
It could always be an unrelated effect: Stack overflow, heap overflow, etc.
i'm not using the emulated EEPROM but i'm writing some information to the flash space.
The function that fails concerns to the I2C communication with an IMU component. No data are read from the slave.
I solved my problem by decreasing the size of some buffer (not involved in the I2C communication) that are oversized. Now everything goes well. But I did not understand where my problem has origin!!
Is it possible that my problems are related with RAM usage? stack undersized??
Before buffer size decreasing, I tried to detect stack usage by compiling with -fstack_usage instruction and I obtained for the main.su:
>>main.c:54:5:main 3120 static
My stack is 2048 bytes. Does that mean stack overflow??
Thank you for your precious help!
Sounds like stack overflow