Skip to content

Ensure that you are using an AVR target! You may need to change directories or pass a --target flag to cargo #320

Answered by Rahix
Kurren123 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to read the instructions more carefully ;)

This part:

[build]
target = "avr-atmega328p.json"

[unstable]
build-std = ["core"]

does not belong into Cargo.toml, but into a separate file named .cargo/config.toml.

Also, you need more directives in your Cargo.toml to configure the build profile. Take another look at the Starting your own project guide to see the details.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Rahix
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Rahix
Comment options

@Nambers
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #137 on September 02, 2022 10:44.