-
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] Preparations for future STLink-v3 support #863
[feature] Preparations for future STLink-v3 support #863
Conversation
- Formatting fixes in CHANGELOG.md - Added comment in .travis.sh - Update for .travis.yml: gcc/g++ v5->v6
@Nightwalker-87 did you merge this into develop manually? What is the status of this PR? There are conflicts. |
@bmarvo: Yes, and I'm aware of that. I'll take a closer look at it after my next outstanding commit. It has mostly to do with patches in the changelog as a result of the ongoing ticket review. The rest is solely whitespace stuff. |
Conflicts resolved and content merged with PR #866. |
@martonmiklos: Thx for your contribution! 👍 |
@martonmiklos: It seems I have messed up proper merging of this last time. |
Well for me it was quite a surprise that you merged the V3 support upstream, I just stated in the #820 that some testing needed not that it is finished. Anyway do not worry, I will figure this out. |
i've been using a stlinkv3 recently, on a g474 board, and except a strange trace at start :
that need to be taken care of, i've had no catastrophic issues. |
@martonmiklos: Could you add a missing comment related to #271 in |
I've just found that merge-commit aad5cf1 accidentally introduced a bug on my STlink-v2 (clone) device. Entering
in contrast to the previous commit:
This error is reproducible as often as I retry, recompile or plug/unplug the device, so one can assume something got screwed up there. I haven't found the exact place in the code yet, but fortunately we already know exactly in which commit it appeared... I am posting this here, because this commit derived from the same branch as this PR. |
3e1890d
to
f7344a8
Compare
Flash programming is broken
f7344a8
to
09ea99a
Compare
@martonmiklos: Thank you. This is a lot better now. 👍 |
The current compile errors are again associated with the 64 to 32 conversion. May need a unified way of dealing with size_t. Too many casts are really a burden. |
28aa29d
to
e87bdff
Compare
If no further interest appears (resulting in somehow active contribution) to fully implement this feature for the upcoming release, then we will leave it at that and push the related ticket to a later milestone. This feature will not block our next release, nor should this PR remain open for much longer. Also orphaned PRs for incomplete features do not comply with our contribution guidelines. I've merged this into a separate branch to address remaining issues. |
Merged into |
@chenguokai: Indeed. I'm currently trying to deal with this. Maybe a change in @martonmiklos: We also need to know what what has been addressed here (short summary or listing) and what parts are still missing as of the current state of knowledge. You should know best. |
ST implemented two different JTAG command API version: V1 and V2. See here APIV1 suffixed commands in the OpenOCD code: The stlink uses only the V1 commands and it seems that ST dropped the support for them in the STLinkV3 firmware. As it turns out from the openOCD code the V2 API was even supported by the STLinkV1 above a certain version: 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 somewhere else (sometimes for me it is hard to follow the multiple PRs/issues associated with the V3). I have traced the SWD with a logic analyzer where I see a small amount of difference between the V2/V3 traces. However I would need to route the stlink cmdline output to a serial line which could be used to track down where exactly happens the difference. |
We shall address this within #820 at a later point in time where the breakpoint issue is also mentioned. This issue shall remain the only one dealing with ST-Link-v3 from now on. From your preceding explanations I read that basic support/compatibility seems to be present already (though not sufficiently tested yet). I have added the key points of your descriptions to a description for an upcoming PR which covers all changes that have been made here and will include a solution for the 64 to 32 conversion issue to ensure all build tests will pass. |
I would suggest unifying the return value types. For example, a |
I left a note on that in #954. |
- Comment for selection of API-Version (#271) - Whitespace cleanup - Fixed casting (-Wshorten-64-to-32)
No description provided.