ESP Easy Flasher

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

ESP Easy Flasher

#1 Post by grovkillen » 29 Dec 2017, 14:25

ESP Easy Flasher (0.00.020)
A wrapper for the excellent command line tool ESPTOOL.exe and PowerShell. ESPTOOL.exe is used for flashing, PowerShell for serial (post flash) programming. All needed files are included in the EXE file, just download it and place it where you want it. It will extract needed file structure and missing files automatically. The idea behind the app is to make the flashing and setup of ESP Easy FW as stream lined as possible. It's still a very early stage but should hopefully be functional for most use-cases.

Flash features:
  • Flash ESP8266 (+ESP8285) using embedded ESPTOOL.exe [0.4.12]
  • Use maximum baud rate if wanted
  • Use forced DOUT if wanted



Post flash features:
  • Set Unit name, number, admin password, Wifi settings, IP
  • Activate and upload rules
  • Monitor serial port using plink.exe



Implemented
NOT implemented but on todo list

EXTRA INFO:
Agency FB is the font used within the app, if not present the app will kindly ask you to drag-and-drop the two font files found in the APP_DATA folder to the FONTS folder (automatically opened).
Admin rights are needed to be able to get COM port names (driver names).
BIN files need to be placed in the BIN folder (might change in the future but I plan to automatically download new releases from GitHub)
Log files for each flash will be placed in the Log folder.
Debug log is created by: save settings and open the ini file, change debug level 0 to 1, restart app and a bug log file will appear in the same place as the exe. Debug logs are sent here, but please add information (email, name etc.) in the text file prior to upload!
ERROR handling if the flash tool is telling you that an error has occured, a standard test is to simply reset the unit (if the unit has a switch for this, use that one, else disconnect the cable) and then try again. Flashing over serial is not an exact science.

I plan add more features on a weekly basis. Thanks for all the feedback!

>>RELEASES ARE FOUND HERE<<
Attachments
Screenshot.png
Screenshot.png (48.62 KiB) Viewed 121422 times
Last edited by grovkillen on 28 Mar 2018, 20:32, edited 19 times in total.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: ESP Easy Flasher

#2 Post by mrwee » 29 Dec 2017, 16:52

Very nice! Good work. Will try it out :)

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: ESP Easy Flasher

#3 Post by papperone » 29 Dec 2017, 17:05

That looks so nice and useful!
Will give it a try once I am back from my seasonal holidays!!!
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#4 Post by grovkillen » 29 Dec 2017, 18:51

The rules are not implemented yet. Thanks for the thumbs up!
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Flasher

#5 Post by Shardan » 29 Dec 2017, 19:30

Just downloaded.. will test as soon as possible.
Regards
Shardan

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: ESP Easy Flasher

#6 Post by AndrewJ » 29 Dec 2017, 20:40

That looks fantastically useful, thank you! :)
AndrewJ

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#7 Post by grovkillen » 29 Dec 2017, 21:31

Thanks for the feedback, hopefully you will find it useful. In will add more info on the GitHub page in how to use it etc. But I wanted it out in the wild asap ;)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#8 Post by budman1758 » 29 Dec 2017, 22:29

This looks great! Does it also work on ESP32?
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#9 Post by grovkillen » 29 Dec 2017, 23:20

budman1758 wrote: 29 Dec 2017, 22:29 This looks great! Does it also work on ESP32?
No, ESP32 is not supported.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

jeti
New user
Posts: 6
Joined: 05 Jun 2017, 21:16

Re: ESP Easy Flasher

#10 Post by jeti » 31 Dec 2017, 11:03

looks awesome!
just tested it on a wemos d1 mini (system is Windws 10):
- COM port: Dropdown took a while, but works, found the correct COM -> i just double checked did not find the correct COM port
- Firmware: works fine if bin is in "BIN" folder "Browse" only opens file explorer wich no way to choose the wanted bin
- Fields for Details are working but format is off
- "flash ESP Easy" did "start" but not the flashing process
- Log Folder is empty

do you need anymore Information?
Thanks for your awesome work!
Attachments
Capture.PNG
Capture.PNG (33.44 KiB) Viewed 121556 times

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#11 Post by grovkillen » 31 Dec 2017, 12:04

