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

Re: Problems with STLink

Post by Iguita » Fri Jan 05, 2018 12:22 pm

I know that it is related with Arduino but it is the same tool (STLink) used for programming of all STM boarda. I've expected that someone could explain how to manage to solve my problem with drivers. In the meantime I've realized that my device is fine (although "was not migrated ") but the problem is related with work of ST-Link utility software. Now I'm expecting that people working with STM32 boards could help with this. In any case it is not bad to learn something new and useful even it isn't directly related with Arduino, right? :)

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

Re: Problems with STLink

Post by Pito » Fri Jan 05, 2018 12:46 pm

I opened Win10 x64 in Oracle VM VirtualBox.
Plugged in the stlink cheapo dongle (USB3.0).
Win10 found the stlink device, tried to install the driver, no driver found, I saw st-link icon with yellow triangle in the dev manager.
Dongle left plugged in.
Took a short nap.
Downloaded ST_Link Utility v 4.1.0.
Installed the ST_Link Utility, it installed the driver as well, no problem.
I get (PID is 3748 - eight at the end):
.
stlink_win10.JPG
stlink_win10.JPG (69.16 KiB) Viewed 92 times
.
Wired the stlink dongle to the BluePill, started the ST_Link Utility and connected under reset (click Target->Connect and press briefly reset):
.
stlink connected.JPG
stlink connected.JPG (24.11 KiB) Viewed 67 times
.
.
Installed the ST Visual Programmer.
Configured for stlink (stlink, usb, swd) and tried to read the BP mem (STM32F103x8):
.
STVP.JPG
STVP.JPG (165.68 KiB) Viewed 60 times
Last edited by Pito on Fri Jan 05, 2018 2:15 pm, edited 11 times in total.
Pukao Hats Cleaning Services Ltd.

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

Re: Problems with STLink

Post by stevestrong » Fri Jan 05, 2018 1:18 pm

stevestrong wrote:
Thu Jan 04, 2018 9:59 pm
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.
I use Arduino on Win 10 x64, and have no problems with STLink V2 (clone).
How do you build your project? Which utility/file/script do u use to upload?
Iguita wrote:
Fri Jan 05, 2018 12:22 pm
In any case it is not bad to learn something new and useful even it isn't directly related with Arduino, right? :)
I agree, but if don't show us this "something new and useful" we are not able to help you.

Post Reply