Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem while work with U8W: status packet too short #51

Open
Kashouryo opened this issue Jul 16, 2019 · 0 comments
Open

Problem while work with U8W: status packet too short #51

Kashouryo opened this issue Jul 16, 2019 · 0 comments

Comments

@Kashouryo
Copy link

STC gal can not function properly on my Windows 10 1803 with Python 3.7

Useful error message
raise StcProtocolException("status packet too short") stcgal.protocols.StcProtocolException: status packet too short

Full error message:
C:\WINDOWS\system32>stcgal -p COM6
Waiting for MCU, please cycle power: Protocol error: status packet too short
Traceback (most recent call last):
File "c:\users\think\appdata\local\programs\python\python37\lib\site-packages\stcgal\frontend.py", line 155, in run
self.protocol.connect(autoreset=self.opts.autoreset, resetcmd=self.opts.resetcmd)
File "c:\users\think\appdata\local\programs\python\python37\lib\site-packages\stcgal\protocols.py", line 310, in connect
raise StcProtocolException("status packet too short")
stcgal.protocols.StcProtocolException: status packet too short

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\think\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\think\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\think\AppData\Local\Programs\Python\Python37\Scripts\stcgal.exe_main
.py", line 9, in
File "c:\users\think\appdata\local\programs\python\python37\lib\site-packages\stcgal\frontend.py", line 243, in cli
return gal.run()
File "c:\users\think\appdata\local\programs\python\python37\lib\site-packages\stcgal\frontend.py", line 175, in run
self.protocol.disconnect()
File "c:\users\think\appdata\local\programs\python\python37\lib\site-packages\stcgal\protocols.py", line 357, in disconnect
self.write_packet(packet)
File "c:\users\think\appdata\local\programs\python\python37\lib\site-packages\stcgal\protocols.py", line 393, in write_packet
raise NotImplementedError
NotImplementedError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant