-->
Page 1 of 4

wdt reset problem with ESP8266 dev board and Arduino IDE

PostPosted: Sat Jul 18, 2015 9:33 am
by paksoft
Hello dude,

I'm new to ESP8266 environment, but I've some experience on Arduino programming. I've a ESP8266 dev board from ebay, http://www.ebay.com.sg/itm/201345364308. I've successfully controlled all LEDs of the board via IOT Manager app from my galaxy note 3. I'm really happy with it :D.
But I want to try the board with Arduino IDE from https://github.com/esp8266/Arduino. I set up the connection according to the website and tried to write a simple blink code as follow:
const int pinLed = 16;
// the setup function runs once when you press reset or power the board
void setup()
{
// initialize digital pin as an output.
pinMode(pinLed, OUTPUT);
}

// the loop function runs over and over again forever
void loop()
{
digitalWrite(pinLed, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(pinLed, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}


After uploading the sketch, the led is blinking, great!. But I've found the strange message on the serial monitor below:
ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x40100000, len 28688, room 16
tail 0
chksum 0x45
load 0x3ffe8000, len 1316, room 8
tail 12
chksum 0xb5
ho 0 tail 12 room 4
load 0x3ffe8530, len 1536, room 12
tail 4
chksum 0xbb
csum 0xbb


Where do they come from? I haven't enable the Serial.begin() function.
Any advise or guidance would be greatly appreciated..!!!

pak

Re: wdt reset problem with ESP8266 dev board and Arduino IDE

PostPosted: Sat Jul 18, 2015 10:13 am
by martinayotte
Do you means that your LED still blinking even if you got this message ?
Probably it is coming from the Wifi thread not able to start due to corrupted configs store in flash.
Maybe you should upload blank.bin to both 7C000h and 7E000h addresses or initialize Wifi using API.

Re: wdt reset problem with ESP8266 dev board and Arduino IDE

PostPosted: Sat Jul 18, 2015 10:21 am
by paksoft
yes, led is still blinking, but the weird message keeps annoying, too bad. BTW, how to upload blank.bin to both 7C000h and 7E000h addresses or initialize Wifi using API? Please show the way, thank you.

pak

Re: wdt reset problem with ESP8266 dev board and Arduino IDE

PostPosted: Sat Jul 18, 2015 10:32 am
by martinayotte
To clear configs, you needs to use esptool.py with blank.bin file (you can find those on many sites)

Code: Select allesptool.py --port /dev/ttyUSB0 write_flash 0x0007c000 blank.bin 0x0007e000 blank.bin


Instead, if you look at examples of ESP8266WiFi, you can initialize it in AP mode, and then do nothing with it, until your decide to get it further.

Code: Select allWiFi.softAP("MyESPAP", "MyPassword");
WiFi.mode(WIFI_AP);