通过menuconfig添加了I2C驱动和BME280驱动,工程如下:

msh >sensor probe i2c2
[I/sensor.cmd] device id: 0xff!
msh >list_device
device type ref count
------ -------------------- ----------
i2c2 I2C Bus 1
uart2 Character Device 2
uart1 Character Device 0
pin Miscellaneous Device 0
读传感器错误,如下:
msh >sensor read
[E/sensor.cmd] read data failed!size is -8
[E/sensor.cmd] read data failed!size is -8
[E/sensor.cmd] read data failed!size is -8
[E/sensor.cmd] read data failed!size is -8
[E/sensor.cmd] read data failed!size is -8
msh >
哪里不对?