Comments (3)
Hi, I might also don't know how to use this 😭
I added this to my Cargo.toml: tinyusb-sys = { version = "0.1", features = ["host", "hid", "rp2040"] }
Is there something else missing?
noone@imac20 rp2040-project-template % RUST_BACKTRACE=1 cargo build
Compiling tinyusb-sys v0.1.0
error: failed to run custom build command for `tinyusb-sys v0.1.0`
Caused by:
process didn't exit successfully: `/Users/noone/Documents/rp2040-project-template/target/debug/build/tinyusb-sys-f467065c88a53664/build-script-build` (exit status: 101)
--- stdout
OPT_LEVEL = Some("3")
TARGET = Some("thumbv6m-none-eabi")
HOST = Some("x86_64-apple-darwin")
CC_thumbv6m-none-eabi = None
CC_thumbv6m_none_eabi = None
TARGET_CC = None
CC = None
CROSS_COMPILE = None
CFLAGS_thumbv6m-none-eabi = None
CFLAGS_thumbv6m_none_eabi = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = None
--- stderr
thread 'main' panicked at 'Failed to run the compiler: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /Users/noone/.cargo/registry/src/github.com-1ecc6299db9ec823/tinyusb-sys-0.1.0/build.rs:34:14
stack backtrace:
0: rust_begin_unwind
at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/panicking.rs:142:14
2: core::result::unwrap_failed
at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/core/src/result.rs:1785:5
3: core::result::Result<T,E>::expect
4: build_script_build::main
5: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
noone@imac20 rp2040-project-template %
from tinyusb-sys-rs.
I pushed a fix: c71f667
There's more things to fix though, like configuring the stm32fxxx target. I'm not going to do it though, but whoever who'd like to do so can in tusb_config.rs
from tinyusb-sys-rs.
Ah! I completely missed the point that I didn't have arm-none-eabi-gcc installed (via homebrew) on my Mac. Now I'm getting the same issue as @m5p3nc3r. Setting export PICO_SDK_PATH=~/pico-sdk
also didn't work:
running: "arm-none-eabi-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-mthumb" "-march=armv6s-m" "-I" "tinyusb/src" "-I" "/Users/noone/Documents/rp2040-project-template/target/thumbv6m-none-eabi/debug/build/tinyusb-sys-d14208066ec1c970/out" "-Wall" "-Wextra" "-o" "/Users/noone/Documents/rp2040-project-template/target/thumbv6m-none-eabi/debug/build/tinyusb-sys-d14208066ec1c970/out/tinyusb/src/portable/raspberrypi/rp2040/hcd_rp2040.o" "-c" "tinyusb/src/portable/raspberrypi/rp2040/hcd_rp2040.c"
cargo:warning=tinyusb/src/portable/raspberrypi/rp2040/hcd_rp2040.c:32:10: fatal error: pico.h: No such file or directory
cargo:warning= 32 | #include "pico.h"
cargo:warning= | ^~~~~~~~
cargo:warning=compilation terminated.
exit status: 1
How can I try the fix from c71f667?
from tinyusb-sys-rs.
Related Issues (5)
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 tinyusb-sys-rs.