helping reading flash log, partially flashed device?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ema
New user
Posts: 2
Joined: 15 Jul 2018, 20:22

helping reading flash log, partially flashed device?

#1 Post by ema » 15 Jul 2018, 20:43

someone willing to read the espflash log and point me in the right direction? I tried different baudrates as well. Now, it acts like bricked device. Have no idea how to reset it/get into it; it's registered on the network though:-).
thanks in advance.

######2018-07-15######
#######0.00.025#######
######FLASH INFO######
BIN file: sonoff-allsensors.bin
COM port: (COM6) USB-SERIAL CH340
Baud rate: 9600
! FORCED DOUT ENABLED !
######POST FLASH######
No post flash information entered...
######FLASH LOG######
[esptool.exe -vv -bm dout -cd nodemcu -cb 9600 -cp COM6 -ca 0x00000 -cf "C:\Downloads\BIN\sonoff-allsensors.bin"]
[7/15/2018 7:56:39 PM] esptool v0.4.12 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
[7/15/2018 7:56:39 PM] setting flash mode from qio to dout
[7/15/2018 7:56:39 PM] setting board to nodemcu
[7/15/2018 7:56:39 PM] setting baudrate from 115200 to 9600
[7/15/2018 7:56:39 PM] setting port from to COM6
[7/15/2018 7:56:39 PM] setting address from 0x00000000 to 0x00000000
[7/15/2018 7:56:39 PM] espcomm_upload_file
[7/15/2018 7:56:39 PM] espcomm_upload_mem
[7/15/2018 7:56:39 PM] setting serial port timeouts to 1000 ms
[7/15/2018 7:56:39 PM] opening bootloader
[7/15/2018 7:56:39 PM] resetting board
[7/15/2018 7:56:39 PM] trying to connect
[7/15/2018 7:56:39 PM] flush start
[7/15/2018 7:56:39 PM] setting serial port timeouts to 1 ms
[7/15/2018 7:56:39 PM] setting serial port timeouts to 1000 ms
[7/15/2018 7:56:39 PM] flush complete
[7/15/2018 7:56:39 PM] espcomm_send_command: sending command header
[7/15/2018 7:56:39 PM] espcomm_send_command: sending command payload
[7/15/2018 7:56:39 PM] read 0, requested 1
[7/15/2018 7:56:39 PM] trying to connect
[7/15/2018 7:56:39 PM] flush start
[7/15/2018 7:56:39 PM] setting serial port timeouts to 1 ms
[7/15/2018 7:56:39 PM] setting serial port timeouts to 1000 ms
[7/15/2018 7:56:39 PM] flush complete
[7/15/2018 7:56:39 PM] espcomm_send_command: sending command header
[7/15/2018 7:56:39 PM] espcomm_send_command: sending command payload
[7/15/2018 7:56:39 PM] espcomm_send_command: receiving 2 bytes of data
[7/15/2018 7:56:39 PM] espcomm_send_command: receiving 2 bytes of data
[7/15/2018 7:56:39 PM] espcomm_send_command: receiving 2 bytes of data
[7/15/2018 7:56:39 PM] espcomm_send_command: receiving 2 bytes of data
[7/15/2018 7:56:39 PM] espcomm_send_command: receiving 2 bytes of data
[7/15/2018 7:56:39 PM] espcomm_send_command: receiving 2 bytes of data
[7/15/2018 7:56:39 PM] espcomm_send_command: receiving 2 bytes of data
[7/15/2018 7:56:39 PM] espcomm_send_command: receiving 2 bytes of data
[7/15/2018 7:56:39 PM] Uploading 564912 bytes from C:\Downloads\BIN\sonoff-allsensors.bin to flash at 0x00000000
[7/15/2018 7:56:39 PM] erasing flash
[7/15/2018 7:56:39 PM] size: 089eb0 address: 000000
[7/15/2018 7:56:39 PM] first_sector_index: 0
[7/15/2018 7:56:39 PM] total_sector_count: 138
[7/15/2018 7:56:39 PM] head_sector_count: 16
[7/15/2018 7:56:39 PM] adjusted_sector_count: 122
[7/15/2018 7:56:39 PM] erase_size: 07a000
[7/15/2018 7:56:39 PM] espcomm_send_command: sending command header
[7/15/2018 7:56:39 PM] espcomm_send_command: sending command payload
[7/15/2018 7:56:39 PM] setting serial port timeouts to 15000 ms
[7/15/2018 7:56:39 PM] read 0, requested 1
[7/15/2018 7:56:39 PM] setting serial port timeouts to 1000 ms
[7/15/2018 7:56:39 PM] warning: espcomm_send_command: didn't receive command response
[7/15/2018 7:56:39 PM] warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
[7/15/2018 7:56:39 PM] closing bootloader
[7/15/2018 7:56:39 PM] flush start
[7/15/2018 7:56:39 PM] setting serial port timeouts to 1 ms
[7/15/2018 7:56:39 PM] setting serial port timeouts to 1000 ms
[7/15/2018 7:56:39 PM] flush complete
[7/15/2018 7:56:39 PM] error: espcomm_upload_mem failed
[2018-07-15 19:56:39] DONE! BUT WITH (1) ERRORS!
############################
[2018-07-15 19:56:39] JOB COMPLETED, over and out!

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: helping reading flash log, partially flashed device?

#2 Post by grovkillen » 15 Jul 2018, 21:56

If you open the serial monitor, do you see anything?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

ema
New user
Posts: 2
Joined: 15 Jul 2018, 20:22

Re: helping reading flash log, partially flashed device?

#3 Post by ema » 16 Jul 2018, 18:22

thanks for the reply....no it doesn't communicate on the given com port. used termite,putty.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: helping reading flash log, partially flashed device?

#4 Post by grovkillen » 16 Jul 2018, 19:07

But if you use my Flasher? It got a "monitor serial" button.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: helping reading flash log, partially flashed device?

#5 Post by TD-er » 18 Jul 2018, 22:01

9600 baud is quite low.
Imagine sending about 700 kByte over 9600 bps. :)

What other sensors are connected to the node?
What node are you using?

On a NodeMCU for example, is a "flash" button, which connects GPIO-0 to GND to bring the device in flash mode (Hold the flash button and press reset)
If there is something connected to this GPIO-0, then it may be possible the node will never get into flash mode.
Also if there is something connected to the pins used to communicate over the serial port, then the flash-data may be corrupted.

You also must make sure the node is powered sufficiently and with the right voltage.
Some of the cheap USB to serial adapters have not enough power, and/or do not deliver 3.3V on the pins labeled as such, but just output 5V.

So there are numerous reasons a flash may fail.

Make sure no other programs are connecting to the serial port.

Post Reply

Who is online

Users browsing this forum: No registered users and 63 guests