stlink-org / stlink

Open source STM32 MCU programming toolset
BSD 3-Clause "New" or "Revised" License
4.4k stars 1.24k forks source link

Version 1.7.0 does not find STMicroelectronics ST-LINK/V2 on Debian 10 (Buster) #1148

Closed karstengit closed 3 years ago

karstengit commented 3 years ago

I have now the problem of the error: WARN common.c: unknown chip id! 0x989680 with my last version v1.6.0-31-gf5d0454-dirty

Regarding https://github.com/stlink-org/stlink/issues/568 i installed the Debian package https://github.com/stlink-org/stlink/releases/download/v1.7.0/stlink_1.7.0-1_amd64.deb now.

But this newer version does not find the ST-LINK/V2:

$ lsusb

...

Bus 008 Device 002: ID 0483:3748 STMicroelectronics ST-LINK/V2

...

$ st-info --probe

Found 0 stlink programmers

$ st-info --version

v1.7.0

What can i do now?

Ant-ON commented 3 years ago

@karstengit Perhaps after installing the package, you need to manually update the udev rules (or just reboot the system)

karstengit commented 3 years ago

This seems to be a problem of the library libstlink.so.1, because the old version does it find any more too:

$ /old/st-flash write file.bin 0x8000000
st-flash 1.6.0-31-gf5d0454-dirty
2021-06-01T11:39:46 WARN usb.c: Couldn't find any ST-Link devices

After reinstalling the old library the ST-LINK/V2 is found again.

karstengit commented 3 years ago

@karstengit Perhaps after installing the package, you need to manually update the udev rules (or just reboot the system)

No - sorry - after reinstallation of the package and a reboot it is still the same problem!

$ st-flash write file.bin 0x8000000
st-flash 1.7.0
2021-06-01T11:54:52 WARN usb.c: Couldn't find any ST-Link devices
$ st-info --probe
Found 0 stlink programmers
$ lsusb
Bus 008 Device 002: ID 0483:3748 STMicroelectronics ST-LINK/V2
Ant-ON commented 3 years ago

Can you try run sudo st-info --probe?

karstengit commented 3 years ago

(Of course) it's already tested as root with the same result.

Nightwalker-87 commented 3 years ago

Verified to work in general for this combination already. Further I am closing this ticket now, as it does not follow our project guidelines for opening new issues.