boschsensortec / BMP5_SensorAPI

SensorAPI for the 6th Generation of barometric pressure sensors
https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp581/
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

BMP585 power fail #5

Open ss1969 opened 2 months ago

ss1969 commented 2 months ago

On my board BMP585 module with my STM32G030 cpu, in the bmp5_init(), I can read the chip id as 0x51, but then the NVM status reg (0x28) always return 0, which will result in a power fail error. What can I do next?

ss1969 commented 2 months ago

I've found the reason: I was in debug mode, and then my motherboard couldn't reset the BMP585, the ISR had already been read many times, and the NVM status couldn't be read, so it failed. I had no choice but to add a soft reset before bmp5_init(), and I also had to modify the soft reset code to prevent it from reading the ISR. There's a bit of a strange feeling here.