4 years, 9 months ago.

cannot receive the ACK

I use this lib on the stm32f103 board, but always receive the ACK error. It seems the I2C cannot work correctly.

Question relating to:

1 Answer

4 years, 9 months ago.

It looks like this library was written for the original mbed LPC1768 and it uses several calls to the I2C byte write and read operations. Unfortunately these byte sized operations dont properly on many other platforms apart from the LPC1768 and LPC11u24. The library should be modified to only use the I2C block write/read operations instead.

Accepted Answer

Anyone able to port this lib to work with other platform, like nrf51822?

posted by Vineet Saini 14 Jul 2017

A quick search shows that there are already some libs for the SHT21 that use the regular I2C block operations which are supported by all platforms. See here for example.

posted by Wim Huiskamp 15 Jul 2017