jeti wrote: 31 Dec 2017, 11:03 looks awesome!
just tested it on a wemos d1 mini (system is Windws 10):
- COM port: Dropdown took a while, but works, found the correct COM -> i just double checked did not find the correct COM port
- Firmware: works fine if bin is in "BIN" folder "Browse" only opens file explorer wich no way to choose the wanted bin
- Fields for Details are working but format is off
- "flash ESP Easy" did "start" but not the flashing process
- Log Folder is empty

do you need anymore Information?
Thanks for your awesome work!
Thanks for feedback! I will try to update later today (especially include the font and log failed attempts of flash). :oops:
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#12 Post by grovkillen » 31 Dec 2017, 20:39

jeti wrote: 31 Dec 2017, 11:03 looks awesome!
just tested it on a wemos d1 mini (system is Windws 10):
- COM port: Dropdown took a while, but works, found the correct COM -> i just double checked did not find the correct COM port
- Firmware: works fine if bin is in "BIN" folder "Browse" only opens file explorer wich no way to choose the wanted bin
- Fields for Details are working but format is off
- "flash ESP Easy" did "start" but not the flashing process
- Log Folder is empty

do you need anymore Information?
Thanks for your awesome work!
I have now included the missing font in the latest release (0.00.007).
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#13 Post by grovkillen » 02 Jan 2018, 13:59

Ok, I have now released a new version (0.00.008) which allows you to upload rules (if you have activated "post flash actions"). I also made the log much more extensive and tried to find possible errors. It will now warn more if the flash didn't complete as suspected.

ENJOY! :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: ESP Easy Flasher

#14 Post by mrwee » 02 Jan 2018, 17:19

Kanon bra - tack! :D

joemoer
New user
Posts: 2
Joined: 02 Jan 2018, 09:49

Re: ESP Easy Flasher

#15 Post by joemoer » 03 Jan 2018, 17:12

grovkillen wrote: 31 Dec 2017, 20:39
jeti wrote: 31 Dec 2017, 11:03 looks awesome!
just tested it on a wemos d1 mini (system is Windws 10):
- COM port: Dropdown took a while, but works, found the correct COM -> i just double checked did not find the correct COM port
- Firmware: works fine if bin is in "BIN" folder "Browse" only opens file explorer wich no way to choose the wanted bin
- Fields for Details are working but format is off
- "flash ESP Easy" did "start" but not the flashing process
- Log Folder is empty

do you need anymore Information?
Thanks for your awesome work!
I have now included the missing font in the latest release (0.00.007).
Just tested your 0.00.009 version. I am getting the same problem as "jeti".
The program indicates that it has started flashing, but "esptool" is not opening and nothing is being written into the log folder. Device not programmed.
This on two windows 10 (64 bit) PC's.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#16 Post by grovkillen » 03 Jan 2018, 17:21

Sorry to hear that. In guess (?) it's the ESPTOOL issue (#60) you are experiencing....

https://github.com/igrr/esptool-ck/issues/60

I will try to capture this error (in worst care a time out trigger). So at least the log will output this... Thanks for the feedback!

I wish I had 64-bit Windows 10 at home to test. Will try to fix tomorrow.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#17 Post by grovkillen » 03 Jan 2018, 19:29

joemoer wrote: 03 Jan 2018, 17:12 ...
I realized that I do have a 64-bit Win10 machine at home. I will try to see if this is an issue for me as well...
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#18 Post by grovkillen » 03 Jan 2018, 19:50

I have now tested and I cannot reproduce the issue. But I do get problem if the COM1 is not occupied by any driver. I changed one of my higher COM port drivers to point to COM1 and it started working as intended. Is this an issue that could be what you're experiencing? See how I changed the settings in the picture below:
control panel --- device manager --- settings for com port --- port settings --- advanced --- com port number
Attachments
SettingsforCOM.png
SettingsforCOM.png (370.56 KiB) Viewed 119866 times
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#19 Post by budman1758 » 03 Jan 2018, 19:58

I'm having a similar problem. Windows 10 64 bit laptop. Does not list the COM ports correctly or at all. When the active ports box is checked I get no ports listed. When unchecked it shows some (not all) and says (off line) after the name.

I will try the flasher on my server later. Its a Windows 7 machine. 64 bit.
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#20 Post by grovkillen » 03 Jan 2018, 20:10

budman1758 wrote: 03 Jan 2018, 19:58 I'm having a similar problem. Windows 10 64 bit laptop. Does not list the COM ports correctly or at all. When the active ports box is checked I get no ports listed. When unchecked it shows some (not all) and says (off line) after the name.

I will try the flasher on my server later. Its a Windows 7 machine. 64 bit.
Could you please check and see if COM1 is occupied?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#21 Post by budman1758 » 03 Jan 2018, 20:37

I just tried to move the com port to com1 like your example and it now shows a USB/Serial device. Tried to flash a module but nothing happens. ESP Tool window does not come up. Module not flashed.
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#22 Post by grovkillen » 03 Jan 2018, 20:55

budman1758 wrote: 03 Jan 2018, 20:37 I just tried to move the com port to com1 like your example and it now shows a USB/Serial device. Tried to flash a module but nothing happens. ESP Tool window does not come up. Module not flashed.
The ESPTOOL command window is hidden and should not pop up (might need to make a device debug setting which show everything)... I need to fix the issue with unassigned com1. Is the found com port the correct one of you check in the device manager?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#23 Post by budman1758 » 03 Jan 2018, 22:01

Almost every time I insert the USB flasher it comes up as com4 or com5. Using your example I "forced" it to com1. It now shows as a USB Serial device. But it does not flash the module. Zero activity shows on the device. It has two leds for rx and tx. Click the flash button in the app and info window says "Start flashing on com1" but nothing is happening.
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#24 Post by grovkillen » 03 Jan 2018, 22:10

budman1758 wrote: 03 Jan 2018, 22:01 Almost every time I insert the USB flasher it comes up as com4 or com5. Using your example I "forced" it to com1. It now shows as a USB Serial device. But it does not flash the module. Zero activity shows on the device. It has two leds for rx and tx. Click the flash button in the app and info window says "Start flashing on com1" but nothing is happening.
Super weird. What does the log file say? (Located in the log folder)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#25 Post by budman1758 » 03 Jan 2018, 22:46

Log folder is empty. :shock:
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#26 Post by grovkillen » 03 Jan 2018, 22:54

Now that tells me that something else is causing the problem!

Can you tell me the search way / path that you have your exe in?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#27 Post by budman1758 » 03 Jan 2018, 23:10

C:\Users\Budman\Documents\Arduino Docs\ESPeasy Stuff\Flash Utilities\ESP_Easy_Flasher-master

Made a copy and put it the root of the C drive and getting same behaviour.
"The glass is twice as big as it needs to be".

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP Easy Flasher

#28 Post by TD-er » 03 Jan 2018, 23:37

budman1758 wrote: 03 Jan 2018, 23:10 C:\Users\Budman\Documents\Arduino Docs\ESPeasy Stuff\Flash Utilities\ESP_Easy_Flasher-master

Made a copy and put it the root of the C drive and getting same behaviour.
Perhaps also try in C:\Users\Budman\Documents\
The root of the C drive may be a permission issue to write there and the other one has a space in the path, which is generally very often an issue with software.
So just to exclude both, try to save in your own documents folder.
Of try to run it as administrator.

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#29 Post by budman1758 » 04 Jan 2018, 00:47

TD-er wrote: 03 Jan 2018, 23:37
Perhaps also try in C:\Users\Budman\Documents\
The root of the C drive may be a permission issue to write there and the other one has a space in the path, which is generally very often an issue with software.
So just to exclude both, try to save in your own documents folder.
Of try to run it as administrator.
Tried it in Documents root. Same behaviour.
I always run it as Admin.
"The glass is twice as big as it needs to be".

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#30 Post by budman1758 » 04 Jan 2018, 01:25

I'm also having the same problems on my Win 7 64 bit machine. Is this a "64 bit" problem?
As a side note. After hitting the x to close the program it is still running in Task Manager. Have to kill the process. This is on Win 7 and NOT on my Win 10 machine. Strangeness abounds...... :?
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#31 Post by grovkillen » 04 Jan 2018, 05:55

budman1758 wrote: 04 Jan 2018, 01:25 I'm also having the same problems on my Win 7 64 bit machine. Is this a "64 bit" problem?
As a side note. After hitting the x to close the program it is still running in Task Manager. Have to kill the process. This is on Win 7 and NOT on my Win 10 machine. Strangeness abounds...... :?
I will test it further today. Hopefully I can trigger the behavior on another computer. Sir thank you for your time and help!
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#32 Post by budman1758 » 04 Jan 2018, 07:04

grovkillen wrote: 04 Jan 2018, 05:55 I will test it further today. Hopefully I can trigger the behavior on another computer. Sir thank you for your time and help!
Ain't no thing Bro. Anyway I can help, I'm there. :mrgreen:
I just wish I could help on the programming side. There, me be pretty much useless.... :lol:
"The glass is twice as big as it needs to be".

dennist
New user
Posts: 1
Joined: 04 Jan 2018, 21:44

Re: ESP Easy Flasher

#33 Post by dennist » 04 Jan 2018, 21:46

Same here. i do not see any com ports.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#34 Post by grovkillen » 04 Jan 2018, 22:13

I'm really sorry to hear this. I will try to make a version with more debug output. Thank you all for the feedback. I will make this work! :shock: ;)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#35 Post by grovkillen » 05 Jan 2018, 11:03

budman1758 wrote: 04 Jan 2018, 07:04
grovkillen wrote: 04 Jan 2018, 05:55 I will test it further today. Hopefully I can trigger the behavior on another computer. Sir thank you for your time and help!
Ain't no thing Bro. Anyway I can help, I'm there. :mrgreen:
I just wish I could help on the programming side. There, me be pretty much useless.... :lol:
I have now released a new version (not in released folder) but in the main code page. Please download it and test. You need to save a default settings file and change the debug level from 0 to 1. If you don't get that far you can download it from me here (place it in the settings folder).

You can upload the DEBUG FILE here: https://dbinbox.com/harkrank
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#36 Post by grovkillen » 05 Jan 2018, 18:09

I have started to re-write the com scanner module, I think it will work more generically. Stay tuned.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#37 Post by grovkillen » 06 Jan 2018, 14:38

I have now commited 0.00.014 with the new com scanner module. I hope this will fix a lot of the issues reported here :oops:

ONLY usb com ports are being scanned with this new com scanner, I think no one really uses "true" com ports?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Flasher

#38 Post by Shardan » 07 Jan 2018, 00:47

Just a rough idea:

If i remember right the Esptool is able to detect the flash type/size and it is able to erase the flash.

Would be a nice expansion to your tool if I'm right
.

Regards
Shardan
Regards
Shardan

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#39 Post by grovkillen » 07 Jan 2018, 07:27

Shardan wrote: 07 Jan 2018, 00:47 Just a rough idea:

If i remember right the Esptool is able to detect the flash type/size and it is able to erase the flash.

Would be a nice expansion to your tool if I'm right
.

Regards
Shardan
I might add that as well, thanks for the idea. Erase flash is actually something I'd use from time to time. Thanks! :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP Easy Flasher

#40 Post by TD-er » 07 Jan 2018, 10:35

Shardan wrote: 07 Jan 2018, 00:47 Just a rough idea:

If i remember right the Esptool is able to detect the flash type/size and it is able to erase the flash.

Would be a nice expansion to your tool if I'm right
.

Regards
Shardan
Yesterday I added some info (in a pull request) to display all information of the flash possible.
Adding a "erase all flash" from within ESPeasy is not that hard. (just to erase all settings, not the firmware itself)
I already saw the instructions for it, when browsing the code to determine the flash size, speed, etc.
It now prints in the sysinfo screen:

Code: Select all

ESP Chip ID:	1649343
ESP Chip Freq:	80 MHz
Flash Chip ID:	Vendor: 0xE0 Device: 0x4016
Flash Chip Real Size:	4096 kB
Flash IDE Size:	4096 kB
Flash IDE speed:	40 MHz
Flash IDE mode:	DIO
I still have to look into determine the ESP chip, since the current ID shown is just the last halve of the MAC address, when using an ESP8266.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#41 Post by grovkillen » 08 Jan 2018, 20:05

