Grigori Goronzy
af153a89e7
Fix initialization with CH340 UARTs
...
Initialization is messed up with older Linux kernels and that
results in 9600 baud being used unconditionally. Setting the baud
rate separately seems to work around this successfully.
2015-12-15 16:43:37 +01:00
Grigori Goronzy
293ce2c749
Add STC15W408AS to compatibility list
...
Tested and works fine.
2015-12-12 01:03:14 +01:00
Grigori Goronzy
f13650a352
stc15: remove extra space in output
2015-12-11 01:50:55 +01:00
Grigori Goronzy
f5574f30e3
frontend: rename code_binary/eeprom_binary
...
We don't accept binary only anymore.
2015-12-11 01:49:45 +01:00
Grigori Goronzy
bc6f9da03e
frontend: nicer description
2015-12-11 01:38:46 +01:00
Grigori Goronzy
6f0ee0387d
serial: flush input on connect
...
Sometimes there's some garbage in the input buffer and we aren't
interested in that.
2015-12-11 01:21:06 +01:00
Grigori Goronzy
cc20c85ad0
Add STC15W4K56S4 dump
2015-12-11 01:14:51 +01:00
Grigori Goronzy
b71b6535c4
Add STC15W4K56S4 to compatibility list
...
Seems to work just fine for me now.
2015-12-11 01:13:35 +01:00
Grigori Goronzy
76b3418f0a
stc15: add core voltage option (STC15W)
...
This is used on STC15W4 series and has no function on earlier MCUs.
There is no good way to filter options, unfortunately.
2015-12-11 01:11:53 +01:00
Grigori Goronzy
11b165c02c
stc15a: set pulse timeout for handshake
2015-12-11 00:40:22 +01:00
Grigori Goronzy
9f42ef29f3
stc15: use generic/new sync sequence for handshake
...
Use the newer sync sequence. Refactor the pulse() function to make
it somewhat generic, so we can use it without worrying about writing
the exactly right number of bytes.
This seems to get STC15W4 series chips working.
2015-12-11 00:39:59 +01:00
Grigori Goronzy
432fed8af1
Add STC11F02E to compatibility list
2015-12-06 19:45:29 +01:00
Grigori Goronzy
7336673655
Add STC15L2K61S2 to README
...
See https://github.com/grigorig/stcgal/issues/3
2015-11-30 00:51:51 +01:00
Andrew Andrianov
0548582dd4
Add initial debian packaging info
...
v2 (Grigori Goronzy): Simplify with pybuild, fix some smaller issues,
license as MIT.
Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
2015-11-25 23:03:25 +01:00
Grigori Goronzy
e0afd851ae
Let MCU detection recover faster
...
Use small timeouts to recover faster if there is a misdetection for
whatever reason (truncated packet, user program toggles port, etc.).
2015-11-25 22:19:54 +01:00
Grigori Goronzy
b72c5a60fb
ihex: fix bytearray overallocation
2015-11-25 03:06:57 +01:00
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
c0a9b381c9
Update TODO
2015-11-24 23:13:21 +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
d0a9b61482
Update README
...
Make option table nicer, some other minor stuff.
2015-11-24 21:16:43 +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
ef84cf3cd5
Update README again
...
Just some minor fixes.
2015-11-24 00:44:34 +01:00
Grigori Goronzy
6601cb91f1
Update README
2015-11-24 00:41:29 +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
b6c87fb532
Add option descriptions to README
2015-11-23 23:29:22 +01:00
Grigori Goronzy
3966e2e109
Merge branch 'packaging'
2015-11-23 22:37:49 +01:00
Grigori Goronzy
14a8b061c1
Clean up TODO
2015-11-23 22:36:11 +01:00
Grigori Goronzy
a5795dbee8
Add gitignore
...
Especially ignore all the cruft from disttools/setuptools.
2015-11-23 22:32:39 +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
af35a6ba51
setup: add metadata
2015-11-23 22:19:21 +01:00
Grigori Goronzy
2bf43d161a
Update README
2015-11-23 22:19:21 +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
Grigori Goronzy
797dcbccda
Update README
...
Some more info about device options and other misc changes.
2015-11-23 15:24:06 +01:00
Grigori Goronzy
bd41521c6d
Add commented dump to stc15a docs
2015-11-22 18:47:24 +01:00
Grigori Goronzy
5b4f9d0ef0
Add stc89 and stc12a dumps
2015-11-22 18:45:01 +01:00
Grigori Goronzy
391f6433fe
stc15: print wakeup timer value
2015-11-22 18:44:37 +01:00
Grigori Goronzy
aae3d946f6
Add more dumps and new STC15 protocol info
2015-11-22 18:24:20 +01:00
Grigori Goronzy
7a858f3334
Fix up README
2015-11-22 18:09:49 +01:00
Grigori Goronzy
9da8da6807
Update README
2015-11-22 18:05:45 +01:00
Grigori Goronzy
d5b35cf43d
Rename stc15 and stc15x protocols
...
The protocol originally named "stc15" is only used for two early STC15
series, i.e. STC15F104/STC15F204. All other STC15 series appear to
use a different protocol. So switch around names similary to "stc12"
vs "stc12a".
In conclusion:
- "stc15a" is used only for STC15xx04E(A)
- "stc15" is used for all other currently tested STC15 MCUs
2015-11-22 17:45:31 +01:00
Grigori Goronzy
24a2a4a15b
Merge branch 'stc15'
2015-11-22 17:42:15 +01:00
Grigori Goronzy
8297904753
stc15x: add external clock handling
2015-11-22 17:36:06 +01:00
Grigori Goronzy
75ac790141
Add IAP15F2K61S2 to compatibility list
...
In fact, all current STC 15 MCUs should work now.
2015-11-22 17:36:06 +01:00