-
Notifications
You must be signed in to change notification settings - Fork 28
Porting a esp-hal example to a standalone esp-template generated repo? #153
Comments
As mentioned in esp-rs/esp-hal#1336 (comment), looks like you are missing some Feel free to reopen the issue if you consider it is not completed. |
@SergioGasquez Not the same issue, here's my [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"] could you please point out what I'm missing? Also I don't seem to be able to reopen the issue, perhaps that option is disabled in this repo? |
There is something strange going on.
esp-template/.cargo/config.toml Lines 16 to 18 in 21b13bc
And in the posted file above it's not present - so the big question would be what adds that option? |
Since I cannot tell if the last question is aimed at me, I re-did the steps above just in case (with no advanced template options this time)... and got another
Here's the generated
Here's the end of
Are any of you two @bjoernQ and/or @SergioGasquez able to reproduce this issue or it's just me? |
I'm not able to reproduce it given the steps above. But since it seems cargo is picking up something which is not in your generated |
Maybe the output of |
Thanks @bjoernQ, here it is:
On a quick look, I don't see any config overrides/definitions in
Thanks for the assistance either way! |
Just for reference this is what the effective config looks for me
e.g.
|
Aha! Thanks so much, there was this remaining
Thanks so much for the help, apologies for the confusion! |
Hello!
I was trying to have one of the great embassy
esp-hal
examples fromesp-hal
as a standalone project that I wish to develop further but I ran into the followingrust-lld
issue (similar to esp-rs/esp-hal#1336 ?):$ . ~/export-esp.sh
$ espup update
$ cargo generate esp-rs/esp-template
Then I just went and copied the example file over to
main.rs
on the template (knowing that some error related to embassy not being supported in this template was about to come (see issue #110))... which I could justcargo add
a posteriori (I guessed/thought):$ cp ~/dev/personal/esp-hal/examples/src/bin/embassy_i2s_read.rs src/main.rs
But to my surprise I saw a
rust-lld
error instead:$ cargo build
My local setup seems to be ok since the
esp-hal
example works out of the box, btw:esp-hal$ cargo xtask run-example esp-hal esp32c6 embassy_i2s_read
For context I'm just trying to pipe I2S mems microphone data, see esp-rs/esp-println#29 (comment).
What I am doing wrong here w.r.t the
rust-lld -nostartfiles
error?The text was updated successfully, but these errors were encountered: