flashtool working for initial and update

This commit is contained in:
wellenvogel 2021-12-20 17:55:01 +01:00
parent dfaab40670
commit e735c35a83
3 changed files with 26 additions and 5 deletions

BIN
tools/flashtool.exe Normal file

Binary file not shown.

View File

@ -9,7 +9,7 @@ from tkinter import filedialog as FileDialog
import builtins import builtins
VERSION="1.0, esptool 3.2"
oldprint=builtins.print oldprint=builtins.print
def print(*args, **kwargs): def print(*args, **kwargs):
@ -35,6 +35,8 @@ class App:
frame.columnconfigure(1, weight=3) frame.columnconfigure(1, weight=3)
tk.Label(frame,text="ESP32 NMEA2000 Flash Tool").grid(row=row,column=0,columnspan=2,sticky='ew') tk.Label(frame,text="ESP32 NMEA2000 Flash Tool").grid(row=row,column=0,columnspan=2,sticky='ew')
row+=1 row+=1
tk.Label(frame, text=VERSION).grid(row=row,column=0,columnspan=2,sticky="ew",pady=10)
row+=1
self.mode=tk.IntVar() self.mode=tk.IntVar()
self.mode.set(1) self.mode.set(1)
rdFrame=tk.Frame(frame) rdFrame=tk.Frame(frame)

View File

@ -1,10 +1,29 @@
Hwo to build the bundled esp tool for windows How to build the bundled esp tool for windows
============================================= =============================================
(1) install python 3 on windows, add to path (1) install python 3 on windows, add to path
(2) pip install pyinstaller (2) pip install pyinstaller
(3) create an empty dir, cd there (3) create an empty dir, cd there
(4) get esptool.py (either pip install esptool, search for it or download from (4) get esptool.py (either pip install esptool, search for it or download from
https://github.com/espressif/esptool - just esptool.py) https://github.com/espressif/esptool - just esptool.py) or copy it from here
(5) run: pyinstaller -F esptool.py (5) run: pyinstaller -F esptool.py
esptool.exe in dist\esptool esptool.exe in dist\esptool
How to build the bundled flashtool.exe (on windows)
===================================================
(1) install python 3, add to path
(2) pip install pyinstaller
(3) pip install pyserial
(4) in this directory:
pyinstaller -F flashtool.py
will create flashtool.exe in dist
How to run flashtool on Linux
=============================
(1) have python 3 installed
(2) install python3-serial as package __or__ sudo pip3 install pyserial
(3) install python3-tk as package __or__ sudo pip3 install tkinter
(4) ./flashtool.py