Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By paulfer
#53175 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:

Code: Select allvoid 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 allc:\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
Last edited by paulfer on Wed Aug 24, 2016 7:30 pm, edited 1 time in total.
User avatar
By AcmeUK
#53183
But on the 12e's i just get a few garbled chars and then nothing

What you call 'a few garbled chars' may be messages from the boot loader at 74880 baud.

See this post http://www.esp8266.com/viewtopic.php?f=32&t=2664&hilit=74880

The boot time messages may give a clue to your problem!
User avatar
By paulfer
#53189
AcmeUK wrote:
But on the 12e's i just get a few garbled chars and then nothing

What you call 'a few garbled chars' may be messages from the boot loader at 74880 baud.

See this post http://www.esp8266.com/viewtopic.php?f=32&t=2664&hilit=74880

The boot time messages may give a clue to your problem!

Yes Indeed! changedto the 74880 and got this...
Code: Select allload 0x4010f000, len 1384, room 16
tail 8
chksum 0xad
csum 0xad
v09f0c112
~ld
e:
 ets Jan  8 2013,rst cause:3, boot mode:(3,7)

ets_main.c


Thanks ACME! Now to try and make sense of that!!???

Regds