04-16-2020 02:55 PM
I am trying to use Simulink SPI blocks to communicate with a BME280 but when I try to read the ChipID I consistently receive 255 and the Simlink SPI Receive block reports a Data Overflow. Does anyone have any experience with this?
04-16-2020 05:36 PM
To debug communication issues, it would be helpful to share a schematic of your BME280 wiring, and ideally a logic analyser view of the transaction(s) on the bus.
For reference, you can find in BME280's datasheet both a recommended connection diagram for SPI mode, as well as a description of the SPI interface and an example of a read transaction.