Please give me feedback if the new com scanner is not working! :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#42 Post by budman1758 » 08 Jan 2018, 22:04

OK. Here is whats happening on my Win 10 64bit system. I have 2 USB to serial devices. 1 is a CH340 1 dollar China unit. The other is a genuine FTDI chip unit I got from Adafruit.
No matter what com port I either manually assign or let windows assign the flash program NEVER identifies the FTDI device.
The flash program correctly identifies the CH340 EVERY time with the correct com port.
NEITHER of them work however. I go through the motions to flash a module and the program acts like all is well but nothing happens. Zero activity out of the serial device. Program window says "flashing.. might take a few" but nothing is working. When I press flash button it greys out and stays that way until I exit the program.

Maybe of interest... When I exit the program BEFORE attempting to flash it exits cleanly. If I press flash button and then try to exit the program it ACTS like it exits cleanly but in Windows task manager it is still running. Couple of screenshots of that are in your upload folder.

Always run as admin. There are 2 hidden windows running in the background. Might be helpful if those were visible during testing.


I uploaded some screenshots and log files to your upload location. Log file does not look very helpful. (to me anyway. :ugeek: )

Hope this is helpful. Sorry it took a while to get back on this. Let me know what else I can do to help.
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#43 Post by grovkillen » 08 Jan 2018, 22:38

Thank you very much. The debug should show the command windows, I will make that in the next version. The debug log is supposed to be filled with approx 10000+ of code of working properly so we have some issue there it seems. The screenshots of the device manager showing com5, is that the FTDI programmer? Shouldn't the driver state something more specific than "serial..."?

I will upload a new version tomorrow, much appreciated that you take your time. I will get to the bottom of this! 8-)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#44 Post by budman1758 » 08 Jan 2018, 23:19

grovkillen wrote: 08 Jan 2018, 22:38 The screenshots of the device manager showing com5, is that the FTDI programmer? Shouldn't the driver state something more specific than "serial..."?
Yes, it is. It does show more detail if you go into the properties a bit deeper. I would have thought the same thing. Kinda generic for a $17 dollar "genuine FTDI". :roll:
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#45 Post by grovkillen » 09 Jan 2018, 11:26

budman1758 wrote: 08 Jan 2018, 23:19
grovkillen wrote: 08 Jan 2018, 22:38 The screenshots of the device manager showing com5, is that the FTDI programmer? Shouldn't the driver state something more specific than "serial..."?
Yes, it is. It does show more detail if you go into the properties a bit deeper. I would have thought the same thing. Kinda generic for a $17 dollar "genuine FTDI". :roll:
Please try latest release ... https://github.com/Grovkillen/ESP_Easy_ ... g/0.00.016
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#46 Post by budman1758 » 09 Jan 2018, 20:18

grovkillen wrote: 09 Jan 2018, 11:26 Please try latest release ... https://github.com/Grovkillen/ESP_Easy_ ... g/0.00.016
OK. Still not finding my FTDI serial port. Correctly finds the CH340 on correct com port. Lots of windows flicker in background.
When the app window appears it is still scanning for comports.
When done a command window opens and at the top is says cannot find the specified path.
The command line is focused in the APP_DATA folder of the flash app.
Even when trying with my CH340 device nothing happens.
I uploaded my debug file to your dropbox. It's quite a bit more informative.
Hope this helps.
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#47 Post by grovkillen » 09 Jan 2018, 20:30

budman1758 wrote: 09 Jan 2018, 20:18
grovkillen wrote: 09 Jan 2018, 11:26 Please try latest release ... https://github.com/Grovkillen/ESP_Easy_ ... g/0.00.016
OK. Still not finding my FTDI serial port. Correctly finds the CH340 on correct com port. Lots of windows flicker in background.
When the app window appears it is still scanning for comports.
When done a command window opens and at the top is says cannot find the specified path.
The command line is focused in the APP_DATA folder of the flash app.
Even when trying with my CH340 device nothing happens.
I uploaded my debug file to your dropbox. It's quite a bit more informative.
Hope this helps.

