Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ets Jan 8 2013,rst cause:4, boot mode:(3,7) #6241

Closed
ayman-abdulhadi opened this issue Jun 28, 2019 · 1 comment
Closed

ets Jan 8 2013,rst cause:4, boot mode:(3,7) #6241

ayman-abdulhadi opened this issue Jun 28, 2019 · 1 comment

Comments

@ayman-abdulhadi
Copy link

#5056 Platform

  • Hardware: ESP-01
  • Development Env: [Arduino IDE|
  • Operating System: [Windows|

Settings in IDE

  • Module: [Generic ESP8266 Module|
  • Flash Mode: [DOUT]
  • Flash Size: [512KB]
  • lwip Variant: |v2 Lower Memory|
  • Reset Method: [ck]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [115200]

Problem Description

i connect TX ESP-01 to arduino uno TX and RX to RX, when upload code i connect GPIO0 to GND and after uploading remove it, when open serial monitor it open loop of reconnecting . the result :

connecting.....
connected: 192.168.1.11
Distance0 : 0
setting /number failed:
Distance1 : 0
setting /number failed:
Distance2 : 0
setting /number failed:
Distance3 : 0
setting /number failed:
Distance4 :
ets Jan 8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld

#include <ESP8266WiFi.h>
#include <FirebaseArduino.h>

#define FIREBASE_HOST "ْْْXXXXXXXXXXXXXXXXXX" 
#define FIREBASE_AUTH "XXXXXXXXXXXXXX" 
#define WIFI_SSID "AYMAN" 
#define WIFI_PASSWORD "01357911" 
//#include <Servo.h>

//Servo myservo;
const int ULTRASONIC_PIN[] = {2,3,4,5,6,7,8,9};

void setup(){ 
  Serial.begin(115200);
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD); 
  Serial.print("connecting"); 
  while (WiFi.status() != WL_CONNECTED) { 
    Serial.print("."); 
    delay(500);
  }
  Serial.println(); 
  Serial.print("connected: "); 
  Serial.println(WiFi.localIP()); 
  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
}

void loop(){
  for(int x=0;x<8;x++){
     Serial.print("Distance");
     Serial.print(x);
     Serial.print(" : ");
     int result = readUltrasonic(ULTRASONIC_PIN[x]);
     Serial.print(result);
     Serial.println();
     if(result<150){
       Firebase_Setup(x);
      }
      delay(1000);
  }
  
  Serial.println("---------------------------------------------------------------------------------------");
  delay(1000);
}

int readUltrasonic(int pin){
 //Returns distance in cm
 pinMode(pin, OUTPUT);
 digitalWrite(pin, HIGH);
 delayMicroseconds(10);
 digitalWrite(pin, LOW);

 pinMode(pin, INPUT);
 return pulseIn(pin, HIGH, (unsigned long)60000) / 29 / 2;
}
//>--------------------------------------------------------------------------------------
void Firebase_Setup(int number){
  Firebase.set("Slot 1", 1);
  if (Firebase.failed()) {
      Serial.println("setting /number failed:");
      Serial.println(Firebase.error());  
      return;
  }
  delay(1000);
}

Debug Messages

Sketch uses 363168 bytes (72%) of program storage space. Maximum is 499696 bytes.
Global variables use 29100 bytes (35%) of dynamic memory, leaving 52820 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial port COM4
Connecting........_
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:68:70:f2
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Flash params set to 0x0320
Compressed 367328 bytes to 261074...

Writing at 0x00000000... (6 %)
Writing at 0x00004000... (12 %)
Writing at 0x00008000... (18 %)
Writing at 0x0000c000... (25 %)
Writing at 0x00010000... (31 %)
Writing at 0x00014000... (37 %)
Writing at 0x00018000... (43 %)
Writing at 0x0001c000... (50 %)
Writing at 0x00020000... (56 %)
Writing at 0x00024000... (62 %)
Writing at 0x00028000... (68 %)
Writing at 0x0002c000... (75 %)
Writing at 0x00030000... (81 %)
Writing at 0x00034000... (87 %)
Writing at 0x00038000... (93 %)
Writing at 0x0003c000... (100 %)
Wrote 367328 bytes (261074 compressed) at 0x00000000 in 31.2 seconds (effective 94.1 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
@devyte
Copy link
Collaborator

devyte commented Jul 5, 2019

You're cycling through forbidden pins. I'm pretty sure some of the pins you're trying to use are used for flash access.
Closing due to user error.

@devyte devyte closed this as completed Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants