ProjectsByJRP / stm32-bme280

Bosch BME280 driver for STM32 using HAL - both SPI and I2C work
26 stars 11 forks source link

Function read Chip Id crashes #3

Closed MootSeeker closed 2 years ago

MootSeeker commented 3 years ago

As I tried to implement the library the thing crashes at this function

/* read Chip Id */
        com_rslt = p_bme280->BME280_BUS_READ_FUNC(p_bme280->dev_addr,
                BME280_CHIP_ID_REG, &v_data_u8,
                BME280_GEN_READ_WRITE_DATA_LENGTH);