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 Error: [Errno 32] Pipe error *** #6

Open
rfb opened this issue Aug 15, 2017 · 3 comments
Open

*** USB Error: [Errno 32] Pipe error *** #6

rfb opened this issue Aug 15, 2017 · 3 comments

Comments

@rfb
Copy link

rfb commented Aug 15, 2017

Freshly updated STLink2

[45228.161514] usb 1-2.4: new full-speed USB device number 15 using xhci_hcd
[45228.266791] usb 1-2.4: New USB device found, idVendor=0483, idProduct=3748
[45228.266793] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[45228.266794] usb 1-2.4: Product: STM32 STLink
[45228.266795] usb 1-2.4: Manufacturer: STMicroelectronics
[45228.266797] usb 1-2.4: SerialNumber: Uÿl�I\xffffffc2\xffffff80IU7��\xffffffc2\xffffff87
> python3 pystlink.py  -d
Successfully connected to ST-Link/V2
  USB > f1 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (read_version)
  USB > f1 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (read_version)
  USB < 27 07 83 04 48 37
  USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (leave_state)
  USB < 01 00
  USB > f7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (read_target_voltage)
  USB < ed 05 00 00 ca 08 00 00
  USB > f2 43 01 00 00 00 00 00 00 00 00 00 00 00 00 00 (set_swd_freq)
  USB < 80 00
  USB > f2 30 a3 00 00 00 00 00 00 00 00 00 00 00 00 00 (enter_debug_swd)
  USB < 09 00
  USB > f2 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 (read_coreid)
*** USB Error: [Errno 32] Pipe error ***

** added method names to debugging output

@rfb
Copy link
Author

rfb commented Aug 15, 2017

adding retry and tout options to the xfer call in read_coreid has no effect

@jxltom
Copy link
Contributor

jxltom commented Dec 12, 2017

Call Pystlink()._connector._dev.reset() may help...

@hugokernel
Copy link

hugokernel commented Aug 31, 2018

Hi,
Same problem here.
Freshly updated to V2J31S7 and I have the same error.

> ./pystlink -d
Successfully connected to ST-Link/V2
  USB > f1 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 27 c7 83 04 48 37
  USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 01 00
  USB > f7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < d9 05 00 00 fb 07 00 00
  USB > f2 43 01 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 80 00
  USB > f2 30 a3 00 00 00 00 00 00 00 00 00 00 00 00 00
  USB < 09 00
  USB > f2 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*** USB Error: [Errno 32] Pipe error ***

No problem with OpenOCD.

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

3 participants