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

usb.core.USBError: [Errno 32] Pipe error #33

Open
fabiodl opened this issue Jul 9, 2023 · 1 comment
Open

usb.core.USBError: [Errno 32] Pipe error #33

fabiodl opened this issue Jul 9, 2023 · 1 comment

Comments

@fabiodl
Copy link

fabiodl commented Jul 9, 2023

On freshly installed manjaro, anyt suggestions on what to try?

python3 -m ch55xtool -f build/spi/spi.bin -r
Found CH559 with SubId:17
BTVER:02.40
UID:BE-41-BF-48-00-00-00-00
Erasing chip flash. Done.
Flashing chip. Done.
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/fabio/.local/lib/python3.11/site-packages/ch55xtool/main.py", line 12, in
sys.exit(_main())
^^^^^^^
File "/home/fabio/.local/lib/python3.11/site-packages/ch55xtool/ch55xtool.py", line 898, in main
ret, ret_pl = __end_flash_ch5xx(dev, restart_after = args.reset_at_end)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fabio/.local/lib/python3.11/site-packages/ch55xtool/ch55xtool.py", line 388, in __end_flash_ch5xx
return cmd_exec(dev, "End", cmd_pl)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fabio/.local/lib/python3.11/site-packages/ch55xtool/ch55xtool.py", line 141, in cmd_exec
return cmd_reply_receive(dev, cmd_bin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fabio/.local/lib/python3.11/site-packages/ch55xtool/ch55xtool.py", line 123, in cmd_reply_receive
reply = ep_in.read(ep_in.wMaxPacketSize, USB_MAX_TIMEOUT)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fabio/.local/lib/python3.11/site-packages/usb/core.py", line 423, in read
return self.device.read(self, size_or_buffer, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fabio/.local/lib/python3.11/site-packages/usb/core.py", line 1029, in read
ret = fn(
^^^
File "/home/fabio/.local/lib/python3.11/site-packages/usb/backend/libusb1.py", line 846, in bulk_read
return self.__read(self.lib.libusb_bulk_transfer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fabio/.local/lib/python3.11/site-packages/usb/backend/libusb1.py", line 954, in __read
_check(retval)
File "/home/fabio/.local/lib/python3.11/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
Finalize communication.make: *** [../ch55x/Makefile:78: flash] Error 1

@fabiodl
Copy link
Author

fabiodl commented Jul 9, 2023

the error is removed reverting this commit. If it helps, I am using a ch559
964ee3a

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