Post topics, source code that relate to the Arduino Platform
User avatar
By paksoft
#23558 Hello dude,

I'm new to ESP8266 environment, but I've some experience on Arduino programming. I've a ESP8266 dev board from ebay, 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 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..!!!

User avatar
By martinayotte
#23561 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.
User avatar
By martinayotte
#23567 To clear configs, you needs to use with blank.bin file (you can find those on many sites)

Code: Select --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");