Comments (7)
A little update. I figured you need to enable BT in sdkconfig.default
(I'm a IDF beginner)
# Build and flash options
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
# Bluetooth
CONFIG_BT_ENABLED=y
CONFIG_BT_BTC_TASK_STACK_SIZE=16384
CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY=y
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y
After trying a the minor versions of 4.4.x I've stumbled up on this reposiory which uses v5.x https://github.com/BlackFox1197/wyld-card/blob/main/firmware/.cargo/config.toml#L38
This gave me hope, but now it fails to compile due to I'm having a Macbook M1. Also with v5.0.2
ERROR: tool cmake does not have versions compatible with platform macos-arm64
Error: Could not install esp-idf
I'm using the custom rust toolchain, provided by espup
Such a beast this IDF...
😱
from bluedroid.
how did you create your project? usually esp-idf-sys downloads/installs its own version of esp-idf inside the .embuild dir inside your project, when not specified otherwise.
How did you install your toolchain? did you use espup? did you follow the book. There is also the template you can use to generate new project, and there is a setup guide inside the templates README. template
from bluedroid.
Thanks for your anwer @Vollbrecht !
I've used the https://github.com/esp-rs/esp-idf-template with cargo generate
I just retried it setting it to v5, but I get the same error
ERROR: tool cmake does not have versions compatible with platform macos-arm64
This is after fixing an LZMA error while installing IDF with Python (https://stackoverflow.com/a/67591858). I suspect this has nothing to do with it though.
I've tried googling for the specific macos-arm64 error, it seems in tools/idf_tool.py
you can adjust a platform mapping. But it's weird there is already mappings for ARM, but this one is not matched?
from bluedroid.
do you get this error only in your project or already in a new hello-world template? did it ever run on this machine?
from bluedroid.
It's a hello-world template with version 5.
With version 4 the template worked fine
from bluedroid.
cargo generate esp-rs/esp-idf-template cargo
⚠️ Favorite `esp-rs/esp-idf-template` not found in config, using it as a git repository: https://github.com/esp-rs/esp-idf-template.git
🤷 Project Name: esp-idf-v4-test
🔧 Destination: /Users/mark/Projects/Personal/esp-idf-v4-test ...
🔧 project-name: esp-idf-v4-test ...
🔧 Generating template ...
✔ 🤷 Use the default template values? · false
✔ 🤷 Which MCU to target? · esp32
✔ 🤷 Configure project to use Dev Containers (VS Code and GitHub Codespaces)? · false
✔ 🤷 ESP-IDF version (master = UNSTABLE) · v4.4
✔ 🤷 Enable STD support? · true
✔ 🤷 Configure project to support Wokwi simulation with Wokwi VS Code extension? · false
✔ 🤷 Include esp-idf-hal/esp-idf-svc? · Yes (default features)
🔧 Moving generated files into: `/Users/mark/Projects/Personal/esp-idf-v4-test`...
Initializing a fresh Git repository
✨ Done! New project created /Users/mark/Projects/Personal/esp-idf-v4-test
➜ Personal cd esp-idf-v4-test
➜ esp-idf-v4-test git:(master) ✗ cargo espflash save-image ESP32 /tmp/test.bak
New version of cargo-espflash is available: v2.0.0-rc.3
Updating crates.io index
Downloaded chrono v0.4.26
Downloaded 1 crate (191.5 KB) in 0.60s
Compiling compiler_builtins v0.1.87
Compiling core v0.0.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/core)
Compiling proc-macro2 v1.0.59
Compiling unicode-ident v1.0.9
Compiling quote v1.0.28
Compiling libc v0.2.139
Compiling cc v1.0.77
Compiling memchr v2.5.0
Compiling std v0.0.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/std)
Compiling libc v0.2.144
Compiling serde v1.0.163
Compiling cfg-if v1.0.0
Compiling fnv v1.0.7
Compiling bitflags v1.3.2
Compiling log v0.4.18
Compiling glob v0.3.1
Compiling unwind v0.0.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/unwind)
Compiling syn v2.0.18
Compiling regex-syntax v0.7.2
Compiling syn v1.0.109
Compiling aho-corasick v1.0.1
Compiling clang-sys v1.6.1
Compiling io-lifetimes v1.0.11
Compiling once_cell v1.17.2
Compiling lazy_static v1.4.0
Compiling semver v1.0.17
Compiling rustversion v1.0.12
Compiling aho-corasick v0.7.20
Compiling bstr v1.5.0
Compiling regex v1.8.3
Compiling rustix v0.37.19
Compiling static_assertions v1.1.0
Compiling serde_json v1.0.96
Compiling same-file v1.0.6
Compiling thiserror v1.0.40
Compiling minimal-lexical v0.2.1
Compiling nom v7.1.3
Compiling walkdir v2.3.3
Compiling globset v0.4.10
Compiling nix v0.26.2
Compiling thread_local v1.1.7
Compiling errno v0.3.1
Compiling libloading v0.7.4
Compiling cvt v0.1.2
Compiling either v1.8.1
Compiling ryu v1.0.13
Compiling itoa v1.0.6
Compiling bindgen v0.63.0
Compiling heck v0.4.1
Compiling anyhow v1.0.71
Compiling fs_at v0.1.7
Compiling which v4.4.0
Compiling cexpr v0.6.0
Compiling ignore v0.4.20
Compiling cc v1.0.79
Compiling normpath v1.1.1
Compiling lazycell v1.3.0
Compiling rustc-hash v1.1.0
Compiling fastrand v1.9.0
Compiling peeking_take_while v0.1.2
Compiling shlex v1.1.0
Compiling tempfile v3.5.0
Compiling remove_dir_all v0.8.2
Compiling globwalk v0.8.1
Compiling cmake v0.1.50
Compiling filetime v0.2.21
Compiling serde_derive v1.0.163
Compiling thiserror-impl v1.0.40
Compiling rustc-std-workspace-core v1.99.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling home v0.5.5
Compiling camino v1.1.4
Compiling ident_case v1.0.1
Compiling autocfg v1.1.0
Compiling darling_core v0.20.1
Compiling alloc v0.0.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/alloc)
Compiling adler v1.0.2
Compiling rustc-demangle v0.1.21
Compiling strum_macros v0.24.3
Compiling num-traits v0.2.15
Compiling rustc-std-workspace-alloc v1.99.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/rustc-std-workspace-alloc)
Compiling gimli v0.26.2
Compiling std_detect v0.1.5 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/stdarch/crates/std_detect)
Compiling object v0.29.0
Compiling miniz_oxide v0.5.3
Compiling hashbrown v0.12.3
Compiling panic_unwind v0.0.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/panic_unwind)
Compiling panic_abort v0.0.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/panic_abort)
Compiling darling_macro v0.20.1
Compiling core-foundation-sys v0.8.4
Compiling darling v0.20.1
Compiling iana-time-zone v0.1.56
Compiling addr2line v0.17.0
Compiling strum v0.24.1
Compiling unicode-xid v0.2.4
Compiling enumset_derive v0.8.1
Compiling const_format_proc_macros v0.2.31
Compiling chrono v0.4.26
Compiling version_check v0.9.4
Compiling uncased v0.9.9
Compiling build-time v0.1.3
Compiling cargo-platform v0.1.2
Compiling envy v0.4.2
Compiling rustc_version v0.4.0
Compiling heapless v0.7.16
Compiling embuild v0.31.2
Compiling cargo_metadata v0.15.4
Compiling proc_macro v0.0.0 (/Users/mark/.rustup/toolchains/esp/lib/rustlib/src/rust/library/proc_macro)
Compiling nb v1.1.0
Compiling byteorder v1.4.3
Compiling stable_deref_trait v1.2.0
Compiling nb v0.1.3
Compiling embedded-hal v1.0.0-alpha.10
Compiling enumset v1.1.2
Compiling hash32 v0.2.1
Compiling void v1.0.2
Compiling atomic-waker v1.1.1
Compiling const_format v0.2.31
Compiling embedded-hal v0.2.7
Compiling embedded-hal-nb v1.0.0-alpha.2
Compiling embedded-can v0.4.1
Compiling embedded-io v0.4.0
Compiling no-std-net v0.5.0
Compiling embassy-futures v0.1.0
Compiling esp-idf-sys v0.33.0
Compiling esp-idf-hal v0.41.1
Compiling esp-idf-svc v0.46.0
Compiling esp-idf-v4-test v0.1.0 (/Users/mark/Projects/Personal/esp-idf-v4-test)
Compiling embedded-svc v0.25.0
Finished dev [optimized + debuginfo] target(s) in 2m 56s
App/part. size: 465824/4128768 bytes, 11.28%
from bluedroid.
I've managed to get it working.
- After fiddling around with the right
pyenv
setup running Python 3.9.4 (LZMA trouble). - I've used the https://github.com/esp-rs/esp-template with IDF version 5
- I copied the sources of this project into my own repository as it didn't compile for me
from bluedroid.
Related Issues (14)
- Typestate pattern.
- Update to IDF 5.0 HOT 7
- Should this be upstreamed into esp-idf-svc? HOT 12
- Encryption support.
- Merge changes from `esp-idf-svc` fork.
- Recent support for ESP-IDF 5.0 broke 4.4 HOT 10
- `let` expressions in this position are unstable HOT 8
- Completely stops working after write event processed
- Current implementation Panics if accessing Default NVS partition
- Change method type of `on_write` HOT 6
- No field `link_role` on type `esp_ble_gatts_cb_param_t_gatts_disconnect_evt_param` HOT 2
- Typed characteristics.
- Event handler refactoring.
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 bluedroid.