Erase-all flash option #368
Comments
Are you talking about |
I think so. I’m not familiar with the internals of probe-rs, but I’m suggesting the equivalent of |
@huntc Can you please try it out if it works as expected? Please install and execute $ cargo install --git https://github.com/knurling-rs/probe-run --branch erase-all
$ probe-run --chip nRF52840_xxAA --erase-all ./path/to/elf
$ # ^^^^^^^^^^^^^ adapt this to your chip I've added a call to |
Thanks @Urhengulas ! I've tested it and get the following:
Should we be concerned about that error? I'm using an nRF52840-DK (gen 3). |
Oh, actually if the device becomes protected (as per the previous run, above), then I get the following:
An |
@huntc It probably is my mistake. When creating the session, I forgot to call the If that does not work there is also probe_rs::Session::sequence_erase_all we can try. |
Hey @Urhengulas - all now appears well! I can flash the device with AP, and then subsequently use |
Would an option to erase all flash be considered generally useful? The gen 3 nRF52 boards have AP Protect enabled by default, so it might be handy for an optional erase all to enable subsequent flashing.
The text was updated successfully, but these errors were encountered: