ESP-WROOM-32 RESETS CONTINUOUSLY with rst:0x8 (TG1WDT_SYS_RESET) Message ON ETHERNET CONNECTION

Dear Community Members,
Good day!

My ESP-WROOM-32 keeps on resetting with the following messages:
rst:0x8 (TG1WDT_SYS_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:2
load:0x3fff0030,len:1344
load:0x40078000,len:13936
load:0x40080400,len:3600
entry 0x400805f0
ets Jun 8 2016 00:22:57

ESP32 has been interfaced with W5500 Ethernet module/shield. But I have came to a conclusion that the code behaves the save way even without the shield. The version of of Arduino IDE is 1.8.19 and the Blynk library version is 1.3.2.

I came to a conclusion that the following instruction when commented the ESP stops resetting but without this instruction I cannot connect with ETHERNET NETWROK.

Blynk.begin(BLYNK_AUTH_TOKEN, "blynk.cloud", 80, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
OR
Blynk.begin(BLYNK_AUTH_TOKEN, server_ip, 8080, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);

I am current using a FREE PLAN of Blynk.

Any support from the members would be highly appreciable!

Sarwar

Well, you haven’t given us much info to work with, so it’s going to be very difficult to help.

ESP32 + wired Ethernet isn’t a common hardware combination, and does t leaned itself to the normal Blynk.begin approach. Without lots of info about your hardware and the sketch you’re using it’s impossible to say why using the regular WiFi connectivity approach isn’t working, but I’d guess that your sketch is the culprit.

If you want to use your ESP32 with hard-wired Ethernet then stare by reading these two posts…

If you want to try using your ESP32 with WiFi then disconnect everything from your board - except your USB power cable - and use one of the basic examples from the library. I’d avoid using the Edgent examples, just keep it simple at this stage.

If you need more assistance then provide all of the necessary info please.

Pete.

Dear Pete,
Thank you very much for such a comprehensive reply.

The problem has been resolve and ESP32+W5500 is now part of the ETHERNET network. Receiving a successful ping response.

Another issue that I am facing now is Blynk connection is not being established.
I am receiving following messages in serial console:

[146656] Connecting to blynk.cloud:80
[148276] Connecting to blynk.cloud:8080

I am also sharing the complete DEMO code herewith for ease in understanding.

#define BLYNK_PRINT Serial

// --- Fill in following information from Blynk Device Info from Blynk Server ---
#define BLYNK_TEMPLATE_ID    "TMP********"
#define BLYNK_TEMPLATE_NAME  "*********************"
#define BLYNK_AUTH_TOKEN     "9vD6O7ZVga8-j3*******************"





#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>

#define ETH_SPI_SCS   5            // --- CS (Chip Select)


// --- Define MAC and IP
byte mac[] = { 0xC0, 0x49, 0xEF, 0x69, 0xB4, 0xC7 };
IPAddress ip(???, ???, ???, ???);


void setup()
{
  Serial.begin(115200);
  delay(1000);
  Serial.println("Starting Ethernet connection...");

  //Set the CS pin, required for ESP32 as the arduino default is different
  Ethernet.init(ETH_SPI_SCS); 

  //Start the Ethernet connection
  Ethernet.begin(mac, ip);

    //Hardware check
  Serial.println("Checking Ethernet hardware...");
  if (Ethernet.hardwareStatus() == EthernetNoHardware)
  {
    Serial.println("ERROR: No Ethernet hardware detected!");
    return;
  }
  else
  {
    Serial.println("Ethernet hardware detected!");
  }

  //Check if cable is connected
  if (Ethernet.linkStatus() == LinkOFF)
  {
    Serial.println("Link is OFF. Check cable connection.");
  }
  else
  {
    Serial.println("Link is ON. Cable is connected. Ready to go!");
    Serial.print("To test connection, please ping: ");
    Serial.println(ip);
  }

  // ------------------------------------------------------

  Blynk.config(BLYNK_AUTH_TOKEN);

  Blynk.connect();
}

void loop()
{
    Blynk.run();
}

Your support, as always, will be highly appreciated.

Sarwar

Take a look at the two working examples I provided, and see which Blynk library files I used.

Pete.