CLionArduinoPlugin icon indicating copy to clipboard operation
CLionArduinoPlugin copied to clipboard

missing device or architecture after '-mmcu='

Open Nobreakfast opened this issue 5 years ago • 1 comments

Hi,

Thanks for the help!

I have issue when I create the arduino mega2560, it cannot build.

Here is my CMakeLists.txt cmake_minimum_required(VERSION 2.8.4) set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/ArduinoToolchain.cmake) set(CMAKE_CXX_STANDARD 17) set(PROJECT_NAME untitled) set(${PROJECT_NAME}_BOARD mega) set(ARDUINO_CPU atmega2560) project(${PROJECT_NAME}) set(${PROJECT_NAME}_HDRS User_Setup.h) set(${PROJECT_NAME}_SKETCH untitled.ino) link_directories(${CMAKE_CURRENT_SOURCE_DIR}/) set(${PROJECT_NAME}_PROGRAMMER avrispmkii) set(${PROJECT_NAME}_PORT /dev/ttyACM1) set(mega.upload.speed 9600) generate_arduino_firmware(${PROJECT_NAME})

and It displayed: -- Generating untitled -- Using /usr/bin/avr-objcopy for converting firmware image to hex -- Configuring done -- Generating done -- Build files have been written to: /home/allen/CLionProjects/untitled/cmake-build-debug Problems were encountered while collecting compiler information: avr-gcc: error: missing device or architecture after '-mmcu=' avr-g++: error: missing device or architecture after '-mmcu=' avr-g++: error: missing device or architecture after '-mmcu='

Thanks a lots!

Nobreakfast avatar Oct 27 '19 12:10 Nobreakfast

Same problem. Linux mint 18, Clion 2019.3.3

Orange-hanter avatar Feb 04 '20 09:02 Orange-hanter