-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any chance of supporting AVR? #92
Comments
I had the same issue. The problem is that As a temporary solution, you can use the built-in [target.'cfg(target_arch = "avr")']
runner = "ravedude nano -cb 57600"
rustflags = [
"-C", "default-linker-libraries",
]
[build]
target = "avr-unknown-gnu-atmega328"
[unstable]
build-std = ["core"] I opened a discussion on |
Still not working for me, here's a sample: avr-bug.zip after changing: # .cargo/config.toml
rustflags = ["-Z emit-stack-sizes", "-C", "default-linker-libraries"]
# ...
[build]
target = "avr-unknown-gnu-atmega328" now getting a lot of:
|
Some notes about the code you attached:
Therefore, this is the correct [target.avr-unknown-gnu-atmega328]
runner = "qemu-system-avr -M uno -nographic -serial tcp::5678,server=on -bios"
rustflags = ["-Z", "emit-stack-sizes", "-C", "default-linker-libraries"]
[build]
target = "avr-unknown-gnu-atmega328"
[unstable]
build-std = ["core"] |
Still no luck, now I'm getting:
|
This error seems to be unrelated to the compilation target, so I cannot really help. |
I'm compiling rust code for AVR using avr-hal which uses
avr-gcc
for final compilation and bypasses LLVM. If I try:file rename and attached: arduino_lib-3273400ccbbcd796.txt
The text was updated successfully, but these errors were encountered: