ch552tool icon indicating copy to clipboard operation
ch552tool copied to clipboard

Starting the code with -r switch

Open Edocecrous opened this issue 1 year ago • 0 comments

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 ?

Edocecrous avatar Apr 17 '23 18:04 Edocecrous