Thanks to visit codestin.com
Credit goes to github.com

Skip to content

I2c error when I update esp32 board from 3.1.3 to 3.2.0 #11496

Open
@pvdw0310

Description

@pvdw0310

Board

esp32 wroom 30pin

Device Description

using an esp32 wroom with led ws2812 strip and touch sensors and an I2c lcddisplay 16*2 for a debug display

Hardware Configuration

gpio21 and gpio22 is used as sda and scl
gpio26 as data for ws2812
gpio14 as input for a switch to detect high or low
gpio 32 and gpio33 as touch contact

Version

v3.2.0

IDE Name

arduino ide

Operating System

windows 11

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

It is compiling and working perfectly when I compile it with arduino ide 1.8.19 and esp32 board version 3.1.3.
So I connect the lcd display and reset the sketch and i see all the debug messages.
If i disconnect the lcd display and reset the esp32 board, the sketch is working and there are no extra messages on the serial monitor.

If I upgrade the esp32 board to version 3.2.0 and recompile the sketch, then it is working with the display connected.
If I disconnect the display and after reset, then I get non stop messages on my serial monitor.

like:

15:05:34.739 -> E (2056) i2c.master: I2C hardware NACK detected
15:05:34.739 -> E (2056) i2c.master: I2C transaction unexpected nack detected
15:05:34.739 -> E (2056) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed
15:05:34.786 -> E (2062) i2c.master: i2c_master_multi_buffer_transmit(1186): I2C transaction failed
15:05:35.773 -> E (3069) i2c.master: I2C hardware NACK detected
15:05:35.773 -> E (3069) i2c.master: I2C transaction unexpected nack detected
15:05:35.773 -> E (3069) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed
15:05:35.773 -> E (3074) i2c.master: i2c_master_multi_buffer_transmit(1186): I2C transaction failed
15:05:35.773 -> E (3082) i2c.master: I2C hardware NACK detected
15:05:35.773 -> E (3086) i2c.master: I2C transaction unexpected nack detected
15:05:35.773 -> E (3091) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed
15:05:35.820 -> E (3098) i2c.master: i2c_master_multi_buffer_transmit(1186): I2C transaction failed

and I did'nt had that with esp board version 3.1.3

Is it possible to check that issue and change the board manager so that we don't have that problem.
Many thanks.

Peter

Sketch

using:

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcdsetup(0x27,16,2);
void setup(){
  Serial.begin(115200);
  delay(2000);                                        
  Serial.println("");
  Serial.println(__FILE__ "  " __DATE__);

  lcdsetup.init();           // initialize the lcdsetup
  lcdsetup.backlight();
  lcdsetup.clear();
  lcdsetup.setCursor(0, 0);
  lcdsetup.print("Opstarten");
}

Debug Message

message on the serial monitor:

15:05:34.739 -> E (2056) i2c.master: I2C hardware NACK detected
15:05:34.739 -> E (2056) i2c.master: I2C transaction unexpected nack detected
15:05:34.739 -> E (2056) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed
15:05:34.786 -> E (2062) i2c.master: i2c_master_multi_buffer_transmit(1186): I2C transaction failed
15:05:35.773 -> E (3069) i2c.master: I2C hardware NACK detected
15:05:35.773 -> E (3069) i2c.master: I2C transaction unexpected nack detected
15:05:35.773 -> E (3069) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed
15:05:35.773 -> E (3074) i2c.master: i2c_master_multi_buffer_transmit(1186): I2C transaction failed
15:05:35.773 -> E (3082) i2c.master: I2C hardware NACK detected
15:05:35.773 -> E (3086) i2c.master: I2C transaction unexpected nack detected
15:05:35.773 -> E (3091) i2c.master: s_i2c_synchronous_transaction(924): I2C transaction failed
15:05:35.820 -> E (3098) i2c.master: i2c_master_multi_buffer_transmit(1186): I2C transaction failed

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions