Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added esp32c6 support #917

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,33 @@ jobs:
- name: Check the examples
run: cargo xtask --platform esp32-c3 --backend ${{ matrix.backend }} example-check

# Platform esp32c6: verify all examples, checks
checkexamplesesp32c6:
name: check examples (esp32c6)
runs-on: ubuntu-22.04
strategy:
matrix:
backend:
- riscv-esp32-c6
toolchain:
- nightly
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Rust ${{ matrix.toolchain }}
run: |
rustup toolchain install nightly-2023-11-14 --component rust-src --target riscv32imac-unknown-none-elf

- name: Configure Rust target
run: |
rustup target add riscv32imac-unknown-none-elf

- name: Cache Dependencies
uses: Swatinem/rust-cache@v2

- name: Check the examples
run: cargo xtask --platform esp32-c6 --backend ${{ matrix.backend }} example-check

buildqemu:
name: Get modern QEMU, build and store
Expand Down Expand Up @@ -902,6 +929,7 @@ jobs:
- checkexampleslm3s6965
- checkexampleshifive1
- checkexamplesesp32c3
- checkexamplesesp32c6
- testexampleslm3s6965
- testexampleshifive1
- testexamplesesp32c3
Expand Down
15 changes: 15 additions & 0 deletions examples/esp32c6/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[target.riscv32imac-unknown-none-elf]
runner = "espflash flash --monitor"

[build]
rustflags = [
"-C", "link-arg=-Tlinkall.x",
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
# NOTE: May negatively impact performance of produced code
"-C", "force-frame-pointers",
]

target = "riscv32imac-unknown-none-elf"

[unstable]
build-std = ["core"]
Loading
Loading