-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot connect to STM32VL under Linux #679
Comments
I think the stlink v1 programmers are claimed by the kernel and for normal users it is with the default permissions possible to detach the kernel driver for the emulated disk drive and send raw programming commands. Not much people use the stlinkv1 but this is what I found: https://github.com/texane/stlink/blob/ba898b1c9c75800b566e8b1983ff7643e104a994/src/sg.c#L62-L74 |
/etc/modprobe.d/stlink_v1.conf has been automatically installed and seems to be taken into account. I think that the last line means that the device is not mounted as a mass storage. I just tried something else: I connected the board and launched st-util: it manages to connect. |
STLINK/V1 is ignored in stlink_probe_usb_devs (https://github.com/texane/stlink/blob/b69c1d51b03a4345c4d478ac1d8c2088002cd36a/src/usb.c#L976 and https://github.com/texane/stlink/blob/b69c1d51b03a4345c4d478ac1d8c2088002cd36a/src/usb.c#L1000). |
This was reported using Release v1.5.0. As this ticket has not seen any further activity since, we need someone with a ST-Link-v1 programmer (PID: 3744, |
@Nightwalker-87 I am not able right now be because of the Covid. The card is in my office and it is still working. |
I've got an stm32f100 discovery somewhere, I think it match that descrption, i'll check |
@cedricboudinet: That does not matter, we have time. Good to hear though the hardware is still available. |
ok, i just tested a clean develop branch build 👍
erase works,
full flash write is ok
but probe fails ..
|
Interesting, having a second stlink connected makes it probe the v1:
the stlink_probe() is filtering out the stlink v1 usb pid (pid is missing). But then, the usb open stuff takes care of the v1 first, and probe succeed. That part of code need some care regarding the usb pid checks, this does not really look aligned. |
Does not look good to me either, it should be working in any combination and method applied. This is a bug. |
Hello
I am trying to connect to a STM32VL discovery board (STM32F100RBT6B) under Debian 9 32bits.
Unfortunately, st-info seems to be unable to detect the board:
$ st-info --probe
Found 0 stlink programmers
But the board is connected:
$ lsusb
Bus 002 Device 004: ID 0483:3744 STMicroelectronics STLINK Pseudo disk
I checked st-info with a STM32F407 discovery board (STLINK/V2) and it works.
Does it mean that stlink for STLINK/V1 is not working under Linux or am I doing something wrong?
Regards
Cedric
The text was updated successfully, but these errors were encountered: