Skip to content

Cannot upload on Arduino MEGA2560 R3 #929

Closed
@Hexer10

Description

@Hexer10

Bug Report

Current behavior

This command: arduino-cli upload arduino_.ino --port COM6 --fqbn "arduino:avr:mega:cpu=atmega2560"
fails with the given error:

Error during Upload: incorrect FQBN: platform arduino:avr is not installed

Expected behavior

Upload the code to Arduno MEGA2560

Environment

  • CLI version: 0.12.1 Commit: 48383da
  • OS and platform: Windows 10

Additional context

The FQBN should be right since the Arduino IDE uses that during the build (see -fqbn=arduino:avr:mega:cpu=atmega2560):

D:\Tools (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\Tools (x86)\Arduino\hardware -hardware C:\Users\Mattia\AppData\Local\Arduino15\packages -tools D:\Tools (x86)\Arduino\tools-builder -tools D:\Tools (x86)\Arduino\hardware\tools\avr -tools C:\Users\Mattia\AppData\Local\Arduino15\packages -built-in-libraries D:\Tools (x86)\Arduino\libraries -libraries D:\Users\Mattia\Documents\Arduino\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -vid-pid=2341_0042 -ide-version=10813 -build-path C:\Users\Mattia\AppData\Local\Temp\arduino_build_70659 -warnings=none -build-cache C:\Users\Mattia\AppData\Local\Temp\arduino_cache_188058 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=D:\Tools (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=D:\Tools (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Tools (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=D:\Tools (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=D:\Tools (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=D:\Tools (x86)\Arduino\hardware\tools\avr -verbose D:\Users\Mattia\Documents\ClionProjects\arduino_\arduino_.ino

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions