Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. Problem with compilling for board with ATmega128

Problem with compilling for board with ATmega128

Scheduled Pinned Locked Moved Hardware
1 Posts 1 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    ustredna
    wrote on last edited by
    #1

    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.
    
    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    19

    Online

    12.1k

    Users

    11.2k

    Topics

    113.4k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular