SOLVED: ESP 12E not running its sketch properly
Posted: Wed Aug 17, 2016 3:45 pm
Hi Guys!
I have been battling this ESP 12E for 2 days now. I must have read every forum on the NET
I have struggled to flash the ESP 12e just like MANY others on the net. Eventually I moved to esptool.py
To start with, I simply cannot get the esptool.py to work via the arduino IDE. I have tried to edit the platform.txt file by trying to follow this post: http://hpclab.blogspot.co.za/2015/06/es ... -os-x.html
To date, I have failed. HOWEVER, I have managed to flash the chips via the command prompt (in WIN10) and it flashes just fine. (I create the bin file and then flash it using esptool.py.)
What is simply not working is that I can flash the ESP 1 chips I have in this way, and they flash and run perfectly. BUT, when I try the same with the 12E's (i tried 3 already) they flash. perfectly. BUT only rubbish is showing on the Serial monitor. I am using a barebones sketch:
I also get EXACTLY the same result from the 1's vs the 12e's on the esptool.py
But on the 12e's i just get a few garbled chars and then nothing.
FYI:
My questions are thus:
1. Has anyone got any clue as to why this is?
2. Does anyone know how to integrate the esptool.py into the arduino environment?
Have a fab day!
Paul
I have been battling this ESP 12E for 2 days now. I must have read every forum on the NET
I have struggled to flash the ESP 12e just like MANY others on the net. Eventually I moved to esptool.py
To start with, I simply cannot get the esptool.py to work via the arduino IDE. I have tried to edit the platform.txt file by trying to follow this post: http://hpclab.blogspot.co.za/2015/06/es ... -os-x.html
To date, I have failed. HOWEVER, I have managed to flash the chips via the command prompt (in WIN10) and it flashes just fine. (I create the bin file and then flash it using esptool.py.)
What is simply not working is that I can flash the ESP 1 chips I have in this way, and they flash and run perfectly. BUT, when I try the same with the 12E's (i tried 3 already) they flash. perfectly. BUT only rubbish is showing on the Serial monitor. I am using a barebones sketch:
Code: Select all
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Hello");
delay(2000);
}
I also get EXACTLY the same result from the 1's vs the 12e's on the esptool.py
Code: Select all
c:\Python27\Scripts>esptool.py --port COM3 write_flash 0x00000 C:/Users/paul/l.bin
esptool.py v1.1
Connecting...
Running Cesanta flasher stub...
Flash params set to 0x0000
Writing 229376 @ 0x0... 229376 (100 %)
Wrote 229376 bytes at 0x0 in 19.9 seconds (92.1 kbit/s)...
Leaving...
But on the 12e's i just get a few garbled chars and then nothing.
FYI:
- I have checked the wiring 1000 times over, all is exactly as supposed to be on the 12e
I reset the chip after flashing
I use a very good power source
I am using the CP2012 programmer
The 12e ran fine initially with the AT firmware on it.
I have the 12e with the 8Mb 512/512
My questions are thus:
1. Has anyone got any clue as to why this is?
2. Does anyone know how to integrate the esptool.py into the arduino environment?
Have a fab day!
Paul