Arduino IDE Porting from ESP8266 to ESP32 get Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)

tonbor
Posts: 3
Joined: Tue Sep 01, 2020 9:26 am

Arduino IDE Porting from ESP8266 to ESP32 get Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)

Postby tonbor » Tue Sep 01, 2020 9:45 am

Porting code from ESP8266 to ESP32. get stuck porting os timer to hw timer. Probably because within the interrupt function I have output serial2 to my Nextion Display. Got a Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1) after 4 minutes. Any suggestions or other help?

Code: Select all

/
// initialize timer
//
ESP8266
os_timer_t secTimer;

void timerDisplayTime(void *pArg) {
  displayTime();
}
ESP32
void IRAM_ATTR resetModule() {
  portENTER_CRITICAL_ISR(&timerMux);
void  timerDisplayTime(void *pArg);
    displayTime(); // serial2 output to Nextion
    portEXIT_CRITICAL_ISR(&timerMux);
  }
ESP8266
Setup()
os_timer_setfn(&secTimer, timerDisplayTime, NULL);
  if (timeServerConnected)
    os_timer_arm(&secTimer, 1000, true);
ESP32
timer = timerBegin(0, 80, true);                  //timer 0, div 80 MHZ
  timerAttachInterrupt(timer, &resetModule, true);  //attach callback
  timerAlarmWrite(timer, 1000000, true); //set time in us
  if (timeServerConnected)
        timerAlarmEnable(timer);                          //enable interrupt  
ESP8266
void loop() {
   if (!timeServerConnected) {
    getTimeFromServer();
    if (timeServerConnected)
      os_timer_arm(&secTimer, 1000, true);
  }
ESP32
Void loop(){
if (!timeServerConnected) {
    getTimeFromServer();
    if (timeServerConnected){
    portENTER_CRITICAL(&timerMux);
    portEXIT_CRITICAL(&timerMux);
    }

Who is online

Users browsing this forum: Google [Bot] and 96 guests