Problem with compilling for board with ATmega128
-
Hi all, i have problem with compiling mysensors sketch with relay actuator for my Megaboard with ATmega128.
this is error log.
why?
please help...
I use MegaCore board package for my Mega128 board.i need add NRF24l01 to my actuator devices with mega128 MCU.
Peter
Arduino: 1.8.2 (Windows 10), Board: "ATmega128, Disabled, Disabled (default), 11.0592 MHz external" Build options changed, rebuilding all In file included from C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.h:27:0, from C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp:22, from C:\Users\peter\Documents\Arduino\libraries\MySensors/MySensors.h:65, from C:\Users\peter\Documents\Arduino\relay_with_button_mysensors\relay_with_button_mysensors.ino:43: c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\power.h: In function 'clock_div_t clock_prescale_get()': c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\power.h:1805:16: error: invalid conversion from 'int' to 'clock_div_t' [-fpermissive] return 1; ^ In file included from C:\Users\peter\Documents\Arduino\libraries\MySensors/MySensors.h:65:0, from C:\Users\peter\Documents\Arduino\relay_with_button_mysensors\relay_with_button_mysensors.ino:43: C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp: In function 'void hwPowerDown(period_t)': C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp:66:20: error: 'WDTCSR' was not declared in this scope uint8_t WDTsave = WDTCSR; ^ C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp:70:33: error: 'WDIE' was not declared in this scope WDTCSR |= (1 << WDCE) | (1 << WDIE); ^ C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp: In function 'uint16_t hwCPUFrequency()': C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp:226:2: error: 'TIFR1' was not declared in this scope TIFR1 = 0xFF; ^ C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp:231:20: error: 'WDTCSR' was not declared in this scope uint8_t WDTsave = WDTCSR; ^ C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp:234:18: error: 'WDIE' was not declared in this scope WDTCSR |= (1 << WDIE); ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Users\peter\AppData\Local\Arduino15\packages\MegaCore\hardware\avr\2.0.0\cores\MCUdude_corefiles/Arduino.h:28, from sketch\relay_with_button_mysensors.ino.cpp:1: C:\Users\peter\Documents\Arduino\libraries\MySensors/core/MyHwAVR.cpp:239:29: error: 'WDIF' was not declared in this scope while (bit_is_clear(WDTCSR,WDIF)) {}; ^ exit status 1 Error compiling for board ATmega128. This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.