03-05-2024 08:44 PM - edited 03-05-2024 08:45 PM
Hi,
I have a PCB with the BMP388 and I am trying to communicate with the sensor from an STM32F722 via SPI.
This is the schematic:
This is the SPI configuration in STM32CubeIDE:
When trying to communicate with the sensor via SPI, I receive the wrong chip id (0x22 and 0x0F, depending on the SPI configuration).
Also, the sensor never enters normal mode and the data ready interrupt never fires.
I am using the BMP3-SensorAPI (https://github.com/boschsensortec/BMP3_SensorAPI)
in combination with the STM32 example code posted here: https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/How-to-adapt-Bosch-Sensor-API-s-to-use-w...
Unfortunately, I don't have an oscilloscope to test the SPI signal.
Any help is appreciated.
03-06-2024 08:26 AM
Hi miket7f,
After review, the schematic part of BMP388 is correct.
It seems SPI configuration in STM32CubeIDE is ok. We suggest you check hardware SPI signal of the host SPI to see if the actual host SPI timing is correct?
03-06-2024 01:35 PM