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-V3MINIE - WARN usb.c: skipping ST device : 0x483:0x3754) #1274

Closed
camojoe215 opened this issue Sep 30, 2022 · 5 comments · Fixed by #1281
Closed

STLINK-V3MINIE - WARN usb.c: skipping ST device : 0x483:0x3754) #1274

camojoe215 opened this issue Sep 30, 2022 · 5 comments · Fixed by #1281
Assignees
Labels
code/compatibility programmer/STLINK/V3 V3SET / V3MODS / V3MINI / V3MINIE / V3E / V3EC status/resolved
Milestone

Comments

@camojoe215
Copy link

  • I am using a V3MINIE debugger on a STM32G474 target
  • Using windows 10
  • Using stlink-tools version 1.7.0
  • When running st-info --probe

Commandline output:

st-info --probe
2022-09-30T16:19:57 WARN usb.c: skipping ST device : 0x483:0x3754)    
Found 0 stlink programmers

Should be expecting "Found 1 stlink programmer". Not sure why it's skipping considering that there is a definition accounting for PIDs using 3754 in the source code (usb.h). When trying this with a nucleo G474 it works as expected. One possible problem is that the V3MINIE uses usb-c?

@camojoe215
Copy link
Author

EDIT: I tried building the develop branch from source (this has the updated PID missing in the latest release). Building from source documentation isn't working either. CMake complains that libusb library cannot be found and there is no documentation addressing this.

@stefandz
Copy link

I managed to get this working up to a point - built OK, modified 49-stlinkv3.rules to include

# STLink V3MINIE SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3754", \ MODE:="0666", \ SYMLINK+="stlinkv3_%n"

However, get the following when running st-info --probe

Failed to parse flash type or unrecognized flash type Failed to enter SWD mode Found 1 stlink programmers version: V3J8 serial: 000A0030544B500420343637 flash: 0 (pagesize: 0) sram: 0 chipid: 0x000 dev-type: unknown

How can I help? Happy to provide a MINIE or even attempt a fix myself if there's a guide to where I should be looking to fix this :)

@chris-est
Copy link

chris-est commented Nov 29, 2022

I built the latest code from the develop branch and changed the 49-stlinkv3.rules file as mentioned by stefandz and it worked for me. I guess we should open a merge request for this file adding the missing info. Pull Request already open, see: #1281

Failed to parse flash type or unrecognized flash type Failed to enter SWD mode

I get this when no development board is connected but as soon as i connect my STM32 board the chipid is found and i can program + debug.

@tanguy-s
Copy link

tanguy-s commented Dec 6, 2022

@stefandz have you managed to fix your issue ?

I am running in something similar with an ST-Link V3 (idVendor=0483, idProduct=3753).

st-info --probe:

Failed to parse flash type or unrecognized flash type Failed to enter SWD mode Found 1 stlink programmers version: V3 serial: 0023003A3331511834333834 flash: 0 (pagesize: 0) sram: 0 chipid: 0x000 dev-type: unknown

Built from develop branch and supposedly have the correct udev for V3.

Thank you

@Nightwalker-87 Nightwalker-87 added this to the v1.7.1 milestone Dec 22, 2022
@Nightwalker-87 Nightwalker-87 added status/resolved programmer/STLINK/V3 V3SET / V3MODS / V3MINI / V3MINIE / V3E / V3EC code/compatibility labels Dec 22, 2022
@Nightwalker-87
Copy link
Member

@angiglesias submitted PR #1281 for this issue.

@Nightwalker-87 Nightwalker-87 self-assigned this Dec 22, 2022
@Nightwalker-87 Nightwalker-87 changed the title [STLINK-V3MINIE]: WARN usb.c: skipping ST device : 0x483:0x3754) STLINK-V3MINIE - WARN usb.c: skipping ST device : 0x483:0x3754) Dec 28, 2022
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Dec 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
code/compatibility programmer/STLINK/V3 V3SET / V3MODS / V3MINI / V3MINIE / V3E / V3EC status/resolved
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants