https://github.com/jhodapp/rp2040-uart
An example application that uses the UART to echo output text back to the host machine, written in Rust for the RP2040 microcontroller
https://github.com/jhodapp/rp2040-uart
echo-server rust uart
Last synced: 8 months ago
JSON representation
An example application that uses the UART to echo output text back to the host machine, written in Rust for the RP2040 microcontroller
- Host: GitHub
- URL: https://github.com/jhodapp/rp2040-uart
- Owner: jhodapp
- Created: 2021-11-10T01:04:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T19:15:57.000Z (almost 4 years ago)
- Last Synced: 2023-08-04T10:07:16.625Z (over 2 years ago)
- Topics: echo-server, rust, uart
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# A Rust-based UART echo server for the Raspberry Pi Pico
## Getting started
For more details see the following article on getting started for getting your environment set up
on Mac/Linux:
https://reltech.substack.com/p/getting-started-with-rust-on-a-raspberry
On a Mac, to run minicom: `minicom -D /dev/tty.usbmodem14201 -b 115200`. Note that you'll most likely
need to find the current /dev link assigned to the Pico UART for your particular machine.
## Requirements
- The standard Rust tooling (cargo, rustup) which you can install from https://rustup.rs/
- Toolchain support for the cortex-m0+ processors in the rp2040 (thumbv6m-none-eabi)
- flip-link - this allows you to detect stack-overflows on the first core, which is the only supported target for now.
## Installation of development dependencies
```
rustup target install thumbv6m-none-eabi
cargo install flip-link
cargo install cargo-edit
cargo add panic_halt
```
## Running
For a debug build
```
cargo run
```
For a release build
```
cargo run --release
```
## License
This project is licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.