Use a debug probe like a second Raspberry Pi Pico running picoprobe.uf2
or Raspberry Pi Debug probe running debugprobe.uf2
(a CMSIS v2 compatible firmware).
To run the firmware on the Pico you need to specify the target, disable default features and enable the firmware
feature like so:
cargo run --target thumbv6m-none-eabi --no-default-features -F firmware
Or use the provided alias in ./.cargo/config.toml:
cargo run-firmware
By default we use defmt
for logging and include a variaty of macros for both log
& defmt
seemless integration in your project.
Use the DEFMT_LOG
environment variable to set the necessary verbosity.
DEFMT_LOG=info
is the default which can be tweaked in ./.cargo/config.toml.
Run test as regular crate or project by using cargo test
which will use your host target and the std
feature (enabled by default)
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.