This repository was archived by the owner on Jan 30, 2024. It is now read-only.
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,17 @@ Add this line to your Cargo configuration (`.cargo/config`) file:
33
33
34
34
``` toml
35
35
[target .'cfg(all(target_arch = "arm", target_os = "none"))' ]
36
- runner = " probe-run --chip $CHIP "
36
+ runner = " probe-run --chip ${PROBE_RUN_CHIP} "
37
37
```
38
38
39
- Instead of ` $CHIP ` you'll need to write the name of your microcontroller.
39
+ Instead of ` ${PROBE_RUN_CHIP} ` you can write the name of your microcontroller.
40
40
For example, one would use ` nRF52840_xxAA ` for the nRF52840 microcontroller.
41
41
To list all supported chips run ` probe-run --list-chips ` .
42
42
43
+ To support multiple devices, or permit overriding default behavior, you may prefer to set the
44
+ ` ${PROBE_RUN_CHIP} ` environment variable, and set ` runner ` (or
45
+ ` CARGO_TARGET_${TARGET_ARCH}_RUNNER ` ) to ` probe-run ` .
46
+
43
47
2 . Enable debug info
44
48
45
49
Next check that debug info is enabled for all profiles.
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ struct Opts {
56
56
defmt : bool ,
57
57
58
58
/// The chip to program.
59
- #[ structopt( long, required_unless( "list-chips" ) ) ]
59
+ #[ structopt( long, required_unless( "list-chips" ) , env = "PROBE_RUN_CHIP" ) ]
60
60
chip : Option < String > ,
61
61
62
62
/// Path to an ELF firmware file.
You can’t perform that action at this time.
0 commit comments