stlink-org / stlink

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

[feature] STLINK-V3 not recognized #1022

Closed lcharpenwi6labs closed 3 years ago

lcharpenwi6labs commented 4 years ago

Hello. I am working on a stm32G4. When enumerating the device as the following properties :

[245890.474255] usb 3-3.4: config 1 interface 2 altsetting 0 endpoint 0x84 has an invalid bInterval 255, changing to 11 [245890.474745] usb 3-3.4: New USB device found, idVendor=0483, idProduct=374e [245890.474749] usb 3-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [245890.474752] usb 3-3.4: Product: STLINK-V3 [245890.474754] usb 3-3.4: Manufacturer: STMicroelectronics [245890.474756] usb 3-3.4: SerialNumber: 003A00323037510B35333131 [245890.531758] usb-storage 3-3.4:1.1: USB Mass Storage device detected [245890.531951] scsi host4: usb-storage 3-3.4:1.1

When typing the st-util command, I have the following result: st-util 2020-09-04T11:05:03 WARN usb.c: Couldn't find any ST-Link/V2 devices

I can see stlinkv3 is supported. Is there anyway to force the v3 version? Thanks

lcharpenwi6labs commented 4 years ago

I found the problem. I downloaded the dev branch, compiled everything and it works now.