Closed scynthero closed 1 year ago
I don't think I've update the hello-daisy
repo in a while so it may be a bit behind daisy_bsp
.
That said, two things to try:
alloc
feature:The MIDI example requires daisy_bsp
to be compiled with the alloc
feature.
Try editing your Cargo.toml
file to enable this feature for daisy_bsp
:
daisy_bsp = { version = "0.5.1", features = ["seed", "alloc"] }
panic
crate:All Embedded Rust applications need a panic handler. The one you pick depends on what kind of logging interface you're using.
To get your example to compile you can just use the simplest one:
Add to Cargo.toml
dependencies:
panic-halt = "0.2.0"
Add to your main source file:
use panichalt as ;
Thanks a lot! The alloc feature for daisy_bsp fixed the problem. The panic handler part i fixed by using the one used in dev-dependencies.
Hi! First thanks for this awesome crate. My problem is, that when i compile audio_midi example it works.
I copied necessary files (including Cargo.toml) to my own project that i started using hello daisy and cargo generate as per readme in daisy_bsp
When i try to compile it this way i'm getting error:
I don't really understand why, as the code is the same and so are the dependencies and features. I'm using rustc 1.67.0-nightly (c97b539e4 2022-11-30) and target thumbv7em-none-eabihf.
Hope someone can help, thanks.