Skip to content

Cannot compile for Mega 2560 R3 #38

Closed
@NormanDunbar

Description

@NormanDunbar

Linux 64bit.
Linux Mint 18.3.
Dell Vostro 1720.

Of my three boards, only the Mega is recognised:

$ arduino-cli board list
FQBN            	Port        	ID       	Board Name                       
arduino:avr:mega	/dev/ttyACM0	2341:0042	Arduino/Genuino Mega or Mega 2560

I have the avr core installed:

$ arduino-cli core list
ID         	Installed	Latest	Name              
arduino:avr	1.6.21   	1.6.21	Arduino AVR Boards

However, compilations fail:

$ arduino-cli compile  --fqbn arduino:avr:mega Arduino/MyFisrtSketch -v

Using board 'mega' from platform in folder: /home/norman/.arduino15/packages/arduino/hardware/avr/1.6.21
Using core 'arduino' from platform in folder: /home/norman/.arduino15/packages/arduino/hardware/avr/1.6.21
Detecting libraries used...
/home/norman/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu= -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/norman/.arduino15/packages/arduino/hardware/avr/1.6.21/cores/arduino -I/home/norman/.arduino15/packages/arduino/hardware/avr/1.6.21/variants/mega /tmp/arduino-sketch-EA97366D8DD5BAD4DFBCF42C5DC29A82/sketch/MyFisrtSketch.ino.cpp -o /dev/null
avr-g++: error: missing device or architecture after '-mmcu='
Error: exit status 1
Compilation failed.

Cheers,
Norm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions