openocd: get flash and debug files from cli#10539
Conversation
d0b0c69 to
c98b038
Compare
|
I rebased on top of the last master to be a base for other PRs. |
|
By debugging the other required files, I think I should also include the changes for the |
|
@kenrabold can you check flashing is still working for the |
aabadie
left a comment
There was a problem hiding this comment.
No particular comment on the code changes, they are all good.
I tested flash and debug on a nucleo board and all worked the same as in master.
ACK, but before merging, let's wait a bit for @kenrabold test on hifive.
|
I'll merge this one tomorrow if no one objects. |
boards/hifive1/dist/flasher.sh
Outdated
| do_flash "$@" | ||
| ;; | ||
| *) | ||
| echo "Usage: $0 flash" |
There was a problem hiding this comment.
Maybe also update the "usage" message ?
There was a problem hiding this comment.
I forgot this one indeed.
There was a problem hiding this comment.
No problem, now it's time to squash !
Get FLASH_FILE and ELFFILE from command line instead of environment variable. The documentation was claiming ELFFILE was given as a command line argument already, but is was not.
Get FLASH_FILE from command line instead of environment variable. The documentation was claiming ELFFILE was given as a command line argument already, but is was not. This is the same change as with `openocd.sh`.
a54658f to
0b66445
Compare
|
Squashed and rebased. |
|
Failing to an unrelated native |
|
Failing again because of Re-triggering again. |
|
It's all green ! Thanks @cladmi for restarting the CI. |
|
Thanks for the review :) |
Contribution description
Get FLASH_FILE and ELFFILE from command line instead of environment variable.
The documentation was claiming ELFFILE was given as a command line argument
already, but is was not.
EDIT: this also includes
hifive1specific flasher based on openocd as they shareFFLAGS.Testing procedure
I tested on
iotlab-m3withflashanddebug.I also ran the command for the
seeeduino_arch-prohas it had specific changes.I checked and no
boards | Makefile.includeis settingIMAGE_FILEanymore too.iotlab-m3 check
To get a more verbose comparison I used:
The difference for flash between master and this PR was this one (without the
speedandtimediff)and for debug, after removing the difference for the
tmpdirectory name:seeeduino_arch-pro check
For the
seeeduino_arch-proit is using thehexfileas is master. The command output was this one (without the board):hifive1 check
Issues/PRs references
Split out of #8838