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

stlink does not see the Nucleo programmer with changed type #819

Closed
5 tasks done
LonelyWolf opened this issue Jul 25, 2019 · 0 comments
Closed
5 tasks done

stlink does not see the Nucleo programmer with changed type #819

LonelyWolf opened this issue Jul 25, 2019 · 0 comments

Comments

@LonelyWolf
Copy link

LonelyWolf commented Jul 25, 2019

  • Programmer/board type: Nucleo Stlink/v2-1-onboard
  • Programmer firmware version: STSW-LINK007 2.34.25
  • Operating system: all Linux and Windows
  • Stlink tools version and/or git commit hash: latest (as for 25/07/2019)
  • Stlink commandline tool name: all

At some point in the ST-Link Utility (programmer firmware upgrade) became available the option to select the device type, which allows to choose between STM32 Debug+Mass storage+VCP and STM32 Debug+VCP. In short, it became possible to disable the "Mass storage" functionality of the Nucleo programmer. So I did. As a result, stlink utilities stopped finding the programmer. Like this:

# st-info --probe
Found 0 stlink programmers

After investigating the issue, it became clear that the USB device with disabled Mass storage functionality have other PID (0x3752 instead of 0x374B).

I added one more define of 0x3752 to the include/stlink/usb.h, and then applied it to the src/usb.c file in the same way as the existing STLINK_USB_PID_STLINK_NUCLEO.

Recompiled the stlink and voila:

# st-info --probe
Found 1 stlink programmers
... bla bla bla ...

Not sure if it could be done in the way as I did... Therefore I did not make a pull-request, but tried to depict the problem in words.

Thank you,
The stlink project maintainers

@Nightwalker-87 Nightwalker-87 added this to the General milestone Feb 19, 2020
@Nightwalker-87 Nightwalker-87 modified the milestones: General, v1.7.0, Feedback required Mar 14, 2020
@Nightwalker-87 Nightwalker-87 linked a pull request Apr 9, 2020 that will close this issue
@Nightwalker-87 Nightwalker-87 self-assigned this Apr 9, 2020
@Nightwalker-87 Nightwalker-87 modified the milestones: Old issues, v1.6.1 Apr 9, 2020
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 27, 2020
@Nightwalker-87 Nightwalker-87 moved this to Done in Release v1.6.1 Apr 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants