-
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
Basic compatibility for STLink-v3 programmer #954
Conversation
- Formatting fixes in CHANGELOG.md - Added comment in .travis.sh - Update for .travis.yml: gcc/g++ v5->v6
Flash programming is broken
…/stlink into develop
- Comment for selection of API-Version (#271) - Whitespace cleanup - Fixed casting (-Wshorten-64-to-32)
74439b1
to
f6e9cb1
Compare
This PR is going to be merged next as soon as it is finally approved. |
Mostly good, at least backward compatibility has been kept. Not sure if this warning is caused by this PR |
I don't know really - if so |
No, at least with commit ID |
I'll have a look. What did you do exactly? How can I try to reproduce? |
Edit: Warning shows even without
FYI, my |
Uh, I can't reproduce that. This is exactly what I tried here. Could it be that this is related to clang somehow? I use gcc on Debian. That is the only difference I see currently (or it is OS-specific). |
Trying
Edit: with some quick fix, I compiled stlink with gcc, the warning persists. I will try on my raspberry pi with raspbian. Edit: on my raspbian, the error still exists.
|
Ha, I got it now! There appeared to be some remnants of an old install somewhere which are now cleaned up. It happens with https://stackoverflow.com/questions/44919347/libusb-cant-claim-device |
I am a bit confusing. So under what circumstances will the warning appear? And what does the old install mean, a registration of stlink hardware from another driver? |
I had an old commit installed locally with The warning seems to appear whenever there is a cmd sent via usb. I haven't found the commit when it first appeared. It is somewhere in the |
The problem occurred in commit 0a91936. |
- Fixed problem "libusb: warning [libusb_exit] application left some devices open" resulting from deprecated commands reintroduced in merge commit 0a91936. - Whitespace cleanup
Added support for JTAG command API v2:
--> compatibility with the STLink-v3 firmware which dropped support for the previous API v1
--> as of firmware version J11 the ST-LINK-V1 supports API v2 commands as well
As described by @martonmiklos in #863: "Apart from utilising the V2 command API there are some other minor differences in the v3 handling like extended version query, which generally seems to do it's job. At the moment most of the commands are working, however the flash loaded never hits a breakpoint after loading as I mentioned in #820."
(Closes #1023)