Open Mirabellensaft opened 5 years ago
using a logic analyser: once the program gets stuck calling the soft_reset function, the scl signal is erratic and shows ERROR, sda is silent.
if no function is called on the sensor instance, the both signals are regular but in ERROR at most times and occasionally this for a fraction of a second:
The when using any of the functions of the SCD30 driver on the sensor instance, the program gets stuck. This may be related to using the wrong pins to instantiate the sensor. The result is the same, if the current pins for scl and sda are used, or if the accelerometer pins.
Backtracing in gdb shows this: