ESP32 S2 I2C problem

who_took_my_nick
Posts: 1
Joined: Tue Jun 01, 2021 5:02 pm

ESP32 S2 I2C problem

Postby who_took_my_nick » Tue Jun 01, 2021 5:23 pm

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...

ullixesp
Posts: 83
Joined: Wed Oct 16, 2019 9:34 am
Location: Germany

Re: ESP32 S2 I2C problem

Postby ullixesp » Wed Jun 02, 2021 8:18 am

This `EXCVADDR: 0x00000000` is most of the time pointed towards the use of a NULL pointer. Check your code.

Who is online

Users browsing this forum: No registered users and 79 guests