Closed Narukara closed 1 year ago
Are you familiar with cargo-flash? I was doing something similar to what you propose but now I simply use something like cargo flash --release --chip NRF52820_XXAA
. It works like a charm!
Are you familiar with cargo-flash? I was doing something similar to what you propose but now I simply use something like
cargo flash --release --chip NRF52820_XXAA
. It works like a charm!
I tried cargo-flash as you said and it works perfectly. Thanks for your advice!
Now that there is a tool available, I think this issue can be closed.
Can we add a runner to flash program directly through openocd? It can be annoying to start openocd and close gdb manually every time you flash.
In fact, I did this in my own project:
runner = "./flash.sh"
toconfig.toml
flash.sh
in the project root directory, and its contents are:Then I can flash the program directly with
cargo run
. This may not be a good way to implement it, but it's really convenient.