Arduino-cli: Can't compile for Nano

Created on 3 Sep 2018  路  7Comments  路  Source: arduino/arduino-cli

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.

Most helpful comment

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

you mean old, not pld :)

All 7 comments

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

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

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

Duplicate of #23

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

you mean old, not pld :)

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

scls19fr picture scls19fr  路  9Comments

ArminJo picture ArminJo  路  5Comments

manasIU picture manasIU  路  7Comments

TomasHubelbauer picture TomasHubelbauer  路  9Comments

Renaud11232 picture Renaud11232  路  8Comments