Ets Jan 8 2013,rst cause:4, boot mode:(3,6)

So I trying to connect to blynk and i got this error message here my code and error message.

13:22:14.584 -> [4433] IP: 192.168.1.200
13:22:14.584 -> [4433] 
13:22:14.584 ->     ___  __          __
13:22:14.584 ->    / _ )/ /_ _____  / /__
13:22:14.631 ->   / _  / / // / _ \/  '_/
13:22:14.631 ->  /____/_/\_, /_//_/_/\_\
13:22:14.631 ->         /___/ v1.3.2 on ESP8266
13:22:14.631 -> 
13:22:14.631 ->  #StandWithUkraine    https://bit.ly/swua
13:22:14.631 -> 
13:22:14.631 -> 
13:22:14.631 -> [4443] Connecting to blynk.cloud:80
13:22:14.631 -> :ref 1
13:22:14.677 -> :wr 37 0
13:22:14.677 -> :wrc 37 37 0
13:22:14.723 -> :ack 37
13:22:14.723 -> :rn 24
13:22:14.723 -> readBytes should be overridden for better efficiency
13:22:14.723 -> [4542] Ready (ping: 41ms).
13:22:14.723 -> :c0 1, 24
13:22:22.493 -> 
13:22:22.493 ->  ets Jan  8 2013,rst cause:4, boot mode:(3,6)
13:22:22.493 -> 
13:22:22.493 -> wdt reset
13:22:22.532 -> load 0x4010f000, len 3424, room 16 
13:22:22.532 -> tail 0
13:22:22.532 -> chksum 0x2e
13:22:22.532 -> load 0x3fff20b8, len 40, room 8 
13:22:22.532 -> tail 0
13:22:22.532 -> chksum 0x2b
13:22:22.532 -> csum 0x2b
13:22:22.532 -> v00048e20
13:22:22.532 -> ~ld
13:22:22.532 -> 
13:22:22.532 -> 
13:22:22.532 -> Hardware WDT Stack Dump - enabled

We need to see the code that produced this serial output.

Pete.

/*************************************************************

  You’ll need:
   - Blynk IoT app (download from App Store or Google Play)
   - ESP8266 board
   - Decide how to connect to Blynk
     (USB, Ethernet, Wi-Fi, Bluetooth, ...)

  There is a bunch of great example sketches included to show you how to get
  started. Think of them as LEGO bricks  and combine them as you wish.
  For example, take the Ethernet Shield sketch and combine it with the
  Servo example, or choose a USB sketch and add a code from SendData
  example.
 *************************************************************/

/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID           "TMPL6FftOEUGf"
#define BLYNK_TEMPLATE_NAME         "IOT"
#define BLYNK_AUTH_TOKEN            "DtUWdySNRgGitU1Mieeq3Eta9TzzgpUk"

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "70S733";
char pass[] = "0870841702";

void setup()
{
  // Debug console
  Serial.begin(115200);

  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
  // You can also specify server:
  //Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "blynk.cloud", 80);
  //Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, IPAddress(192,168,1,100), 8080);
}

void loop()
{
  Blynk.run();
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}

Messages like these aren’t coming from the code you posted, so have you enabled debugging in your IDE?
If so, what level of debugging is enabled?

Pete.


this one

Why?

Turn debugging off, re-upload your sketch and post the resulting serial output.

What version of the ESP8266 core do you have installed, and what board are you using?
What board type are you choosing in the IDE?

Pete.

I use version 3.2.1 and use Wemos D1 ESP8266 i choose board type Wemos D1 R1

14:26:57.309 -> [4427] Connected to WiFi
14:26:57.309 -> [4427] IP: 192.168.1.200
14:26:57.309 -> [4427] 
14:26:57.309 ->     ___  __          __
14:26:57.309 ->    / _ )/ /_ _____  / /__
14:26:57.309 ->   / _  / / // / _ \/  '_/
14:26:57.309 ->  /____/_/\_, /_//_/_/\_\
14:26:57.309 ->         /___/ v1.3.2 on ESP8266
14:26:57.309 -> 
14:26:57.309 ->  #StandWithUkraine    https://bit.ly/swua
14:26:57.309 -> 
14:26:57.309 -> 
14:26:57.309 -> [4437] Connecting to blynk.cloud:80
14:26:57.392 -> [4513] Ready (ping: 30ms).
14:27:05.182 -> 
14:27:05.182 ->  ets Jan  8 2013,rst cause:4, boot mode:(3,6)
14:27:05.182 -> 
14:27:05.182 -> wdt reset
14:27:05.182 -> load 0x4010f000, len 3424, room 16 
14:27:05.224 -> tail 0
14:27:05.224 -> chksum 0x2e
14:27:05.224 -> load 0x3fff20b8, len 40, room 8 
14:27:05.224 -> tail 0
14:27:05.224 -> chksum 0x2b
14:27:05.224 -> csum 0x2b
14:27:05.224 -> v00046630
14:27:05.224 -> ~ld

So that’s the board that has the same footprint as the Uno ?

Things to try…

  1. make sure the only thing connected to the board is the USB cable
  2. try a different USB cable and a different USB port on your PC, to rule-out power issues.
  3. delete and re-install the Blynk library and the ESP8266 core
  4. try a different board

Pete.

Yes it’s same footprint

  • i try other cable and port and reinstall blynk and esp8266 core and still not work

i just remember i uploaded a code 2 month ago before it error like this.
sorry didn’t mention you earlier
here’s code i upload before it’s get error message



