You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had te same problem. You have to modify board.txt file in your arduino-1.X.X.X/hardware/arduino/avr/ folder.
Just add following (make backup of board.txt):
##############################################################
# MEGA 2560 EDIT BE ME
mega2560.name= Arduino MEGA 2560
mega2560.vid.0=0x2341
mega2560.pid.0=0x0010
mega2560.vid.1=0x2341
mega2560.pid.1=0x0042
mega2560.vid.2=0x2A03
mega2560.pid.2=0x0010
mega2560.vid.3=0x2A03
mega2560.pid.3=0x0042
mega2560.vid.4=0x2341
mega2560.pid.4=0x0210
mega2560.vid.5=0x2341
mega2560.pid.5=0x0242
mega2560.upload.tool=avrdude
mega2560.upload.maximum_data_size=8192
mega2560.upload.protocol=wiring
mega2560.upload.maximum_size=253952
mega2560.upload.speed=115200
mega2560.bootloader.tool=avrdude
mega2560.bootloader.low_fuses=0xFF
mega2560.bootloader.unlock_bits=0x3F
mega2560.bootloader.lock_bits=0x0F
mega2560.bootloader.high_fuses=0xD8
mega2560.bootloader.extended_fuses=0xFD
mega2560.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex
mega2560.build.f_cpu=16000000L
mega2560.build.core=arduino
mega2560.build.variant=mega
# default board may be overridden by the cpu menu
mega2560.build.board=AVR_MEGA2560
mega2560.build.mcu=atmega2560
mega2560.build.board=AVR_MEGA2560
########### END EDIT BE ME
add to CMakeList.txt
set(${CMAKE_PROJECT_NAME}_BOARD mega2560)
Great Library...
Having some trouble getting it to work though.
Here is my
CMakeLists.txt
:I have a mega 2560 board, I am getting these errors when I have it plugged in and am running through CLion:
The text was updated successfully, but these errors were encountered: