espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.71k stars 7.3k forks source link

ESP-IDF v5.3.1 i2c_master.h Causing Unexpected Nack (IDFGH-14030) #14851

Open K0I05 opened 3 hours ago

K0I05 commented 3 hours ago

Answers checklist.

IDF version.

ESP-IDFv5.3.1

Espressif SoC revision.

ESP32-S3

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

PowerShell

Development Kit.

esp32s3box

Power Supply used.

USB

What is the expected behavior?

I am polling two I2C sensors (SHT40 and BMP280) on the same bus at a 3-second interval. In addition, I placed a 50-ms delay between sensor polling i.e. the SHT40 polls, delay for 50-ms, then the BMP280 polls.

What is the actual behavior?

After about 20 polls there is an odd error that appears but doesn't break my code or crash the MCU.

E (1066671) i2c.master: I2C transaction unexpected nack detected E (1066671) i2c.master: s_i2c_synchronous_transaction(872): I2C transaction failed E (1066671) i2c.master: i2c_master_receive(1117): I2C transaction failed

Steps to reproduce.

  1. Step SHT40 and BMP280 components are loaded github
  2. Step setup a task to run every 3-seconds and poll the sensors at a 3-second interval.

Debug Logs.

W (881661) I2C-MQTT MACHBASE [APP]: Free Memory: 8526540 bytes (32 bytes Consumed)
W (881661) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 1016 bytes (heap_size_task)
W (881671) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 1504 bytes (sample_sensor_task)
W (881671) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 2148 bytes (publish_sensor_task)
E (883671) i2c.master: I2C transaction unexpected nack detected
E (883671) i2c.master: s_i2c_synchronous_transaction(872): I2C transaction failed
E (883671) i2c.master: i2c_master_receive(1117): I2C transaction failed
I (883681) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.85 C
I (883681) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.33 %
I (883691) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (883751) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.55 hPa
I (886671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.82 C
I (886671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.32 %
I (886681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.25 C
I (886731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.55 hPa
I (889671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.83 C
I (889671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.32 %
I (889681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (889731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.50 hPa
I (892671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.82 C
I (892671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.30 %
I (892681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.24 C
I (892731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.54 hPa
I (895671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.86 C
I (895671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.31 %
I (895681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (895731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.51 hPa
I (898671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.84 C
I (898671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.28 %
I (898681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (898731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.52 hPa
I (901671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.84 C
I (901671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.30 %
I (901681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (901731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.54 hPa
I (904671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.81 C
I (904671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.30 %
I (904681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.24 C
I (904731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.56 hPa
I (907671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.84 C
I (907671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.32 %
I (907681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (907731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.52 hPa
I (910671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.82 C
I (910671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.32 %
I (910681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (910731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.53 hPa
I (913671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.83 C
I (913671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.40 %
I (913681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.30 C
I (913731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.52 hPa
I (916671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.80 C
I (916671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.37 %
I (916681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (916731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.51 hPa
I (919671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.86 C
I (919671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.34 %
I (919681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.29 C
I (919731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.51 hPa
I (922671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.84 C
I (922671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.32 %
I (922681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (922731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.52 hPa
I (925671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.85 C
I (925671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.25 %
I (925681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.25 C
I (925731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.50 hPa
I (928671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.84 C
I (928671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.30 %
I (928681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (928731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.48 hPa
I (931671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (931671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.27 %
I (931681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (931731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.54 hPa
I (934671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.85 C
I (934671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.26 %
I (934681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (934741) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.46 hPa
I (937681) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.85 C
I (937681) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (937691) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.25 C
I (937741) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.49 hPa
I (940671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.86 C
I (940671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (940681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (940731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.53 hPa
W (941661) I2C-MQTT MACHBASE [APP]: Free Memory: 8526540 bytes (32 bytes Consumed)
W (941661) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 1016 bytes (heap_size_task)
W (941671) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 1504 bytes (sample_sensor_task)
W (941671) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 2148 bytes (publish_sensor_task)
I (943671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (943671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.24 %
I (943681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (943731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.50 hPa
I (946671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.86 C
I (946671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.21 %
I (946681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.25 C
I (946731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.47 hPa
I (949671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.85 C
I (949671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.27 %
I (949681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (949731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.45 hPa
I (952671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (952671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (952681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (952731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.44 hPa
I (955671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (955671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.18 %
I (955681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (955731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.46 hPa
I (958671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (958671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (958681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (958731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.47 hPa
I (961671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.90 C
I (961671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.21 %
I (961681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (961731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.49 hPa
I (964671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (964671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (964681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (964731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.52 hPa
I (967671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.91 C
I (967671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (967681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.30 C
I (967731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.49 hPa
I (970671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (970671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.20 %
I (970681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (970731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.47 hPa
I (973671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (973671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.22 %
I (973681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (973731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.48 hPa
I (976671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (976671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.21 %
I (976681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (976731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.50 hPa
I (979671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.90 C
I (979671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.20 %
I (979681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (979731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.46 hPa
I (982671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (982671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.22 %
I (982681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (982731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.46 hPa
I (985671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.90 C
I (985671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.20 %
I (985681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (985731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.48 hPa
I (988671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (988671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (988681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (988731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.57 hPa
I (991671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.85 C
I (991671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.25 %
I (991681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (991731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.53 hPa
I (994671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (994671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (994681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (994731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.52 hPa
I (997671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.86 C
I (997671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.22 %
I (997681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (997731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.54 hPa
I (1000671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (1000671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (1000681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (1000731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.49 hPa
W (1001661) I2C-MQTT MACHBASE [APP]: Free Memory: 8526540 bytes (32 bytes Consumed)
W (1001661) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 1016 bytes (heap_size_task)
W (1001671) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 1504 bytes (sample_sensor_task)
W (1001671) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 2148 bytes (publish_sensor_task)
I (1003671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (1003671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.20 %
I (1003681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (1003731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.48 hPa
I (1006671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (1006671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.20 %
I (1006681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (1006731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.49 hPa
I (1009671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (1009671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.25 %
I (1009681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (1009731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.50 hPa
I (1012671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (1012671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.26 %
I (1012681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.29 C
I (1012731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.49 hPa
I (1015671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (1015671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.24 %
I (1015681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.29 C
I (1015731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.51 hPa
I (1018671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (1018671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.20 %
I (1018681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (1018731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.52 hPa
I (1021671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.90 C
I (1021671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.22 %
I (1021681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.29 C
I (1021731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.51 hPa
I (1024671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (1024671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.26 %
I (1024681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.29 C
I (1024731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.53 hPa
I (1027671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (1027671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.24 %
I (1027681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (1027731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.53 hPa
I (1030671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (1030671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.24 %
I (1030681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.29 C
I (1030731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.52 hPa
I (1033671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (1033671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.27 %
I (1033681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.30 C
I (1033731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.44 hPa
I (1036671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (1036671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.26 %
I (1036681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (1036731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.50 hPa
I (1039671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (1039671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.26 %
I (1039681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (1039731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.51 hPa
I (1042671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (1042671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.26 %
I (1042681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.29 C
I (1042731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.45 hPa
I (1045671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (1045671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.28 %
I (1045681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.30 C
I (1045731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.43 hPa
I (1048671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.86 C
I (1048671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.25 %
I (1048681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (1048731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.49 hPa
I (1051671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (1051671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.26 %
I (1051681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (1051731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.49 hPa
I (1054671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.89 C
I (1054671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.24 %
I (1054681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.28 C
I (1054731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.45 hPa
I (1057671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.87 C
I (1057671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.23 %
I (1057681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (1057731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.44 hPa
I (1060671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.86 C
I (1060671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.24 %
I (1060681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.26 C
I (1060731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.39 hPa
W (1061661) I2C-MQTT MACHBASE [APP]: Free Memory: 8526540 bytes (32 bytes Consumed)
W (1061661) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 1016 bytes (heap_size_task)
W (1061671) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 1504 bytes (sample_sensor_task)
W (1061671) I2C-MQTT MACHBASE [APP]: Free Stack Memory: 2148 bytes (publish_sensor_task)
I (1063671) I2C-MQTT MACHBASE [APP]: SHT40 Air Temperature:       22.88 C
I (1063671) I2C-MQTT MACHBASE [APP]: SHT40 Relative Humidity:     39.22 %
I (1063681) I2C-MQTT MACHBASE [APP]: SHT40 Dewpoint Temperature:  8.27 C
I (1063731) I2C-MQTT MACHBASE [APP]: BMP280 Atmospheric Pressure: 997.42 hPa
E (1066671) i2c.master: I2C transaction unexpected nack detected
E (1066671) i2c.master: s_i2c_synchronous_transaction(872): I2C transaction failed
E (1066671) i2c.master: i2c_master_receive(1117): I2C transaction failed

More Information.

I've tried this only mulple ESP32-S3 boards. Since the release of v5.3.1 I noticed some odd behaviours with timing. I2C sensors that used to work with master_transmit_receive no longer work. I had to recode with descreet transmit, delay for 10-ms, then receive functions to resolve the problems. Is anyone else experiencing this?

K0I05 commented 2 hours ago

This is most likely a hardware issue with the SHT40 but I never had this problem before, I am using adafruit SHT40 and BMP280 MEMS boards with STEMMA QT. I just wired up an AHT20+BMP280 board to an ESP32-S3 and they get along well, no unexpected nack at a 3 second polling interval. However, I can no longer poll the status register on SHTXX MEMS sensors (i.e. SHT10, 20) any more for data ready but I can poll for data ready on the SHT21, the older versions cause unexpected nack when polled, the hard-coded delay seems to work but I was able poll for data ready before ESP-IDF v5.3.1. The SHT45 with BMP280 didn't reproduce the problem but it's odd, seems like the older hardware isn't cooperating any longer.

The code is located here: I2C-MQTT

Any thoughts?