Grigori Goronzy
8d800d1090
ihex: fix non-contiguous ranges
...
I thought this thing worked, but it turns out it is horribly broken.
Rewrite extraction and use bytearray, which is more efficient anyway.
2015-11-25 01:35:20 +01:00
Grigori Goronzy
0ed9ac9229
stc15a,stc15: properly set IAP wait states
...
Refactor the old code from stc12a/stc12 and use it in stc15a/stc15
to set the IAP wait states. Verified by timing the erase time.
2015-11-24 23:13:21 +01:00
Grigori Goronzy
778cb63e36
stc15: add optional write finish packet (BSL 7.2+)
2015-11-24 21:00:56 +01:00
Grigori Goronzy
b55fc1fcf4
stc15: print BSL minor version
...
The BSL version has the form X.Y.ZW in newer BSLs. The extra digit
is stored in another info packet byte. Print the version correctly.
2015-11-24 20:48:48 +01:00
Grigori Goronzy
3a81844a17
frontend: prefer to catch SerialException
...
It's a subclass of IOError, which we were catching first.
2015-11-24 01:42:53 +01:00
Grigori Goronzy
d318384c25
stc15: handle uncalibrated chips
2015-11-24 01:37:22 +01:00
Grigori Goronzy
63327e3498
frontend: add Intel HEX support
...
Add Intel HEX support with the help of the IHex library. IHex needed
some modifications to make it work with Python 3.
Intel HEX files are autodetected, based on file extension (.hex,
.ihx or .ihex).
2015-11-24 00:36:44 +01:00
Grigori Goronzy
f452ca226e
frontend: return instead of exit
2015-11-23 23:48:58 +01:00
Grigori Goronzy
7317f9e3a7
frontend: use 1200 BPS for handshake by default
...
It's not much slower but makes frequency measurement and calibration
more reliable.
2015-11-23 23:44:50 +01:00
Grigori Goronzy
ad57488e4f
Unify options
...
Eradicate inconsistencies, get it in sync with docs.
2015-11-23 23:30:29 +01:00
Grigori Goronzy
bc6447fdc9
Add missing stdout flush calls
...
This makes the progress display much more useful.
2015-11-23 22:23:50 +01:00
Grigori Goronzy
b96bc39948
setup: use version from package
2015-11-23 22:19:21 +01:00
Grigori Goronzy
bc242390e7
Add packaging infrastructure
...
Split up single script into a package with multiple modules.
Also add a setuptools control file. With this, stcgal can be
installed like any other program. It's still possible to launch
from the sources directly. stcgal.py has been converted into a
simple launcher.
v2: fix imports
2015-11-23 22:19:06 +01:00