Skip to content
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

Can't compile for Nano #29

Closed
nkieffer opened this issue Sep 3, 2018 · 7 comments
Closed

Can't compile for Nano #29

nkieffer opened this issue Sep 3, 2018 · 7 comments

Comments

@nkieffer
Copy link

nkieffer commented Sep 3, 2018

Unable to compile for Nano. The arduino:avr core is installed. I've been able to compile for other boards included in the arduino:avr core.


nkieffer@cmis-nkieffer ~/Arduino $ arduino-cli core list
ID Installed Latest Name
arduino:avr 1.6.21 1.6.21 Arduino AVR Boards

nkieffer@cmis-nkieffer ~/Arduino $ arduino-cli compile --fqbn arduino:avr:nano Sweep/
avr-g++: error: missing device or architecture after '-mmcu='
Error: exit status 1
Compilation failed.

nkieffer@cmis-nkieffer ~/Arduino $ arduino-cli compile --fqbn arduino:avr:uno Sweep
Build options changed, rebuilding all
Alternatives for Servo.h: [[email protected]]
ResolveLibrary(Servo.h)
-> candidates: [[email protected]]
Sketch uses 2158 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 52 bytes (2%) of dynamic memory, leaving 1996 bytes for local variables. Maximum is 2048 bytes.

@tab4moji
Copy link

tab4moji commented Sep 3, 2018

for the new bootloader, the fqbn is "arduino:avr:nano:cpu=atmega328".
but I dont know the option for the old bootloader.

@nkieffer
Copy link
Author

nkieffer commented Sep 5, 2018

Using arduino:avr:nano:cpu=atmega328 as the fqbn worked for me.

@tab4moji
Copy link

tab4moji commented Sep 5, 2018

for the old bootloader, the fqbn is "arduino:avr:nano:cpu=atmega328pld".

@cmaglie
Copy link
Member

cmaglie commented Sep 10, 2018

Duplicate of #23

@cmaglie cmaglie marked this as a duplicate of #23 Sep 10, 2018
@cmaglie cmaglie closed this as completed Sep 10, 2018
@cmaglie cmaglie added this to the 0.2.1-alpha.preview milestone Sep 10, 2018
@MichalSkoula
Copy link

for the old bootloader, the fqbn is "arduino:avr:nano:cpu=atmega328pld".

you mean old, not pld :)

@scottchiefbaker
Copy link

I came to create a new issue about the Nano with the "old" bootloader and found it here. Thank you!

The correct FQBN is: arduino:avr:nano:cpu=atmega328old

@klao
Copy link

klao commented Feb 13, 2020

for the old bootloader, the fqbn is "arduino:avr:nano:cpu=atmega328pld".

In case someone finds this (like I did). It's a typo, the correct fqbn is arduino:avr:nano:cpu=atmega328old.

per1234 pushed a commit that referenced this issue Nov 16, 2020
per1234 added a commit that referenced this issue Aug 9, 2021
…e-schemas

Make library.properties email schema duplicate of the maintainer schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants