boards/pba-d-01-kw2x: fix flashing from invalid state#11549
boards/pba-d-01-kw2x: fix flashing from invalid state#11549fjmolinas merged 1 commit intoRIOT-OS:masterfrom
Conversation
46f298e to
917d598
Compare
|
I think I should also test debugging. I put this as a reminder. |
fjmolinas
left a comment
There was a problem hiding this comment.
This PR fixes the issue, but DEBUG is not working properly anymore on this branch, while it is on master. I'll take a closer look tomorrow.
|
It still works for me for debugging: I could also debug |
a03ef73 to
917d598
Compare
|
I executed this:
on master: with this PR: |
917d598 to
5a31823
Compare
|
This one is now based on #11976 @fjmolinas would this work for your board right now? and if I replace the With |
f7fa42c to
75c6fcb
Compare
When in an invalid state, the board could not flash anymore. Like for example after flashing `tests/driver_adt7310` this makes it flash again. I used `reset_config srst_only` as the other kinetis boards are also configured that way.
75c6fcb to
94dfc4d
Compare
|
Rebased now that #11976 is merged. |
Does it also fail with diff --git a/boards/pba-d-01-kw2x/dist/openocd.cfg b/boards/pba-d-01-kw2x/dist/openocd.cfg
index 94a704212..1a5dbc6a2 100644
--- a/boards/pba-d-01-kw2x/dist/openocd.cfg
+++ b/boards/pba-d-01-kw2x/dist/openocd.cfg
@@ -1,3 +1,3 @@
source [find target/kx.cfg]
-reset_config srst_only
+reset_config trst_and_srst
$_TARGETNAME configure -rtos auto |
|
@fjmolinas indeed, there was no change as you mentioned in #12261 (comment) I had the diff to try in the previous comment. I pushed it to simplify testing :) |
|
@cladmi I'm trying to get it to work on my board ass wll but I still have the same issues as stated before. I tried to go back to the board documentation but it seems @PHYTEC-Messtechnik-GmbH has dropped there wiki entries for this board... |
|
@cladmi as I had told you IRL my board had some issue that could have explained why it wasn't working for me. I managed to fix them and know I have the following behaviour:
RIOT_CI_BUILD=1 BOARD=pba-d-01-kw2x make -C tests/driver_adt7310/ flash
.RIOT_CI_BUILD=1 BOARD=pba-d-01-kw2x make -C examples/hello-world/ flash debugThis is independent of using |
Do you know in which state you were before as a reference? or what did you do to become again in the "normal" state? IIRC @MichelRottleuthner had some boards that could not flash and it may help him too.
I agree, as No worry for the delay, these things are still black magic for me and any additional input forces to re-consider what I know. |
|
I will remove the last commit and push force. |
d1a476c to
94dfc4d
Compare
|
Thank you for the review and testing. |
Contribution description
When in an invalid state, the board could not flash anymore.
Like for example after flashing
tests/driver_adt7310this makes itflash again.
I used
reset_config srst_onlyas the other kinetis boards are alsoconfigured that way.
RIOT/boards/common/frdm/dist/old-openocd-kx.cfg
Lines 38 to 39 in c439346
Testing procedure
Thy flashing two or more times
tests/driver_adt7310compile first and runflash-only.With this pull request it works without issues.
RIOT_CI_BUILD=1 BOARD=pba-d-01-kw2x make -C tests/driver_adt7310/ flash-onlyWith master after the second time it fails:
Flash fails without error messageIssues/PRs references
Found while running the test suite on the board in #10870