Chat freely about anything...

User avatar
By lah
#48407 Hello,

I've successfully worked with a nodemcu, now I'm working with esp-12-e module

I'm trying to upload firmware on an esp-12-e module, I'm using https://moderndevice.com/product/usb-bub-ii/ USB-Serial
First I checked different modes described here :
wiki/doku.php?id=esp8266_gpio_pin_allocations

In normal running mode, I got "ready" message from UART and tried to send AT command threw UART. It did not respond.
After some investigations : I changed speed, checked boot mode... Finally I figured out I was powering ESP 12 e from ftdi 3.3v output that cannot output more than 50ma. So I powered it from a lab power supply, it did not work. Nothing changed, I checked voltage (current set to 800mA), it was @ 3.29, after increasing to 3.38V I was able to send AT command. So I added a 100µF capacitor between V+ and GND.
Even with this capacitor, voltage cannot be below ~ 3.33V, is esp8266 so sensitive to its power???

After this success I checked upload mode using esptool provided in arduino ide and esptool.py .
I pulled down GPIO0 and GPIO15 and pulled up reset on a button. Upload did not started...
So I added a 1.7K between GPIO15 and GND : upload started...
but it stops during process. See logs below. I tried changing speed, changing USB Serial adapter : nothing changes. I also tried on a different esp-12-e module : same result.
Consequently, now my module do not have a valid firmware : here is boot message (when GPIO0 pull down and up )
Code: Select all ets Jan  8 2013,rst cause:2, boot mode:(1,7)


 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

ets_main.c

After all theses steps, it seems esp8266 is very sensitive, does other people get same issues? Did I miss something? How to restore a valid firmware

lah

Code: Select allesptool/0.4.8/esptool -vv -cb 115200 -cp /dev/ttyUSB0 -ca 0x00000 -cf /tmp/build0be7415b86f9b8859be68a3a7e892dbd.tmp/sketch_jun01a.ino.bin
esptool v0.4.8 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting baudrate from 115200 to 115200
   setting port from /dev/ttyUSB0 to /dev/ttyUSB0
   setting address from 0x00000000 to 0x00000000
   espcomm_upload_file
   espcomm_upload_mem
opening port /dev/ttyUSB0 at 115200
   tcgetattr
   tcsetattr
   serial open
opening bootloader
resetting board
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   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
Uploading 223360 bytes from to flash at 0x00000000
   erasing flash
   size: 036880 address: 000000
   first_sector_index: 0
   total_sector_count: 55
   head_sector_count: 16
   adjusted_sector_count: 39
   erase_size: 027000
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   setting timeout 15000
   setting character timeout 150
   done
   setting timeout 1
   setting character timeout 1
   done
   espcomm_send_command: receiving 2 bytes of data
   writing flash
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
closing bootloader
error: espcomm_upload_mem failed


Code: Select allpython2 ./esptool.py -p /dev/ttyUSB0 -b 74880 write_flash 0x00000 /tmp/buildbd60bc48a9515550b07d9f4d0390193a.tmp/saeco_hack_example.ino.bin
esptool.py v1.2-dev
Connecting...
Running Cesanta flasher stub...

A fatal error occurred: Timed out waiting for packet header