File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -126,3 +126,21 @@ expect it to do so.*
126
126
## License
127
127
128
128
[ 0-clause BSD license] ( LICENSE-0BSD.txt ) .
129
+
130
+ ## Contributing
131
+
132
+ ### Running Tests
133
+
134
+ Tests are run via the integration test pattern and are executed on a target chip, rather than on a host system.
135
+ First, install [ probe-run] ( https://crates.io/crates/probe-run ) via ` cargo install probe-run ` .
136
+ Next, you'll need to modify ` .cargo/config ` to link defmt and use ` probe-run ` configured for your chip.
137
+ See details within the comments in that file.
138
+
139
+ Now, you can execute a test by setting your device, defmt, and any test specific features:
140
+
141
+ ```
142
+ cargo test --test rcc --features=stm32f303xc,defmt,rt
143
+ ```
144
+
145
+ The result _ always_ shows a backtrace, even in the case of success.
146
+ Exit code of 0 means that the run was successful.
You can’t perform that action at this time.
0 commit comments