Skip to content

Commit b8e488c

Browse files
authored
Merge pull request #4 from andysheen/master
uploaded the flash position to match the new combined bin file firmware
2 parents 3c11582 + c2adaf2 commit b8e488c

2 files changed

Lines changed: 39 additions & 2 deletions

File tree

IRS-Firmware-Uploader.spec

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
block_cipher = None
4+
5+
6+
a = Analysis(['esptool-python-gui.py'],
7+
pathex=['/Users/admin/Documents/IRS/SCADS/esptool-python-gui'],
8+
binaries=[],
9+
datas=[],
10+
hiddenimports=[],
11+
hookspath=[],
12+
runtime_hooks=[],
13+
excludes=[],
14+
win_no_prefer_redirects=False,
15+
win_private_assemblies=False,
16+
cipher=block_cipher,
17+
noarchive=False)
18+
pyz = PYZ(a.pure, a.zipped_data,
19+
cipher=block_cipher)
20+
exe = EXE(pyz,
21+
a.scripts,
22+
a.binaries,
23+
a.zipfiles,
24+
a.datas,
25+
[],
26+
name='IRS-Firmware-Uploader',
27+
debug=False,
28+
bootloader_ignore_signals=False,
29+
strip=False,
30+
upx=True,
31+
upx_exclude=[],
32+
runtime_tmpdir=None,
33+
console=False )
34+
app = BUNDLE(exe,
35+
name='IRS-Firmware-Uploader.app',
36+
icon=None,
37+
bundle_identifier=None)

esptool-python-gui.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'write_flash', '-z', '--flash_mode', 'dio',
2020
'--flash_freq', '80m',
2121
'--flash_size', 'detect',
22-
'0x10000', 'app.ino.bin'
22+
'0x0000', 'app.ino.bin'
2323
]
2424

2525
esptool_erase_options = ['--chip', 'esp32',
@@ -80,7 +80,7 @@ def serial_ports():
8080
ports = glob.glob('/dev/tty[A-Za-z]*')
8181
elif sys.platform.startswith('darwin'):
8282
print("mac")
83-
ports = glob.glob('/dev/tty.*')
83+
ports = glob.glob('/dev/cu.*')
8484
else:
8585
raise EnvironmentError('Unsupported platform')
8686

0 commit comments

Comments
 (0)