steve3d / arduino-vscode

Arduino IDE support for VSCode
23 stars 7 forks source link

avr-g++: error: missing device or architecture after '-mmcu=' #11

Closed khgm closed 7 years ago

khgm commented 7 years ago

Hi, arduino-avr-mega.txt

i got that message when i try to compile with fqbn ardunio:avr:mega parameter. I spent several hours to debug where can be the problem without success. Attached the detailed output and parameters.

Thanks for the advice/idea where to dig deeper Gabor

steve3d commented 7 years ago

first, please make sure that you are using arduino ide 1.8+ then you will need to find the missing parameter from Arduino IDE by enabling the verbose output.

steve3d commented 7 years ago

and I think for your board, the correct fqbn should be set as arduino:avr:mega:cpu=atmega2560

khgm commented 7 years ago

that fqbn worked, thanks