New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to merge multiple .bin files into one file for flashing #254

Open
earlt opened this Issue Dec 26, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@earlt

earlt commented Dec 26, 2017

I am trying to create an image of the latest ESP8266_NONOS_SDK for an ESP8266-01 module using the latest esptool.py (v2.2)

Flashing with this works fine:

esptool.py --baud 115200 --port /dev/ttyUSB0 write_flash -fm dio -ff 40m -fs detect
0x00000 /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/boot_v1.7.bin
0x01000 /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/at/512+512/user1.1024.new.2.bin
0x81000 /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/at/512+512/user2.1024.new.2.bin
0x7E000 /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/blank.bin
0xFC000 /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/esp_init_data_default_v08.bin
0xFE000 /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/blank.bin

However, when I create an image via:

esptool.py -c esp8266 make_image
-f /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/boot_v1.7.bin -a 0x00000
-f /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/at/512+512/user1.1024.new.2.bin -a 0x01000
-f /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/at/512+512/user2.1024.new.2.bin -a 0x81000
-f /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/blank.bin -a 0x7E000
-f /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/esp_init_data_default_v08.bin -a 0xFC000
-f /opt/arduino/esp8266/ESP8266_NONOS_SDK-master/bin/blank.bin -a 0xFE000
ESP8266-Master

and try to flash the resultant image with:

esptool.py --baud 115200 --port /dev/ttyUSB0 write_flash -fm dio -ff 40m -fs detect 0x00 ESP8266-Master0x00000.bin

the ESP8266 does not respond.

Is there something wrong with make_image?

@projectgus

This comment has been minimized.

Member

projectgus commented Dec 26, 2017

Hi,

I think there is some confusion over the different kinds of binary images.
make_image is for making a single .bin file (the .bin files themselves contain segments which are mapped or loaded to particular addresses in RAM, this RAM load address is the meaning of the -a argument).

Merging multiple binaries into a single file, which can be flashed in one go, is not currently an esptool.py feature. Although I agree it would be good to have. The Windows GUI Flasher Tool can do this.

@projectgus projectgus changed the title from esptool.py make_image not working? to Command to merge multiple .bin files into one file for flashing Dec 26, 2017

@projectgus

This comment has been minimized.

Member

projectgus commented Dec 26, 2017

I've marked this an enhancement request for that feature.

@earlt

This comment has been minimized.

earlt commented Dec 27, 2017

Thanks for clearing up the confusion and marking it an enhancement. That will ge GREAT!

@earlt earlt closed this Dec 27, 2017

@projectgus projectgus reopened this Dec 27, 2017

@projectgus

This comment has been minimized.

Member

projectgus commented Dec 27, 2017

No problems. Will keep this open as an enhancement request until esptool.py has this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment