igrr / esptool-ck

ESP8266 build/flash helper tool by Christian Klippel
GNU General Public License v2.0
364 stars 123 forks source link

Difference between esptool-ck and esptool.py? #34

Closed rayshobby closed 8 years ago

rayshobby commented 8 years ago

This is really a question instead of an issue. I am curious how esptool-ck is different from esptool.py (other than the obvious differences in the command line parameter names)? The reason I am asking is that when I flashed a firmware (compiled in Arduino) that uses SPIFFS, with esptool.py the device always fails to mount SPIFFS, while with esptool-ck it works fine. I am curious to find out why. Thanks.

nissimzur commented 8 years ago

Ray,

You can call my Skype nissim.test we can share experiment work on that

Kind regards, Dr. Nissim Zur Bluetooth Smart, IoT expert

http://www.elinistech.com/ CTO Elinistech Tel 0544 500635 Tel 03 5716699 Skype callto:nissim.test nissim.test Follow http://lnkd.in/TTnsGz Linkedin http://lnkd.in/TTnsGz Email nissim@elinistech.com

            <http://www.elinistech.com/> www.elinistech.com

From: Ray [mailto:notifications@github.com] Sent: Sunday, April 17, 2016 7:00 AM To: igrr/esptool-ck Subject: [igrr/esptool-ck] Difference between esptool-ck and esptool.py? (#34)

This is really a question instead of an issue. I am curious who esptool-ck is different from esptool.py (other than the obvious differences in the command line parameter names)? The reason I am asking is that when I flashed a firmware (compiled in Arduino) that uses SPIFFS, with esptool.py the device always fails to mount SPIFFS, while with esptool-ck it works fine. I am curious to find out why. Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/igrr/esptool-ck/issues/34 https://github.com/notifications/beacon/ADgOR-Qlq-QFk9irT2rhMCeKYmErvsH4ks5p4bAxgaJpZM4IJFGd.gif

igrr commented 8 years ago

The issue you are seeing might be related to the way esptool.py modifies binary image header. Esptool-ck sets the flash chip size field of the binary image header when the .bin file is generated. Esptool.py, on the other hand, modifies this field when .bin file is loaded into flash. I think you can work around this by passing correct flash size parameter to esptool.py when you upload.

tonyrui commented 8 years ago

OK, that makes a lot of sense. I will try it later. Thanks for the explanation.