Hi Tomas,
I too have a similar problem when I try to read data from the mpl3115a2. I get values in the range of 25394.xx-35111.xx meters even I I try to configure the mpl to altitude mode like you suggested. It seems like non of the configuration process is being picked up by the sensor. I am able to read from the sensor but I cant get it to output appropriate altitude values. When I display values on terminal, I see the values fluctuation at a very fast rate.
I am using Tiva C MCU with code composer studio compiler, and all the codes are written using registers (my own libraries). I have test my code on other sensors (MPU 6050) and I am able to configure the devices properly and read but I just cant seem to have this device configured properly.
void configure_PressureSensor(void)
{
//system mode register
write_pressureSensor(0x11, 0x00);
// Active barometer mode, OSR = 128
//write_pressureSensor(0x26, 0x39);
//* Set to Altimeter with an OSR = 128 */ and Active altimeter mode
write_pressureSensor(0x26, 0xB8);
//* Enable Data Flags in PT_DATA_CFG */
write_pressureSensor(0x13, 0x07);
// activate
write_pressureSensor(0x26, 0xB9);
//system mode register
write_pressureSensor(0x11, 0x01);
}