Page 1 of 1

ESP32 S2 I2C problem

Posted: Tue Jun 01, 2021 5:23 pm
by who_took_my_nick
I have a problem with I2C with ESP32 S2. It is a custom project. Board is my design, with ESP32 S2, CP2102, etc. Nothing special. Anyway, the board is alive. I can upload sketches from Arduino IDE. So far, so good.

When I upload the I2C scanner sketch, I get the following:
Scanning...
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x40081256 PS : 0x00060830 A0 : 0x80081074 A1 : 0x3ffc8610
A2 : 0x00000000 A3 : 0x00000001 A4 : 0x3ffc2616 A5 : 0x00000000
A6 : 0x3ffc8864 A7 : 0x00000032 A8 : 0x80081253 A9 : 0x3ffc85d0
A10 : 0x00000000 A11 : 0x3ffc2616 A12 : 0x00000000 A13 : 0x00000001
A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000016 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000001 LCOUNT : 0x40027031

Backtrace:0x40081253:0x3ffc8610 0x40081071:0x3ffc8630 0x400810e5:0x3ffc8650 0x40080eb3:0x3ffc8670 0x40081ab9:0x3ffc8690


ELF file SHA256: 0000000000000000

Rebooting...
This occurs no matter is there anything on I2C lines or not. According to pins_arduino.h file, I2C pins are 8 and 9 (SDA, SCL). Am I doing something wrong or my board is wrong? I doubt the problem is in my design. WiFi server, client, Blink... everything is just fine.

But...

Re: ESP32 S2 I2C problem

Posted: Wed Jun 02, 2021 8:18 am
by ullixesp
This `EXCVADDR: 0x00000000` is most of the time pointed towards the use of a NULL pointer. Check your code.