ESP8266 code for ESP32, Core panic'ed (Interrupt wdt timeout on CPU0)

Posts: 1
Joined: Sun Mar 25, 2018 6:09 pm

ESP8266 code for ESP32, Core panic'ed (Interrupt wdt timeout on CPU0)

Postby sirpreis » Sun Mar 25, 2018 6:14 pm


I am trying to use the "Bruh Automation" LED controller code on ... l_LEDs.ino, which was written for an ESP8266, on a ESP32. I have tried it on an ESP8266 that I have, and that works just fine. The only change that I made to the original code was add

Code: Select all

as the very first line, because without it my WS2818B LEDs would flicker.

I then changed the imports to match the ESP32 header files:

Before (ESP8266):

Code: Select all

#include <ArduinoJson.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "FastLED.h"
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
After (ESP32):

Code: Select all

#include <ArduinoJson.h>
#include <WiFi.h>
#include <PubSubClient.h>
#include "FastLED.h"
#include <ESPmDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
The program of course compiles just fine.

I then see the following in the console over and over and over again:

Code: Select all

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:1
entry 0x40078a58

Connecting to pwlan
WiFi connected
IP address:
IP Address:
Attempting MQTT connection...connected
Setting LEDs:
r: 0, g: 0, b: 0
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0)
Register dump:
PC      : 0x40085b7b  PS      : 0x00060034  A0      : 0x80086545  A1      : 0x3ffc0510  
A2      : 0x3ffc1128  A3      : 0x3ffc0588  A4      : 0x00000008  A5      : 0x3ffd4bc4  
A6      : 0x00000017  A7      : 0x00000000  A8      : 0x0000abab  A9      : 0x0000cdcd  
A10     : 0xb33fffff  A11     : 0x0000abab  A12     : 0x00000000  A13     : 0x00000001  
A14     : 0x00060023  A15     : 0x00000000  SAR     : 0x0000001e  EXCCAUSE: 0x00000005  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff  

Backtrace: 0x40085b7b:0x3ffc0510 0x40086542:0x3ffc0530 0x400850c1:0x3ffc0550 0x40084482:0x3ffc0570 0x400843cd:0x3ffc05c0 0x400849ae:0x3ffc05e0 0x40081625:0x3ffc0610 0x400e310b:0x00000000
What could be the problem here?

Who is online

Users browsing this forum: No registered users and 24 guests