-
Notifications
You must be signed in to change notification settings - Fork 23
HTU21D example does not work in release mode #256
Comments
I'll decipher what happens:
It fails because the device did not answer with an ACK (due to it being resetting). Now the I2C driver is waiting for a Master Transmitter Mode Selected event, which never occurs due to the error. This issue directly relates to #19. I would say, this issue is an instance of absent error handling. A fast workaround is to add a ~15ms delay to allow HTU21D complete reset before issuing the read command. |
@Dubland, since you are working on #183 , it will be useful to you also check @rasendubi's workaround. |
ping @Dubland ? |
With delay after soft reset example working fine. Shall I create PR for adding the delay? Also, need to swap RX and TX for UART-to-USB converter in the documentation. |
Yes please. |
@Dubland now, when #271 is merged, I propose to try find real root cause and fix it. @rasendubi can guide you trough it. |
@Dubland any news? |
See analyser output:
The text was updated successfully, but these errors were encountered: