-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/nucleo-f767zi: Fix13179 make nucleo-f767zi debuggable again #13470
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
Conversation
Travis says:
so i will do that this will hide the reverting of 13179 |
cfeed18
to
eed174f
Compare
No idea about the change and discussions behind it, just a blind test. Maybe it helps: Current master: -> flashing tests/riotboot doesn't work (/tests/shell does)
This PR: flashing works
I couldn't stop at a breakpoints in both versions. What I tried:
-> simply runs the program and doesn't actually break in main |
seems like 'tests/riotboot' is not the best example for debugging and breakpoints the debugging issue i have is independant of riotboot. riotboot is about moving firmware to other place on flash, to keep multiple of them around (Versioning and CRCing, then help to decide which is actually will run)) or you load
which has the right addresses for slot 0
and it will break |
interresting this is a problem with #13179 (and current master) |
@kfessel sorry for not addressing this earlier, I was AFK this last two weeks. I'm sorry I didn't test setting breakpoints with the change in #13179 and that this had led to the mis-configuration you state. I'll take a closer look into this now. I agree that fixing probing is the best fix, the issue is that using
This could be a better alternative you are right. Would you agree on a solution where #13179 is reverted and your suggestion used? |
I think this should also be split into two PR;s, one with the revert, that we can backport to 2020.01. And the one fixing the issue, depending on the impact of the change, e.g.: changing |
Hi just reading, i will also create a revert PR for #13219 (I did at #13503) had this this PR be two commits before but Travis said they should be squashed before this can continue so I did. |
the reset halt might be a problem when u want to debug but this flash probing procedure is only used for flashing bin file (calculating where to flash them) so this is no problem (btw the procedure start with a srst assert there is no program state left at that point in time) |
True, sorry I misread where your proposed change was. This is indeed the best fix for the issue.
I can properly apply breakpoints:
Reproduced failure in master
|
so will we go for the 4 PR (two for master two for Backport ) or the two PR solution |
I re-thought how this should be handled. If I just backport the revert, then I would re-introduce the inability to flash binaries. I think having both the revert and the fix in the same PR is actually better, but having them as two separate commits, the revert and the fix. I think I'll probably make a point release including this and maybe other bug fixes that have showed up since 2020.01. But I need to discuss this a little bit with other maintainers. For now lets get this fix in to master with two distinct commits. Sorry for all the noise, regarding the commits/pr's and thanks again for the proper fix here. |
I posted the last comment before seeing this. Lets first go with this single PR with two commits for now. |
Ok but will i t go through travis with two commits it told me to squash them before. |
What was the message? |
its my second comment in this PR |
I can repush my old branch ( keeped it on my pc for Reference) so we can see the message. but this will trigger the whole ci |
Oh this is just because travis doesn't accept commits prefixed with
|
wat? < there should be a gif but i do not know where to link i will rework my that and push |
Sorry, maybe its clearer when looking at the rest of the code, here is the permalink: RIOT/dist/tools/pr_check/pr_check.sh Lines 32 to 37 in 4a960ac
To avoid |
I think the best would be:
and a commit message with the PR title
|
And the the commit with the fix. |
did that |
now for the backport |
For the backport we should use our standard tools, so when this PR is merged we can use our backport script:
But this PR needs to be merged before. |
ok then lets wait |
Since i saw you use the Docker build, which openocd does it use? or is it the systems openocd? |
|
BTW I tested with openocd latest release as well as my local more update openocd. |
seems like this can be merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK!
Backport available at #13513 |
For backports its better to use the available scripts |
Backport provided in #13531 |
Reverts #13179 which introduced debugging issues due to misinformation of openocd and thereby gdb
Contribution description
Fixes the issue that #13179 tried to address by making the flash probing work on the nucleo-f767zi.
Might generaly improve probing Results due to switching from system reset to system halt after reset.
Testing procedure
The issue #13179 tried fixed:
would fail due to openocd not being able to probe flash while srst is asserted
the issue #13179 generated
lead to gdb telling me:
Issues/PRs references
Fixes #13179 this is the same as #13457 but with the patch for openocd.sh added