Help with st-link

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

Re: Help with st-link

Postby stevestrong » Fri Jan 27, 2017 2:34 pm

Have you updated the V2 firmware?
https://www.youtube.com/watch?v=DC5tlE6XOIg

User avatar
BennehBoy
Posts: 386
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

Re: Help with st-link

Postby BennehBoy » Fri Jan 27, 2017 2:36 pm

stevestrong wrote:Have you updated the V2 firmware?
https://www.youtube.com/watch?v=DC5tlE6XOIg


Yes it's at V2J27S6
-------------------------------------
https://github.com/BennehBoy

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

Re: Help with st-link

Postby stevestrong » Fri Jan 27, 2017 2:38 pm

Can you connect the STlink to the target with the STlink utility?

User avatar
BennehBoy
Posts: 386
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

Re: Help with st-link

Postby BennehBoy » Fri Jan 27, 2017 2:52 pm

stevestrong wrote:Can you connect the STlink to the target with the STlink utility?


No.
-------------------------------------
https://github.com/BennehBoy

victor_pv
Posts: 947
Joined: Mon Apr 27, 2015 12:12 pm

Re: Help with st-link

Postby victor_pv » Fri Jan 27, 2017 3:02 pm

BennehBoy wrote:
stevestrong wrote:Can you connect the STlink to the target with the STlink utility?


No.


First check to make sure you didn't swap any pin. Then connect 3.3, GND, SWDCLK and SWIO to the target.
Power the target with the usb cable.
Connect the stlink to the computer and open the stlink tool.
Go to the Target menu, then Settings option.
Make sure SWD mode is selected there vs JTAG.
In Mode make sure hotplug is selected.
and in Reset Mode, Software System Reset (this one may not matter).
Once it is like that, save the settings and click on Connect.
If it fails, reset the target and click on connect again right away.

This is how it works for me every time for boards with and without bootloader, cleared, write protected, read protected, etc.
The problem you had with the updater sketch is that most likely you run a version that was either setting the read protection or clearing it, and wiped your flash.
The one posted in that thread now works good, so no rick that anyone else copies the wrong one from the thread.

You can also flash the bootloader by using the serial method with the mcu serial bootloader, Phil used that method in the thread originally and used is described there.

User avatar
BennehBoy
Posts: 386
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

Re: Help with st-link

Postby BennehBoy » Fri Jan 27, 2017 4:40 pm

Are you sure I should power the target with USB AND 3.3 from the st-link? I thought this would result in magic smoke?
-------------------------------------
https://github.com/BennehBoy

User avatar
BennehBoy
Posts: 386
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

Re: Help with st-link

Postby BennehBoy » Fri Jan 27, 2017 4:49 pm

Tried with the settings you supplied (used these earlier too), failed. Tried resetting the board, still fails.

For fear of destroying the board I _did not_ also connect it via USB whilst 3.3 was being supplied to the VCC pin.

Here's a photo of the wiring:
Image
Last edited by BennehBoy on Fri Jan 27, 2017 4:51 pm, edited 1 time in total.
-------------------------------------
https://github.com/BennehBoy

victor_pv
Posts: 947
Joined: Mon Apr 27, 2015 12:12 pm

Re: Help with st-link

Postby victor_pv » Fri Jan 27, 2017 4:50 pm

BennehBoy wrote:Are you sure I should power the target with USB AND 3.3 from the st-link? I thought this would result in magic smoke?


I haven't had a problem with that, but I guess you can skip the 3.3V.
This is one of the boards i use all the time for testing stuff, and I connect all 4 pins in the SWD connector (including 3.3v)
http://wiki.stm32duino.com/index.php?title=File:Stm32rct6_generic.png

But yeah using either one or the other rather than both at the same time should be fine.

Be careful with that VCC connection, is that 3.3v to the MCU, or rather the connection to the 5V from the USB to the 3v3 regulator?
I dont remember off the top of my head which is it, so make sure you check.

EDIT: in the original maple mini that was the regulated 3v3, so in the clone should be the same
https://github.com/leaflabs/maplemini/blob/master/maplemini.pdf

User avatar
BennehBoy
Posts: 386
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

Re: Help with st-link

Postby BennehBoy » Fri Jan 27, 2017 4:56 pm

It's steadfastly refusing to connect. :?

I think this st-link clone hardware must be garbage. I can feel a stamping frenzy coming on. :evil:

I continuity checked the dupont leads just for peace of mind, all are good.
-------------------------------------
https://github.com/BennehBoy

racemaniac
Posts: 327
Joined: Sat Nov 07, 2015 9:09 am

Re: Help with st-link

Postby racemaniac » Fri Jan 27, 2017 5:02 pm

BennehBoy wrote:It's steadfastly refusing to connect. :?

I think this st-link clone hardware must be garbage. I can feel a stamping frenzy coming on. :evil:

I continuity checked the dupont leads just for peace of mind, all are good.

I have one like yours, and it worked for me (notice the past), recently it suddenly stopped working and became very hot :p
switched to my baite st link clone (and ordered a second one from baite, since we're usually pretty happy with their stuff on this forum)
And it's a good advice that Roger likes to repeat on this forum: always have 2 of whatever you're working on. it's cheap chinese stuff, something will be broken or break, and if you then have to wait a month for the replacement to arrive...


Return to “Maple mini”

Who is online

Users browsing this forum: No registered users and 1 guest