-->
Page 1 of 2

Firmware update with esptool

PostPosted: Mon Dec 29, 2014 9:34 pm
by KS8622
Hi!

I'm using esptool to update my AT firmware but I've no luck so far. Something I did wrong???


My setup:

I've a ESP-02 module (a blue one). I've pulled GPIO0 low and CH_PD high to enter bootloader mode. Since I have a USB to serial adapter I've used jumpers to do this. This seem to work. I can for example read the MAC via esptool:

Code: Select allsudo ./esptool.py --port /dev/ttyUSB0 --baud 115200 read_mac
Connecting...
MAC: 18:fe:34:98:55:62


I'm using latest version of esptool from https://github.com/themadinventor/esptool/

Next I've downloaded latest AT firmware from: http://bbs.espressif.com/viewtopic.php?f=5&t=64
Version is at_v0.20_14_11_28

The "bin" subfolder contains the binaries I've flashed using esptool:

Code: Select allsudo ./esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash 0x00000 ./bin/boot_v1.1.bin 0x01000 ./bin/user1.bin 0x41000 ./bin/user2.bin 0x7c000 .bin/esp_init_data_default.bin 0x7e000 ./bin/blank.bin
Connecting...
Erasing flash...
Writing at 0x00000600... (100 %)
Erasing flash...
Writing at 0x00036f00... (100 %)
Erasing flash...
Writing at 0x00076f00... (100 %)
Erasing flash...
Writing at 0x0007c000... (100 %)
Erasing flash...
Writing at 0x0007ef00... (100 %)

Leaving...


Since there was no address infos bundled with the latest AT firmware version I've used those of the previous one. The previous one contains a readme.txt in the "bin" subfolder with these addresses.

Since everything looks okay, I've pulled CH_PD to VCC and left GPIO0 open again and did a power cycle. There is some garbage output after power-on but it doesn't seem to react on commands any more. I've tried 9600,115200 and 57600 baud. I've tested the module before the update which responded okay then.

Something I did wrong? Is anyone successfully using this firmware?

Re: Firmware update with esptool

PostPosted: Wed Jan 07, 2015 2:29 pm
by erizet
Hi,

I have the same issue. Did you ever find out what was wrong?

Re: Firmware update with esptool

PostPosted: Wed Jan 07, 2015 3:17 pm
by sej7278
one too many binaries perhaps?

i usually use:

Code: Select allesptool.py --port /dev/ttyUSB0 write_flash \
    0x00000 eagle.app.v6.flash.bin \
    0x10000 eagle.app.v6.irom0text.bin \
    0x7c000 esp_init_data_default.bin \
    0x7e000 blank.bin

Re: Firmware update with esptool

PostPosted: Thu Jan 08, 2015 2:04 am
by Athena
Maybe this could help you http://bbs.espressif.com/viewtopic.php?f=21&t=93
By the way, I'm using this flash download tool... http://bbs.espressif.com/viewtopic.php?f=7&t=25