07-31-2024 02:19 PM
Hi all,
I am using a BMP390 and measuring works fine in standard configuration. I can switch to normal mode and fetch proper measurements.
However, as soon as I try to set the OSR register the BMP390 goes into an "configuration error" state and switches to sleep mode and then i am unable to activate normal mode again. A soft reset cmd will restore the defaults and fixes this. However OSR is also reset then.
The datasheet didnt really clarify to me what is happening exactly. I tried different OSR configurations, I dont see what could be wrong with any of those. Are there any configurations that are not allowed or have to be set together?
Best regards
Mark
07-31-2024 02:47 PM
Ok it seems when setting oversampling then the odr_sel has to be configured accordingly. 2x oversamping requires 2x prescaler on odr_sel.
08-12-2024 12:53 PM
Hi Kisle,
Thank for your inquiry.
You can set BMP390 sensor configuration according the description in data sheet.
You can also refer to official BMP390 example code: https://github.com/boschsensortec/BMP3_SensorAPI/tree/master/examples