Flash control registers are not at the same address.
I need to access these to unlock the flash prior writing.
ST-Link V2 on Linux/OSX/Windows
Re: ST-Link V2 on Linux/OSX/Windows
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
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
Re: ST-Link V2 on Linux/OSX/Windows
Unfortunately not. It works fine using the st link tool in windows.
Re: ST-Link V2 on Linux/OSX/Windows
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
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
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
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
I also use OpenOCD but for simple flashing Texane's stlink works in a pinch.
- 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
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
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
~ Tectu