Flashing OTA binaries

stefan
Posts: 2
Joined: Sun Nov 15, 2015 11:16 pm

Flashing OTA binaries

Postby stefan » Sun Nov 15, 2015 11:32 pm

I'm new to this field so the answer might be obvious, but t's not to me...

While experimenting with a ESP-12 (4MB) I have successfully flashed the non-OTA version to my module: Afterwards I can connect to it using serial port at 115200 baud and everything works fine. However, when I try the same thing with an OTA version (user1.bin at position 0x01000) I only get garbage on the serial port. From what I have read this might be the module using the slightly unusual 77800 baud setting, but my computer is sadly lacking support for that baud rate so I can't access it :(

So, any idea if my baud rate guess might be correct? Is there anyway around it to set 115200 or another setting?
In addition I have found to boot.bin files, one called version 1.2 and one 1.4(b) but they seem to give me the same (or similar) garbage output. Which one is preferred?

(BTW, I'm using SDK 1.4.)

/Stefan

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Flashing OTA binaries

Postby ESP_Faye » Mon Nov 16, 2015 5:16 pm

Hi,

Did you use the AT firmware ?

Download the latest AT firmware, use Espressif Flash Download Tool to burn the bin files into Flash according to the "readme.txt".

Documentation about AT commands

If your problem is still unsolved, please provide the captured picture of Espressif Flash Download Tool while downloading.

stefan
Posts: 2
Joined: Sun Nov 15, 2015 11:16 pm

Re: Flashing OTA binaries

Postby stefan » Mon Nov 30, 2015 12:11 am

I previously tried with the AT software which was part of the SDK (and some debug print to get hint that the SW had changed). "noboot"
works nicely, but not the OTA-version.

I now tried the AT you linked to, and got exactly the same result - noboot works fine, OTA version, not so much. Still only garbage on the serial port when I reboot afterwards.

As I'm using linux (Ubuntu) I started with the open-sdk esptool to flash the firmware. The flash tool you linked to, is that basically the same with some GUI? I seem to missing some dependency for that package which I will try to fix, but from what I can see the flashing goes fine:

stefan:AT_v0.50$ ../esp-open-sdk/esptool/esptool.py write_flash -fs 4m 0x03fe000 at/blank.bin 0x7e000 at/blank.bin 0x01000 at/1024+1024/user1.2048.new.5.bin 0x0000 at/boot_v1.4\(b1\).bin
Connecting... - debug
Exception: Invalid head of packet
Erasing flash...
Wrote 4096 bytes at 0x003fe000 in 0.4 seconds (84.5 kbit/s)...
Erasing flash...
Wrote 4096 bytes at 0x0007e000 in 0.4 seconds (84.6 kbit/s)...
Erasing flash...
Wrote 279552 bytes at 0x00001000 in 27.4 seconds (81.6 kbit/s)...
Erasing flash...
Wrote 3072 bytes at 0x00000000 in 0.3 seconds (81.1 kbit/s)...

(I read somewhere that flashing in reverse order was better as I had some trouble when flashing in the regular order)

The flashing of the noboot version looks more or less identical, except for the binaries and their placement on disk.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Flashing OTA binaries

Postby ESP_Faye » Wed Dec 02, 2015 3:51 pm

Hi,

Please use Espressif official Flash Download Tool to download AT bin files into Flash.

If your problem is still unsolved, please provide the captured picture of Flash Download Tool while downloading.

Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 20 guests