// Blynk Template Information
#define BLYNK_TEMPLATE_ID      "TMPL6FftOEUGf"
#define BLYNK_TEMPLATE_NAME    "IOT"
#define BLYNK_AUTH_TOKEN       "DtUWdySNRgGitU1Mieeq3Eta9TzzgpUk"
#define BLYNK_PRINT            Serial

// Lib include
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2); 
float pHValue;

// WiFi Credentials
char ssid[] = "70S733";
char pass[] = "0870841702";

// TDS Sensor Configuration
#define TdsSensorPin A0
#define VREF 5.0
#define SCOUNT 30

int analogBuffer[SCOUNT];
int analogBufferTemp[SCOUNT];
int analogBufferIndex = 0, copyIndex = 0;
float averageVoltage = 0, tdsValue = 0, temperature = 25;
 
void setup() {
  // Initialize Blynk and Serial
  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
  Serial.begin(115200);
  pinMode(TdsSensorPin, INPUT);
  lcd.init();
  lcd.backlight();
  
}

void loop() {
  // Run Blynk
  Blynk.run();
    
  
  // TDS Sensor Sampling
  static unsigned long analogSampleTimepoint = millis();
  if (millis() - analogSampleTimepoint > 40U) {
    analogSampleTimepoint = millis();
    analogBuffer[analogBufferIndex] = analogRead(TdsSensorPin);
    analogBufferIndex++;
    if (analogBufferIndex == SCOUNT)
      analogBufferIndex = 0;
  }

  // TDS Sensor Processing
  static unsigned long printTimepoint = millis();
  if (millis() - printTimepoint > 800U) {
    printTimepoint = millis();
    for (copyIndex = 0; copyIndex < SCOUNT; copyIndex++)
      analogBufferTemp[copyIndex] = analogBuffer[copyIndex];

    // Calculate average voltage
    averageVoltage = getMedianNum(analogBufferTemp, SCOUNT) * (float)VREF / 1024.0;

// Temperature Compensation
    float compensationCoefficient = 1.0 + 0.02 * (temperature - 25.0);
    float compensationVoltage = averageVoltage / compensationCoefficient;

   
    // Convert voltage to TDS value
    tdsValue = (133.42 * compensationVoltage * compensationVoltage * compensationVoltage - 255.86 * compensationVoltage * compensationVoltage + 857.39 * compensationVoltage) * 0.5;
  // Read pH value from Serial
 String pHString = Serial.readStringUntil('\n');
   float pHValue = pHString.toFloat();
   delay(100);

    // Serial & debug
//Serial.print("voltage:");
//Serial.print(averageVoltage,2);
//Serial.print("V ");
//Serial.print("TDS Value:");
//Serial.print(tdsValue,0);
//Serial.println("ppm");
//Serial.print(pHValue);
      // Update Blynk virtual pins & Lcd
    Blynk.virtualWrite(V1, tdsValue);
    //Serial.print("V1Sended");
    lcd.setCursor(0, 0);
    lcd.print("ppm");
    lcd.setCursor(5, 0);
    lcd.print(tdsValue);
    //Serial.print("tds lcded");
    Blynk.virtualWrite(V2, pHValue);
     //Serial.print("V2Sended");
     lcd.setCursor(0, 1);
     lcd.print("pH");
     lcd.setCursor(5, 1);
     lcd.print(pHValue);
     //Serial.print("pH lcded");
  }
}

// Function to calculate median of an array
int getMedianNum(int bArray[], int iFilterLen) {
  int bTab[iFilterLen];
  for (byte i = 0; i < iFilterLen; i++)
    bTab[i] = bArray[i];

  quickSort(bTab, 0, iFilterLen - 1);

  if (iFilterLen % 2 != 0) {
    return bTab[iFilterLen / 2];
  } else {
    return (bTab[iFilterLen / 2 - 1] + bTab[iFilterLen / 2]) / 2;
  }
}

void quickSort(int arr[], int left, int right) {
  int i = left, j = right;
  int tmp;
  int pivot = arr[(left + right) / 2];

  while (i <= j) {
    while (arr[i] < pivot)
      i++;
    while (arr[j] > pivot)
      j--;
    if (i <= j) {
      tmp = arr[i];
      arr[i] = arr[j];
      arr[j] = tmp;
      i++;
      j--;
    }
  }

  if (left < j)
    quickSort(arr, left, j);
  if (i < right)
    quickSort(arr, i, right);
}

And have you tried this code again?
Do you get an error with this code?

I guess in that two months, a number of things might have changed…

  • The ESP8266 core has been updated to a new version
  • The Blynk library has been updated to a new version

Have you tried rolling these back to earlier versions?

Pete.

Yes tired it still get error code

Yes still error message.

i tried code with my esp 01 with ESP Prog it’s still get error message with blynk code

17:09:35.887 ->  ets Jan  8 2013,rst cause:4, boot mode:(3,6)
17:09:35.887 -> 
17:09:35.887 -> wdt reset
17:09:35.887 -> load 0x4010f000, len 3424, room 16 
17:09:35.887 -> tail 0
17:09:35.887 -> chksum 0x2e
17:09:35.887 -> load 0x3fff20b8, len 40, room 8 
17:09:35.887 -> tail 0
17:09:35.887 -> chksum 0x2b
17:09:35.887 -> csum 0x2b
17:09:35.887 -> v00046630
17:09:35.887 -> ~ld

You need to be a bit more detailed in your replies.
Have you done all of these things…

What versions have you rolled back to…

Pete.