diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -30,27 +30,23 @@ Before attempting to generate the flash programming algorithms for [probe-rs], install the `target-gen` tool. It's available in the probe-rs repository. [My fork][probe-rs-fork] has some `target-gen` patches that might be useful. -Here's how to generate the algorithm, represented as YAML, for the 1010EVK: +Use `target-gen test` to test each algorithm on its EVK. For convenience, +there are dedicated Cargo configurations you can use. For example, to test the +algorithm on a 1010EVK, run ``` -cargo --config .cargo/flash_algo.toml run --release --package=imxrt1010evk +cargo --config .cargo/1010evk.toml run --release --package=imxrt1010evk ``` -To generate the algorithm for a different EVK, change the `--package` selection. - -Some of the EVKs have a smoke test that checks read, erase, and write with its -flash part. Keep in mind that this will manipulate your board's flash, and it -might change something you care about! +To test on a different EVK, change the Cargo configuration and the package. -To run the smoke test on the 1010EVK, power on your EVK and connect it to your -host. Then, submit +Here's how to generate the algorithm, represented as YAML, for the 1010EVK: ``` -cargo --config .cargo/imxrt1010.toml run --release --package=imxrt1010evk --example=smoke +cargo --config .cargo/flash_algo.toml run --release --package=imxrt1010evk ``` -to flash the example with probe-rs. If you change the EVK, change the Cargo -configuration for your MCU as well as your package. +To generate the algorithm for a different EVK, change the `--package` selection. [fpa]: https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/flashAlgorithm.html [probe-rs]: https://probe.rs |
