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

sirpreis
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

Hi,

I am trying to use the "Bruh Automation" LED controller code on https://raw.githubusercontent.com/bruha ... 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

#define FASTLED_INTERRUPT_RETRY_COUNT 0
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
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078a58

Connecting to pwlan
.......
WiFi connected
IP address: 
192.168.2.123
Ready
IP Address: 192.168.2.123
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 52 guests