Problems with STLink

Post here first, or if you can't find a relevant section!
Iguita
Posts: 6
Joined: Wed Jan 03, 2018 12:37 pm

Problems with STLink

Post by Iguita » Wed Jan 03, 2018 1:06 pm

I've bought a cheap Chinese version of ST Link/V2 but having some problems to put it to work. I've installed latest STM drivers, got it under Universal Serial Bus device branch as STM32 STLink but it refuses to work. After checking of event's log I've found this:

Code: Select all

Device USB\VID_0483&PID_3748\6&418b671&0&3 was not migrated due to partial or ambiguous match.

Last Device Instance Id: USB\VID_1C4F&PID_0034\6&271a58ce&0&3
Class Guid: {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}
Location Path: PCIROOT(0)#PCI(1A00)#USBROOT(0)#USB(1)#USB(3)
Migration Rank: 0xF000FFFFFFFF0023
Present: false
Status: 0xC0000719
Windows 10 x64 1709

I couldn't find any solution for this and that is the reason why I had to ask for an advice on this place. Thanks in advance.

stevestrong
Posts: 2070
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: Problems with STLink

Post by stevestrong » Wed Jan 03, 2018 3:21 pm


Iguita
Posts: 6
Joined: Wed Jan 03, 2018 12:37 pm

Re: Problems with STLink

Post by Iguita » Wed Jan 03, 2018 5:48 pm

Thank you for the answer, stevestrong. I didn't but I've previously understood that I can flash microcontroller, not from STM32 ST-LINK Utility but from STVP. I've updated device with your patch after that and it still says that "was not migrated due to partial or ambiguous match".

What could be the problem with ST-Link utility in my case?

User avatar
Pito
Posts: 1743
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: Problems with STLink

Post by Pito » Wed Jan 03, 2018 5:56 pm

What about this - the latest, it seems
http://www.st.com/content/st_com/en/pro ... nk009.html
Pukao Hats Cleaning Services Ltd.

dannyf
Posts: 231
Joined: Wed May 11, 2016 4:29 pm

Re: Problems with STLink

Post by dannyf » Wed Jan 03, 2018 5:59 pm

You have a vid/pid mismatch. 3748 vs 374B.

zmemw16
Posts: 1685
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Problems with STLink

Post by zmemw16 » Thu Jan 04, 2018 1:48 pm

uh? i just plugged in my usb st/link block, blue/white already in
so lsub gives

Code: Select all

Bus 003 Device 015: ID 0483:3748 STMicroelectronics ST-LINK/V2
Bus 003 Device 014: ID 04d8:fc92 Microchip Technology, Inc. Open Bench Logic Sniffer
Bus 003 Device 013: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 003 Device 012: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 003 Device 011: ID 0483:3748 STMicroelectronics ST-LINK/V2
stephen

stevestrong
Posts: 2070
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: Problems with STLink

Post by stevestrong » Thu Jan 04, 2018 3:10 pm

Missing infos:
- which core do you use (Arduino_STM32, STM32DUINO, or STM32GENERIC)?
- which board do you use?
- which IDE do you use? Arduino? Which version?
Iguita wrote:
Wed Jan 03, 2018 5:48 pm
I've previously understood that I can flash microcontroller, not from STM32 ST-LINK Utility but from STVP
- What is STVP?

- if you can flash with STLink utility it means you have the right drivers installed, so it must be something wrong with the flashing utility of the used core. So go back and answer question 1. And post here the full message you get from Arduino IDE, if you use it.

- STLink DOES NOT WORK AS SERIAL PORT !!!
You have to connect a USB cable to the micro USB slot (blue pill) in order to have USB serial port.

dannyf
Posts: 231
Joined: Wed May 11, 2016 4:29 pm

Re: Problems with STLink

Post by dannyf » Thu Jan 04, 2018 8:00 pm

- STLink DOES NOT WORK AS SERIAL PORT !!!
it depends. some v1 and all v2 and newer ones support serial comm: https://dannyelectronics.wordpress.com/ ... link-v2-1/

stvp is a st standalone programmer.

Iguita
Posts: 6
Joined: Wed Jan 03, 2018 12:37 pm

Re: Problems with STLink

Post by Iguita » Thu Jan 04, 2018 8:14 pm

dannyf wrote:
Wed Jan 03, 2018 5:59 pm
You have a vid/pid mismatch. 3748 vs 374B.
how to solve that?

stevestrong wrote:
Thu Jan 04, 2018 3:10 pm
Missing infos:
- which core do you use (Arduino_STM32, STM32DUINO, or STM32GENERIC)?
- which board do you use?
- which IDE do you use? Arduino? Which version?
1. answered below
2. Blue Pill. Tried also with StM8 board
3, I've created some code from Arduino IDE but also from CxSTM32
- What is STVP?
STLink Visual Programmer
- if you can flash with STLink utility it means you have the right drivers installed, so it must be something wrong with the flashing utility of the used core. So go back and answer question 1. And post here the full message you get from Arduino IDE, if you use it.
I am using hex file, not uploading code from Arduino IDE.
- STLink DOES NOT WORK AS SERIAL PORT !!!
You have to connect a USB cable to the micro USB slot (blue pill) in order to have USB serial port.
I didn't use it as serial port. Thank you for advice.

stevestrong
Posts: 2070
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: Problems with STLink

Post by stevestrong » Thu Jan 04, 2018 9:59 pm

OK, so it seems that you are not uploading with Arduinoi IDE.

As you may know, this forum is mainly dealing with Arduino for STM32.

If you use your own tool chain, you are on your own.
You could still get some help if you tell us more how exactly your toolchain does look like.
And maybe you give us some example files to reproduce your problem.

Post Reply