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

Inappropriate driver is taken on using v1.3.0 #846

Closed
6 tasks done
dhineshkumarmcci opened this issue Nov 4, 2019 · 1 comment · Fixed by #578
Closed
6 tasks done

Inappropriate driver is taken on using v1.3.0 #846

dhineshkumarmcci opened this issue Nov 4, 2019 · 1 comment · Fixed by #578

Comments

@dhineshkumarmcci
Copy link

dhineshkumarmcci commented Nov 4, 2019

  • Programmer/board type: Stlink/v2
  • Programmer firmware version:
  • Operating system: Windows 7
  • Stlink tools version and/or git commit hash: v1.3.0
  • Stlink commandline tool name: st-util
  • Target chip (and optional board): STM32L082

On using "st-util" of v1.3.0, we face issue on connecting with GDB tool. We see an inappropriate driver is considered instead of ST-Link driver. The driver information has been viewed using "st-info --serial".

Output:
GDB error

warning: while parsing target memory map (at line 1): Can't convert length="0xzx" to an integer

STLink driver issue

C:\stlink\bin>st-info.exe --serial
libusb: info [windows_get_device_list] The following device has no driver: '\\.\
USB#VID_147E&PID_2016#6&32FEB3AB&0&3'
libusb: info [windows_get_device_list] libusb will not be able to access it.
493f72063f7853533956193f

Attached the screenshot of driver highlighted with red rectangle.

Later we cloned the source of v1.5.1 and build them, the st-util here works as expected and proper driver is seen.

Thank you,
Dhinesh

@Nightwalker-87
Copy link
Member

Nightwalker-87 commented Apr 9, 2020

Let me finally address this issue with a comprehensive solution:

  1. GDB error: This is a bug in the stlink toolset when using the MinGW development toolset. It has been fixed in PR Don't use %zx because it's unsupported on mingw64 #578.
  2. Driver issue: A short web search reveals that this seems to be a common driver issue on windows where \Driver\WUDFRd fails to load. As the cited error also appears with several other usb devices, it is obviously not related to the stlink toolset. Should it be related to libusb, this bug may have been fixed in a later version of this external library:
  • v1.0.21 is used in Release v1.4.0 & v1.5.0
  • v1.0.22 is used in Releases v1.5.1

Hence this topic is now fully resolved, I am closing this issue now.

@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants