Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lechevspace/embassy-pico-template


https://github.com/lechevspace/embassy-pico-template

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Embassy RP Pico template

[![sponsor-us]](https://github.com/sponsors/LechevSpace)

## Setup

Use a debug probe like a second Raspberry Pi Pico running [`picoprobe.uf2`][picoprobe-releases] or Raspberry Pi Debug probe running [`debugprobe.uf2`][picoprobe-releases] (a CMSIS v2 compatible firmware).

[picoprobe-releases]: https://github.com/raspberrypi/picoprobe/releases

## Running

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/config.toml):

`cargo run-firmware`

### Logging

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](./.cargo/config.toml).

## Testing

Run test as regular crate or project by using `cargo test` which will use your host target and the `std` feature (enabled by default)

# License

Licensed under either of [Apache License, Version 2.0](./LICENSE-APACHE)
or [MIT license](./LICENSE-MIT) at your option.

### Contribution

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.

[sponsor-us]: https://img.shields.io/github/sponsors/LechevSpace?color=bf3989&label=Sponsor%20us&style=for-the-badge&logoColor=bf3989&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgd2lkdGg9IjE2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHBhdGggZmlsbD0iI2JmMzk4OSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNC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