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. Troubleshooting
  3. unable to compile for ATmega168 16M 5v

unable to compile for ATmega168 16M 5v

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 3.7k Views 2 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.
  • P Offline
    P Offline
    pjeterinfo
    wrote on last edited by pjeterinfo
    #1

    Hi, I'm totaly new with Arduino/Mysensors. I bought a bunch of sensors and boards, the problem I have is to upload mysensors sketches to the Amega168 board, it will fail when compiling the sketch with the error below.
    I can succesfully upload blink for example. Can't this ATmega168 not be used for Mysensors?
    running IDE 1.6.3

    In file included from /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp:27:0:
    /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp: In member function 'void LowPowerClass::powerExtStandby(period_t, adc_t, bod_t, timer2_t)':
    /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp:823:18: error: 'SLEEP_MODE_EXT_STANDBY' was not declared in this scope
    lowPowerBodOn(SLEEP_MODE_EXT_STANDBY);

    After some troubleshooting I tried allso IDE1.0.6 which gives me a more clear error message:
    Binaire sketch-grootte: 15.754 bytes (van een 14.336-byte maximum?

    I tried another sketch(motion_sensor) which does fit on the ATmega168. Any ideas how to fit the DallasTemparatureSensor on the ATmega168?

    TotcheT 1 Reply Last reply
    0
    • P pjeterinfo

      Hi, I'm totaly new with Arduino/Mysensors. I bought a bunch of sensors and boards, the problem I have is to upload mysensors sketches to the Amega168 board, it will fail when compiling the sketch with the error below.
      I can succesfully upload blink for example. Can't this ATmega168 not be used for Mysensors?
      running IDE 1.6.3

      In file included from /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp:27:0:
      /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp: In member function 'void LowPowerClass::powerExtStandby(period_t, adc_t, bod_t, timer2_t)':
      /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp:823:18: error: 'SLEEP_MODE_EXT_STANDBY' was not declared in this scope
      lowPowerBodOn(SLEEP_MODE_EXT_STANDBY);

      After some troubleshooting I tried allso IDE1.0.6 which gives me a more clear error message:
      Binaire sketch-grootte: 15.754 bytes (van een 14.336-byte maximum?

      I tried another sketch(motion_sensor) which does fit on the ATmega168. Any ideas how to fit the DallasTemparatureSensor on the ATmega168?

      TotcheT Offline
      TotcheT Offline
      Totche
      wrote on last edited by
      #2

      @pjeterinfo Hello, maybe here [remove debug]](http://www.mysensors.org/build/debug)

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hugo1975
        wrote on last edited by
        #3

        Hi,

        I'm new and getting started with this amazing project.

        I'm having exactly the same problem as described by pjeterinfo trying to upload the relay code.

        LowPower.cpp:823: error: 'SLEEP_MODE_EXT_STANDBY' was not declared in this scope
        lowPowerBodOn(SLEEP_MODE_EXT_STANDBY);

        Can anybody help me out on this one? I've been debugging code but not finding out what's going wrong. Seen and done as suggested by Totche, still same problem.

        pjeterinfo did you sort it out? If so what did you do?

        Thank´s

        P 1 Reply Last reply
        0
        • D Offline
          D Offline
          Dirk_H
          Contest Winner
          wrote on last edited by
          #4

          @pjeterinfo said:

          After some troubleshooting I tried allso IDE1.0.6 which gives me a more clear error message:
          Binaire sketch-grootte: 15.754 bytes (van een 14.336-byte maximum?

          ATMega 168 is too small on memory as the error message clearly indicates. It has 16k Flash memory for program where some is needed for the bootloader which is round about 2k 16-2 = 14k. The sketch is 15.7k big which does obviously not fit into 14k. You need 32k ATMega like ATMEGA328p on Arudino nano/uno.

          There are some efforts of some people to strip down the libs to fit into smaller devices. However especially in the beginning I'd recommend to not spend this effort.

          1 Reply Last reply
          0
          • H hugo1975

            Hi,

            I'm new and getting started with this amazing project.

            I'm having exactly the same problem as described by pjeterinfo trying to upload the relay code.

            LowPower.cpp:823: error: 'SLEEP_MODE_EXT_STANDBY' was not declared in this scope
            lowPowerBodOn(SLEEP_MODE_EXT_STANDBY);

            Can anybody help me out on this one? I've been debugging code but not finding out what's going wrong. Seen and done as suggested by Totche, still same problem.

            pjeterinfo did you sort it out? If so what did you do?

            Thank´s

            P Offline
            P Offline
            pjeterinfo
            wrote on last edited by
            #5

            @hugo1975 I removed debug for the ATmega168 16M and use them for motion sensors, that will fit this board. Other sensors I run on the ATmega328p.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hugo1975
              wrote on last edited by
              #6

              Hi guys

              I've been banging on the wall for hours.

              Thank´s a lot, this is a major set back "for now" i'll order new arduino in a minute.

              All though something is concerning me. Compiling the RelayActuator or the RelayOutlet with out the FTDI connected the compiling message still appears, using Arduino 1.6.4, via Codebender it gives the lack of space or error compiling.

              Arduino 1.6.4 message
              "
              LowPower.cpp:823: error: 'SLEEP_MODE_EXT_STANDBY' was not declared in this scope
              lowPowerBodOn(SLEEP_MODE_EXT_STANDBY);
              "

              The motion sensor doesn't fit as well. I'm using http://www.mysensors.org/build/motion

              Thanks again

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              15

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              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