Comments (6)
Thanks! That appears to do the trick!
from esp-backtrace.
This crate only supports Xtensa or riscv, ensure you are building for the correct target.
from esp-backtrace.
I'm having the same problem:
error[E0583]: file not found for module `arch`
--> /home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/lib.rs:8:1
|
8 | pub mod arch;
| ^^^^^^^^^^^^^
|
= help: to create the module `arch`, create file "/home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/arch.rs" or "/home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/arch/mod.rs"
error[E0425]: cannot find function `backtrace` in module `crate::arch`
--> /home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/lib.rs:31:34
|
31 | let backtrace = crate::arch::backtrace();
| ^^^^^^^^^ not found in `crate::arch`
Some errors have detailed explanations: E0425, E0583.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `esp-backtrace` (lib) due to 2 previous errors
Caused by:
process didn't exit successfully: `/home/patrick/.rustup/toolchains/esp/bin/rustc --crate-name esp_backtrace --edition=2021 /home/patrick/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-backtrace-0.9.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=273 --crate-type lib --emit=dep-info,metadata,link -C opt-level=s -C embed-bitcode=no -C debuginfo=2 -C debug-assertions=on --cfg 'feature="esp-println"' --cfg 'feature="esp32s2"' --cfg 'feature="exception-handler"' --cfg 'feature="panic-handler"' --cfg 'feature="print-uart"' -C metadata=386bc5d608c0c2a8 -C extra-filename=-386bc5d608c0c2a8 --out-dir /home/patrick/git/patrick/weather-esp32-s2/target/debug/deps -L dependency=/home/patrick/git/patrick/weather-esp32-s2/target/debug/deps --extern esp_println=/home/patrick/git/patrick/weather-esp32-s2/target/debug/deps/libesp_println-3cf1b2e2e6af783f.rmeta --cap-lints allow` (exit status: 1)
from esp-backtrace.
Would you mind sharing the whole project? We select the arch
by the target architecture (
Lines 6 to 8 in db2bb85
from esp-backtrace.
You can check it here: https://github.com/patrickelectric/weather
You can check what I'm doing to build in README
from esp-backtrace.
Seems like you are missing the .cargo/config.toml
file there which sets the default target. See https://github.com/esp-rs/esp-hal/blob/main/esp32s2-hal/.cargo/config.toml
from esp-backtrace.
Related Issues (15)
- Prettier panic formatting? HOT 4
- Add a feature for logging panics with defmt HOT 4
- Adapt to changed ESP32-C3 trap frame
- Add support for the ESP32-C6
- Add support for the ESP32-H2
- Give a hint if there are no backtrace entries on RISCV
- Sleep modes? Are they available? How can I put my esp32 to deep sleep? HOT 1
- Halt all cores in case of a panic (on multi core targets)
- Prefix exception handler values with '0x'
- Extend `is_valid_ram_address` to LP (RTC) memories HOT 5
- Add support for the ESP32-P4
- Document that `"-C", "force-frame-pointers"` is only necessary on RISCV targets
- `colors` features not compatible with `panic-handler` feature HOT 1
- backtrace printings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-backtrace.