-->
Page 1 of 1

how to generate bin file for IoT Demo FOTA example

PostPosted: Tue Nov 03, 2015 1:50 pm
by whyameye
I have the IoT Demo code for FOTA running fine on an ESP-12e. It will download the binary firmware and try to install it from my own server. The problem is that binary file doesn't seem to be formatted correctly for FOTA. When I generate binary for the 8266 I end up with 2 binary files: 00x00000.bin 0x40000.bin. If I try to use either of these for the updated firmware, the 12e crashes on reboot. However, if I upload these with esptool through the USB they work fine.

If this requires the official flash loader that could be a problem. I can't (or can't seem to figure out how to) use the official Espressif flash loader as I am running in Linux (ubuntu 14.04) and it doesn't seem to build or run in that environment. I'm suspecting that isn't my problem; that it is more a matter of determining the correct build parameters to generate the appropriate bin file.

I tried using gen_misc.sh to generate my binaries but that didn't seem to help.

I see that the arduino IDE for the 8266 somehow generates only 1 binary, and that binary works for both their USB download and the FOTA updates. I'm not sure how they are doing that though.

-John