ST-Link V2 on Linux/OSX/Windows

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
Post Reply
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: ST-Link V2 on Linux/OSX/Windows

Post by mobyfab »

Flash control registers are not at the same address.

I need to access these to unlock the flash prior writing.
efuentes
Posts: 35
Joined: Wed Jul 25, 2012 6:16 am

Re: ST-Link V2 on Linux/OSX/Windows

Post by efuentes »

Hi Mobyfab

I've recently switched from developing on windows to developing on linux and I'm trying to get my workflow setup again. I am currently having trouble flashing my binary file using qstlink2.

I checked out the latest copy of qstlink2 and built according to the instructions. I enabled debugging and the output can be found here: http://pastebin.com/wkmgvB2h

It seems like the flash is locking up while it is trying to erase it.

Let me know if there is anything else I can do to help you solve the issue.

Erick
User avatar
zborgerd
Posts: 5
Joined: Mon Feb 04, 2013 4:43 am

Re: ST-Link V2 on Linux/OSX/Windows

Post by zborgerd »

Does the command line version work for you?
efuentes
Posts: 35
Joined: Wed Jul 25, 2012 6:16 am

Re: ST-Link V2 on Linux/OSX/Windows

Post by efuentes »

Unfortunately not. It works fine using the st link tool in windows.
efuentes
Posts: 35
Joined: Wed Jul 25, 2012 6:16 am

Re: ST-Link V2 on Linux/OSX/Windows

Post by efuentes »

I've started to take a look at texane/stlink and that seems to be working for me, so I'll probably use that from now on.
User avatar
zborgerd
Posts: 5
Joined: Mon Feb 04, 2013 4:43 am

Re: ST-Link V2 on Linux/OSX/Windows

Post by zborgerd »

That's the version that I was talking about (Texane's stlink). I've used it with great success so far. Though I think that qstlink2 looks interesting. I'll try it this weekend and see if it gives me the same problems.
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: ST-Link V2 on Linux/OSX/Windows

Post by Tectu »

Not sure why people are still not using OpenOCD? Thanks to mabl, a community member, OpenOCD comes with full ChibiOS/RT support. You can see all threads, step through all the thread frames manually etc.

I used texane before as well, but since I'm using OpenOCD, I'm quite more happy. I also had horrible stability issues with texane.


~ Tectu
User avatar
zborgerd
Posts: 5
Joined: Mon Feb 04, 2013 4:43 am

Re: ST-Link V2 on Linux/OSX/Windows

Post by zborgerd »

I also use OpenOCD but for simple flashing Texane's stlink works in a pinch.
User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Has thanked: 3 times
Been thanked: 3 times

Re: ST-Link V2 on Linux/OSX/Windows

Post by DeusExMachina »

I have a problem using texaine st-util with st-link v2. Flashing is OK, but when i debug the MCU freezes on chThdSleepS function. Only hard reset helps. When I use st-link v1 debugging is OK.
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: ST-Link V2 on Linux/OSX/Windows

Post by Tectu »

Back the days where I used texane and STLinkv2 I didn't had such a problem at all. It was about 10 months ago.


~ Tectu
Post Reply