Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example nrf: improve readme when using multiple probes #315

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/lakers-nrf52840/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ The example is configured to be ran on nRF52840-DK board.

This folder's `.cargo/config.toml` configures the target (`thumbv7m-none-eabi`) and the probe-rs runner so the things should just work:

cargo run --bin initiator
cargo run --bin responder
cargo run --bin initiator -- --probe 1366:1015:000683965284
cargo run --bin responder -- --probe 1366:1051:001050286964

You may want to prefix the commands above with e.g. PROBE_RS_PROBE=1366:1051:001050288491 in order to specify which board you want to connect to.
Note that if there are two boards connected to your computer, we need to specify which one we want to use.
You can get the name of your probes by running:

probe-rs list

You can enhance debugging by passing environment variables such as `DEFMT_LOG=trace`."
You can enhance debugging by passing environment variables such as `DEFMT_LOG=trace`."
2 changes: 2 additions & 0 deletions examples/lakers-nrf52840/src/bin/responder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ async fn main(spawner: Spawner) {
mbedtls_memory_buffer_alloc_init(buffer.as_mut_ptr(), buffer.len());
}

info!("Responder started, will wait for messages");

loop {
let mut buffer: [u8; MAX_PDU] = [0x00u8; MAX_PDU];
let mut c_r: Option<ConnId> = None;
Expand Down