-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] STLINK-V3 programmer support #820
Comments
I also have a serious problem. I just bought a brand new STLINK-V3SET programmer / debugger original from StMicro.
The st-info utility discovers and manage my new STM32F746G-Discovery board without problems. ./st-info --probe I only obtain: "Found 0 stlink programmers." I've already put the appropriate file in /etc/udev/rules.d (filename: 49-stlinkv3.rules). mmazza@linux9:~/ARMtoolchains/stlink-master/build/Release$ lsusb -v Bus 005 Device 003: ID 0483:374f STMicroelectronics <more...> Any ideas? Max |
I have the same request. Is there any one shall do something for support STLINK-V3SET? Please. |
Same as @unclebanjoman, on Ubuntu 18.04 LTS, my system detects the V3 probe, but |
I have the same request. I love using "make flash" in Makefiles, but I kinda also love the new v3. |
Hey folks! I have managed to patch the sources to get my STLink V3 mini recognised and initialised. To be honest I remembered that it is just the matter of adding PIDs and configuring the proper endpoints. Well it was not that simple, but thanks to Antonio Borneo's great work on openOCD I managed to go through the differences easier. My code lives here: I have not managed to test it (I have a mini at home but no device with 1.27 pitch JTAG conn). |
@WRansohoff: Are you interested in testing it by checking out the current develop branch? |
I can take a look when I have access to one of the newer boards again. But that might be a couple of weeks from now, so maybe someone else can beat me to it :) Thanks for patching this in! |
I have an stlink-v3 and I could help you with testing.
Runnning st-flash throws some errors as you can see bellow. Erase seemed to succeed and it erased already running chip:
I then reprogrammed the chip usint the STM32CubeProgrammer and tried reading and writing back using your stlink version. Reading the chip throws errors:
And also errors when trying to write back to the chip:
If you want me to run specific tests, please guide me and I will do so. |
I would suggest to test common use cases and tasks which can be achieved with the stlink toolset, just as we expect these to work with the stlink-v2 programmer already supported. It seems not a problem if any additional feature may not yet be fully functional, but the main functions should turn out to be in a working state. @kioan @WRansohoff @martonmiklos: Maybe you can discuss some more specific tests with each other and also consult our documentation and "How-To" for some ideas. I'll jump into this in a few days as well. |
I will swipe together the necessary stuff to be able to debug during execution. It is going to be the most easier and efficient I think. Many thanks to @WRansohoff and @kioan for performing the tests. |
I am a little newbie to github etc, so if someone could give me some guidelines it would be really helpful. My system is running Debian. Is there any way to create the debian package in order to install it? |
@kioan: You may find it helpful to have a look in /doc/compiling as a first step and see how far you get. Unfortunately it's not completely up to date, but as I'm trying to do my very best - here is a "quick-and-dirty" update to it, to help you along:
... and then proceed with the instructions. Please let us know if you run into trouble. ;-) |
Thank you! In case someone else like me wants to follow this procedure, right after cloning (step 4) they should checkout the development branch and compile that instead of the main. I have created successfully the debian packages and installed them. I tried the makefiles that used to work with the stlinkv2 programmer but I get the same errors I mentioned before. |
I can do a flash programming test with V3SET and STM32F750 tomorrow.
…On Sun, Mar 14, 2021, 20:02 Jeroen de Bruijn ***@***.***> wrote:
Any tests with stand-alone V3 programmers? Please give us some feedback!
It would be nice if we could close this topic with the upcoming release.
Are you just looking to test the programmer without actual hardware to
program? I have a STLINK-V3MINI, but no hardware to program (yet). Happy to
test with jus the programmer if that is what you mean!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#820 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIHISCZX23Q2H3YAA7XMSDTDUB4TANCNFSM4IG5F6WA>
.
|
@jdbruijn: Whatever may help to find bugs... Thx. |
Hi. I did a test with the latest develop branch. Seems to work. STLink V3 SET ~/work/tools/stlink/build/Release/bin/st-flash --reset write bin/application.bin 0x08000000 |
Any STLINK-V3MODS around as well? BTW: Our documentation will list all reported working dev-boards with on-board STLINK/V3, so any feedback is really valuable. ❤️ |
FYI: V3MODS and V3MINI units are almost identical: the MINI has a pinheader populated, whilst the MODS does not. (You need to utilize the castellated holes at the edge of the board for connection). |
@martonmiklos: I know they are very similar from the docs and even share the same FW, but it doesn't hurt to see a success with both does it? The MODS has an extended set of functionality that may bring some side effects - you never know. |
Of course testing never hurts :). I just mentioned it to not keep the MODS untested as blocker. (MODS should be less common in the wild due to it's intended board mount usage type) |
Flashing a custom hardware with STM32F750Z8 using V3SET:
|
@jdbruijn You appear to be the only one with a V3MINI so far... |
Yeah, I still want to test (have it on my todo list) but I'm I'll at the moment. |
Take your time. I wish you a speedy recovery. 👍 |
@Nightwalker-87 This is without any board connected since I don't have any actual hardware to program, unfortunately. Programmer is the STLINK-V3MINI. Let me know if you want me to run any other commands!
|
Without any target there would not be much else to see, I guess. |
debian package is behind the times? Installed v1.7.0 stlink tools from debian package as it indicated support for V3. My STLINK V3SET version V337M2B451 is not discovered, it mounts /dev/sda to /media/${USER}/STLINK_V3S and adds a /dev/ttyACM0 node when connected to Linux. $ st-info --version If I build it from git sources, it does discover: ~/src/stlink$ ./build/Release/bin/st-info --version |
@salyzyn it works for me (ref: #1189) solution from @mariobaldini |
I just received my STLINK-V3SET today and am waiting on my STM32F411CEU6 which should be arriving end of Dec. My goal is to get it set up to do some development and testing on a new automation project. I'll be in touch here as I'm quite a newbie for the STLINK-V3 and STM32 stuff. |
@EngMarc you can try this https://github.com/huanglilong/stm32h7_fmu |
you can also use openocd to update frash |
I need some pointers on the physical wiring/connections too. |
st-util
, probably others as well.Output:
Expected/description:
The utility should connect to the device. I'm not sure how different these new ST-Link bridges are from the old ones, but hopefully things won't look too different. ST has a marketing blog post describing the new debuggers, but the technical information might be more spread out:
https://blog.st.com/stlink-v3set-in-circuit-debugger-programmer/
Sorry if this has already been added - I tried
st-util -s 3
, but I got:stlink version 3 unknown!
The text was updated successfully, but these errors were encountered: