05-22-2019 06:16 PM - edited 05-22-2019 06:24 PM
Hi, i am using the Adafruit BME280 Breakout Board and SPI for communication with the sensor. I am using STM32L100 Discovery Board and the recommended BOSCH API,not at all tampered with.
So far i am trying to read the CHIP ID from the address 0xD0 but instead of getting back an asnwer of 0x60, i get 0xFF.
For the spi initialisation for my microcontroller, i am sure its correct because i tried sending hello word randomly via spi to another microcontroller and it worked.
Please any idea what the problem might be?
I have attached my spi read function and the data sheet from adafruit board.
UPDATE: while debugging i noticed that in the bme280_get_regs fuction in the API the point where it is checked if the interface selected is SPI, it does not go into the if statement..it is supposed to cause the interface is SPI. Attcahed is a snapshot of the point am referring to.
Solved! Go to Solution.
05-23-2019 10:01 AM
never mind, solved the problem.
06-10-2019 10:26 AM
I am trying to use bme 680 with stm32f030 MCU.
I configure MCU with I2C and also configure bme and include bme.c , bme.h and bme_680 def.h file which is provided by Bosch.
But my code is stuck in bme_init() function.
Can you help me with this problem
06-11-2019 09:36 AM
Can you please create a new post and provide more references regarding your setup and what you would like to do?