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

Starting the code with -r switch #32

Open
Edocecrous opened this issue Apr 17, 2023 · 0 comments
Open

Starting the code with -r switch #32

Edocecrous opened this issue Apr 17, 2023 · 0 comments

Comments

@Edocecrous
Copy link

Hi,
if i start the code on the ch559 with this command:
python3 -m ch55xtool -r

The code starts running on the CH559 (good!)

But I also get the following error:
Found CH559 with SubId:17
BTVER:02.40
UID:72-03-48-BC-00-00-00-00
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/edo/.local/lib/python3.8/site-packages/ch55xtool/main.py", line 12, in
sys.exit(_main())
File "/home/edo/.local/lib/python3.8/site-packages/ch55xtool/ch55xtool.py", line 898, in main
ret, ret_pl = __end_flash_ch5xx(dev, restart_after = args.reset_at_end)
File "/home/edo/.local/lib/python3.8/site-packages/ch55xtool/ch55xtool.py", line 388, in __end_flash_ch5xx
return cmd_exec(dev, "End", cmd_pl)
File "/home/edo/.local/lib/python3.8/site-packages/ch55xtool/ch55xtool.py", line 141, in cmd_exec
return cmd_reply_receive(dev, cmd_bin)
File "/home/edo/.local/lib/python3.8/site-packages/ch55xtool/ch55xtool.py", line 123, in cmd_reply_receive
reply = ep_in.read(ep_in.wMaxPacketSize, USB_MAX_TIMEOUT)
File "/home/edo/.local/lib/python3.8/site-packages/usb/core.py", line 423, in read
return self.device.read(self, size_or_buffer, timeout)
File "/home/edo/.local/lib/python3.8/site-packages/usb/core.py", line 1029, in read
ret = fn(
File "/home/edo/.local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 846, in bulk_read
return self.__read(self.lib.libusb_bulk_transfer,
File "/home/edo/.local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 954, in __read
_check(retval)
File "/home/edo/.local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 32] Pipe error

Or this should be normal since the CH559 will be re-set and cuts communication on USB with the PC ?

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