-->
Page 1 of 1

ESP-12 does not boot after flashing with 1.6.5

PostPosted: Thu Oct 29, 2015 3:50 am
by grmpf
I have a ESP-12 board, 1.6.5 arduino IDE and esp8266 boards package version 1.6.5-947. I purchased the board from http://www.amazon.de/gp/product/B00WJNHOGY. Unfortunately after flashing with esp8266 1.6.5 the board does not boot. In the UART monitor I see a few characters appearing, but then the board remains completely quiet. I tried various board settings in the IDE (dio, qio, flash size 512KB, 1M, 4M) but the result is always the same.

I have also a esp8266 boards package 1.6.4 in a backup ~/.arduino15 folder (modified to work with my NodeMCUv2, ->dio flash layout). If I use the old folder (v1.6.4) and build and flash the image(s) with that package the board boots without problems and executes the built program - with the same GPIO0/RST wiring I used before. :?:

My NodeMCUv2 can be successfully flashed with both, esp8266 1.6.4 and 1.6.5 and both versions boot.

I tried overriding the flash layout by adding a "-bm dio" parameter to esptool, no change. Also I tried using esptool 0.4.4, also no change. I conclude therefore it seems to be related with the binary flash image.

Does anybody have an idea?
Thanks

Re: ESP-12 does not boot after flashing with 1.6.5

PostPosted: Sat Oct 31, 2015 3:39 am
by schufti
try setting the baud to 74880 so you can see what the bootloader spits out, maybe something informative.
Did you try a simple sketch that only outputs something on serial?

Re: ESP-12 does not boot after flashing with 1.6.5

PostPosted: Mon Nov 30, 2015 3:23 am
by BeeGee
I have exactly the same problem (Arduino IDE 1.6.5 & ESP-12) I am using an Adafruit HUZZAH ESP8266 board.
After flashing the blink example the module doesn't output anything anymore.
Connection only possible with 74880 baud
Output after reset:
=================
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

ets_main.c

=================

Output after reset to flash mode (GPIO0 = GND, push reset, release reset)
=================
ets Jan 8 2013,rst cause:2, boot mode:(1,7)
=================

Maybe this output and the log from the script upload (below) helps.

Additional info:
Module has NodeMCU 0.9.6 flashed before trying to program with Arduino IDE
While flashing the module from Arduino IDE basically everything goes wrong.
Arduino IDE output while uploading Blink.cpp.bin.
=================
C:\Users\beegee\AppData\Roaming\Arduino15\packages\esp8266\tools\esptool\0.4.5/esptool.exe -vv -cd ck -cb 9600 -cp COM2 -ca 0x00000 -cf C:\Users\beegee\AppData\Local\Temp\build5613791736813791766.tmp/Blink.cpp.bin
esptool v0.4.5 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to ck
setting baudrate from 115200 to 9600
setting port from COM1 to COM2
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat C:\Users\beegee\AppData\Local\Temp\build5613791736813791766.tmp/Blink.cpp.bin success
setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
serialport_receive_C0: 45 instead of C0
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_open
Uploading 211376 bytes from C:\Users\beegee\AppData\Local\Temp\build5613791736813791766.tmp/Blink.cpp.bin to flash at 0x00000000
erasing flash
size: 0339b0 address: 000000
first_sector_index: 0
total_sector_count: 52
head_sector_count: 16
adjusted_sector_count: 36
adjusted_size: 024000
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
setting serial port timeouts to 10000 ms
setting serial port timeouts to 1000 ms
espcomm_send_command: receiving 2 bytes of data
writing flash
wrote 0, requested 1070
error: failed sending 1070 bytes
. wrote 0, requested 1044


.... above repeats from error:failed sending xxx bytes
... until final message:

warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
serialport_receive_C0: 01 instead of C0
warning: espcomm_send_command: didn't receive command response
closing bootloader
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete

=================

Re: ESP-12 does not boot after flashing with 1.6.5

PostPosted: Wed Dec 02, 2015 6:15 am
by BeeGee
Update!!!

Got it to work. Not sure what solved the problem, but I made 2 changes to the system:
a) Switched to Arduino IDE 1.6.6 (which came with "built-in" libraries for the ESP8266???)
-- Get an "WARNING: Category '' in library OneWire is not valid. Setting to 'Uncategorized'" message, but as I do not intent to use OneWire, I just ignore it.
b) Changed my USBtoTTL device.
-- I was using an Arduino Uno with SerialSoftware app as USBtoTTL device. ESP modules RX and TX were connected to pin 10 and 11 and Arduino sketch transfered data coming from Hardware serial to Software serial.
-- As I have Adafruit HUZZAH ESP module with level shifter on RX, I just connected ESP modules RX and TX directly to Arduino Uno's RX and TX

No more problems. Can flash the ESP8266 without problems now and the sketches are running fine.