Page 7 of 12
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Sat Jan 05, 2013 5:10 pm
by mobyfab
Flash control registers are not at the same address.
I need to access these to unlock the flash prior writing.
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Thu Feb 07, 2013 3:24 am
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/wkmgvB2hIt 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
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Fri Feb 08, 2013 3:24 am
by zborgerd
Does the command line version work for you?
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Fri Feb 08, 2013 3:36 am
by efuentes
Unfortunately not. It works fine using the st link tool in windows.
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Fri Feb 08, 2013 4:33 am
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.
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Fri Feb 08, 2013 11:51 pm
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.
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Sat Feb 09, 2013 12:28 pm
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
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Sat Feb 09, 2013 8:59 pm
by zborgerd
I also use OpenOCD but for simple flashing Texane's stlink works in a pinch.
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Sun Feb 17, 2013 5:39 am
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.
Re: ST-Link V2 on Linux/OSX/Windows
Posted: Sun Feb 17, 2013 12:16 pm
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