Great! I have come to the conclusion that since I now only scan for USB TTL ports the FTDI might not consider itself as such?

(COM4) Silicon Labs CP210x USB to UART Bridge
(COM6) USB-SERIAL CH340
(COM7) USB-SERIAL CH340
(COM8) USB-SERIAL CH340
(COM8) USB-SERIAL CH340

Those are found with USB but I bet the FTDI specifies itself as good ol serial..? If you go to the device manager and look in the code described in the picture below. What does that say for the FTDI programmer?

Also the date format is messing with my variables since the US "\" between the dates are interpreted as path's (in my code). I will hard code ISO date :)

Lastly, the APP_DATA folder, what files is inside of it?

(Flickering is me pinging com ports, I will continue ping 10 com ports above the last one scraped from the registry...) 8-)
Attachments
Skärmklipp.PNG
Skärmklipp.PNG (202.79 KiB) Viewed 121840 times
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#48 Post by budman1758 » 09 Jan 2018, 21:06

My device is not the one in your screenshot. It is COM5 also.
The APP_DATA folder contains:
esptool.exe
TimeStamp.vbs

Screenshot of what I believe is similar to yours.
I have hidden devices showing. Those are the ones that are greyed out.
Hope this helps.
Capture.JPG
Capture.JPG (95.19 KiB) Viewed 121834 times
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESP Easy Flasher

#49 Post by grovkillen » 09 Jan 2018, 21:35

budman1758 wrote: 09 Jan 2018, 21:06 ...
I have now hopefully squished the last two bugs (the date/time and the FTDI problem)... :oops: :D :ugeek:

https://github.com/Grovkillen/ESP_Easy_ ... g/0.00.017
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: ESP Easy Flasher

#50 Post by budman1758 » 09 Jan 2018, 22:05

grovkillen wrote: 09 Jan 2018, 21:35 I have now hopefully squished the last two bugs (the date/time and the FTDI problem)... :oops: :D :ugeek:
Methinks you be making great progress dude!! It WORKS!!! :D
Found the correct ports for both of my devices.
Tried to flash a new -01 module and it flashed it fine but the app says it ended with an error. I had it set to post flash options and I think that's where the error might be cause the unit flashed fine. I connected with Putty and set the wifi stuff and its up and running. Here is the log output.
:ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek: :ugeek:

Code: Select all

