Skip to content

Commit b3491b4

Browse files
authored
Add ESP32C6 example (#96)
Built on top of #83. The client does not work on Windows due to berkowski/tokio-serial#71 - it's annoying but workable in WSL using usbipd.
1 parent b485290 commit b3491b4

File tree

15 files changed

+2720
-218
lines changed

15 files changed

+2720
-218
lines changed

ci.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -euxo pipefail
44
rustup target add \
55
thumbv6m-none-eabi \
66
thumbv7em-none-eabihf \
7+
riscv32imac-unknown-none-elf \
78
wasm32-unknown-unknown
89

910
# Host + STD checks
@@ -75,6 +76,9 @@ cargo build \
7576
cargo build \
7677
--manifest-path example/nrf52840-serial/Cargo.toml \
7778
--target thumbv7em-none-eabihf
79+
cargo build \
80+
--manifest-path example/esp32c6-serial/Cargo.toml \
81+
--target riscv32imac-unknown-none-elf
7882

7983
# Test Project
8084
cargo test \
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[target.riscv32imac-unknown-none-elf]
2+
runner = "probe-rs run --chip=esp32c6 --preverify --always-print-stacktrace --no-location --catch-hardfault"
3+
4+
[env]
5+
DEFMT_LOG="info"
6+
7+
[build]
8+
rustflags = [
9+
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
10+
# NOTE: May negatively impact performance of produced code
11+
"-C", "force-frame-pointers",
12+
]
13+
14+
target = "riscv32imac-unknown-none-elf"
15+
16+
[unstable]
17+
build-std = ["core"]

example/esp32c6-serial/.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
debug/
4+
target/
5+
.vscode/
6+
7+
# These are backup files generated by rustfmt
8+
**/*.rs.bk
9+
10+
# MSVC Windows builds of rustc generate these, which store debugging information
11+
*.pdb
12+
13+
# RustRover
14+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
15+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
16+
# and can be added to the global gitignore or merged into this file. For a more nuclear
17+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
18+
#.idea/

0 commit comments

Comments
 (0)