-
-
Notifications
You must be signed in to change notification settings - Fork 75
Conversation
suyashb95
commented
Sep 10, 2022
- add option to verify written flash
- fixes Add option to verify flash #236
@Urhengulas I've got an ST Link JTAG programmer and an ESP32, would love some tips on testing this out! |
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.
@Urhengulas I've got an ST Link JTAG programmer and an ESP32, would love some tips on testing this out!
Sure!
- Install your local
probe-run
$ cd path/to/probe-run $ cargo install --path .
- Set up the https://github.com/knurling-rs/app-template for your board
- Add the
--verify
option to therunner
in.cargo/config.toml
(link) - Then just run a few of the examples, e.g.:
$ cargo rb hello
- Try it in combination with some of the other configuration flags, e.g.
--measure-stack
,--no-flash
,--connect-under-reset
- If that behaves as expected you can mark the PR as ready for review.
PS: Please add the change to the CHANGELOG.md
.
@Urhengulas Turns out the ST Link debuggers don't work with the ESP32 Would it be possible to test this out on your end? |
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.
I tested it and it seems to verify it. At least the probe-rs
logs say so.
Looking into the code I realized that the --verify
option would be skipped, if used together with --no-flash
. Can you therefore please change the attribute of no_flash
(not verify
!) to following:
/// Skip writing the application binary to flash.
- #[structopt(long, conflicts_with = "defmt")]
+ #[structopt(
+ long,
+ conflicts_with = "disable-double-buffering",
+ conflicts_with = "verify"
+ )]
pub no_flash: bool,
(defmt
isn't needed anymore, and disable-double-buffering
has no effect with --no-flash
as well)
Other than that it looks good to me!
bors r+ |
Build failed: |
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.
Can you please run cargo fmt
?
Afterwards you can use bors r+
to merge.
bors d+
✌️ Suyash458 can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
Build succeeded: |