######2018-01-09######
#######0.00.017#######
######FLASH INFO######
BIN file: ESP_Easy_v2.0.0-dev13_test_ESP8266_1024.bin
COM port: (COM5) USB Serial Port
Baud rate: 115200
######POST FLASH######
Unit name: test
Unit number: 26
Admin password: 
WiFi SSID 1: xxxxxxxxxx
WiFi password 1: xxxxxxxxxx
WiFi SSID 2: 
WiFi password 2: 
IP: <DHCP>
######FLASH LOG######
[esptool.exe -vv -cd nodemcu -cb 115200 -cp COM5 -ca 0x00000 -cf "C:\Users\Budman\Documents\Arduino Docs\ESPeasy Stuff\Flash Utilities\ESP_Easy_Flasher-master\BIN\ESP_Easy_v2.0.0-dev13_test_ESP8266_1024.bin"]
[1/9/2018 12:50:04 PM] esptool v0.4.12 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
[1/9/2018 12:50:04 PM] 	setting board to nodemcu
[1/9/2018 12:50:04 PM] 	setting baudrate from 115200 to 115200
[1/9/2018 12:50:04 PM] 	setting port from  to COM5
[1/9/2018 12:50:04 PM] 	setting address from 0x00000000 to 0x00000000
[1/9/2018 12:50:04 PM] 	espcomm_upload_file
[1/9/2018 12:50:04 PM] 	espcomm_upload_mem
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1000 ms
[1/9/2018 12:50:04 PM] opening bootloader
[1/9/2018 12:50:04 PM] resetting board
[1/9/2018 12:50:04 PM] trying to connect
[1/9/2018 12:50:04 PM] 	flush start
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1 ms
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1000 ms
[1/9/2018 12:50:04 PM] 	flush complete
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command header
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command payload
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2013 bytes of data
[1/9/2018 12:50:04 PM] 	read 0, requested 1
[1/9/2018 12:50:04 PM] error: failed reading byte
[1/9/2018 12:50:04 PM] warning: espcomm_send_command: can't receive slip payload data
[1/9/2018 12:50:04 PM] trying to connect
[1/9/2018 12:50:04 PM] 	flush start
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1 ms
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1000 ms
[1/9/2018 12:50:04 PM] 	flush complete
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command header
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command payload
[1/9/2018 12:50:04 PM] 	read 0, requested 1
[1/9/2018 12:50:04 PM] trying to connect
[1/9/2018 12:50:04 PM] 	flush start
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1 ms
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1000 ms
[1/9/2018 12:50:04 PM] 	flush complete
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command header
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command payload
[1/9/2018 12:50:04 PM] 	serialport_receive_C0: 72 instead of C0
[1/9/2018 12:50:04 PM] resetting board
[1/9/2018 12:50:04 PM] trying to connect
[1/9/2018 12:50:04 PM] 	flush start
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1 ms
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1000 ms
[1/9/2018 12:50:04 PM] 	flush complete
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command header
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command payload
[1/9/2018 12:50:04 PM] 	read 0, requested 1
[1/9/2018 12:50:04 PM] trying to connect
[1/9/2018 12:50:04 PM] 	flush start
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1 ms
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1000 ms
[1/9/2018 12:50:04 PM] 	flush complete
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command header
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command payload
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] Uploading 623136 bytes from C:\Users\Budman\Documents\Arduino Docs\ESPeasy Stuff\Flash Utilities\ESP_Easy_Flasher-master\BIN\ESP_Easy_v2.0.0-dev13_test_ESP8266_1024.bin to flash at 0x00000000
[1/9/2018 12:50:04 PM] 	erasing flash
[1/9/2018 12:50:04 PM] 	size: 098220 address: 000000
[1/9/2018 12:50:04 PM] 	first_sector_index: 0
[1/9/2018 12:50:04 PM] 	total_sector_count: 153
[1/9/2018 12:50:04 PM] 	head_sector_count: 16
[1/9/2018 12:50:04 PM] 	adjusted_sector_count: 137
[1/9/2018 12:50:04 PM] 	erase_size: 089000
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command header
[1/9/2018 12:50:04 PM] 	espcomm_send_command: sending command payload
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 15000 ms
[1/9/2018 12:50:04 PM] 	setting serial port timeouts to 1000 ms
[1/9/2018 12:50:04 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:50:04 PM] 	writing flash
[1/9/2018 12:50:13 PM] ................................................................................ [ 13% ]
[1/9/2018 12:50:21 PM] ................................................................................ [ 26% ]
[1/9/2018 12:50:30 PM] ................................................................................ [ 39% ]
[1/9/2018 12:50:39 PM] ................................................................................ [ 52% ]
[1/9/2018 12:50:48 PM] ................................................................................ [ 65% ]
[1/9/2018 12:50:57 PM] ................................................................................ [ 78% ]
[1/9/2018 12:51:06 PM] ................................................................................ [ 91% ]
[1/9/2018 12:51:12 PM] .................................................                                [ 100% ]
[1/9/2018 12:51:12 PM] starting app without reboot
[1/9/2018 12:51:12 PM] 	espcomm_send_command: sending command header
[1/9/2018 12:51:12 PM] 	espcomm_send_command: sending command payload
[1/9/2018 12:51:12 PM] 	espcomm_send_command: receiving 2 bytes of data
[1/9/2018 12:51:12 PM] closing bootloader
[1/9/2018 12:51:12 PM] 	flush start
[1/9/2018 12:51:12 PM] 	setting serial port timeouts to 1 ms
[1/9/2018 12:51:12 PM] 	setting serial port timeouts to 1000 ms
[1/9/2018 12:51:12 PM] 	flush complete
[2018-01-09 12:49:55] STOPPED due to errors! (try reset on the unit, then start a new flash attempt)
"The glass is twice as big as it needs to be".

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 19 guests