Closed kdsch closed 3 years ago
Do you have your project on github? Are you using --nmagic flag? Can you try with it? https://github.com/atsamd-rs/atsamd/blob/master/boards/feather_m4/.cargo/config#L11
The code isn't on GitHub, but I can create a repo there if it would help.
Good suggestion. Looks like I did miss the .cargo/config file. And that seems to have fixed the problem! Thank you.
I am opening this issue at the request of @twitchyliquid64 (per our discussion here), but it pertains to an error encountered while running cargo-hf2, so let me know if this is not the right place to discuss it.
I am new to Rust; I may have made a basic mistake. The project is to build Rust code that incorporates Faust (transpiled to Rust, incorporated via build.rs) to run on the Adafruit Grand Central M4. I'm using a bootloader. I have successfully flashed the blinky example for the board, and have used that project as a starting point of mine. The main difference is the directory structure (and anything I might have missed).
Here's the error.
I inspected the cargo-hf2 source. Long story short, the ELF created by invoking cargo is suspect.
This file at first seemed to be a valid ARM ELF
however upon closer inspection with Radare, has some unusual properties: no entrypoints, all symbols starting at zero and having zero length.