0
0
Fork 0
esp32-c_its-companion/Readme.md

38 lines
968 B
Markdown

# ESP32-C5 C-ITS Visualizer
Displays different C-ITS receive-only use cases for cheap.
## Usage
### Toolchain Installation
Install the toolchain, targe and tools like this:
```shell
rustup toolchain install nightly --component rust-src
rustup target add riscv32imac-unknown-none-elf
# cargo install esp-generate --locked
# cargo install esp-config --features=tui --locked
cargo install espflash --locked
```
(Project was setup using esp-generate with the options `--chip esp32c5 -o esp32c5-wroom-1-psram -o alloc -o log -o unstable-hal -o wifi -o esp-backtrace -o embassy`.)
To use the proper rustfmt features, enable the nightly toolchain:
```shell
rustup component add --toolchain nightly rustfmt
```
### Build and Flash
Connect your ESP32-C5 and run:
```
cargo run --release
```
### Run Unit Tests on Host
The unit tests in this project are meant to be run on the host:
```
cargo test --target host-tuple --bin test --no-default-features -F std,spat
```