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. Ethernet Gateway on Arduino nano

Ethernet Gateway on Arduino nano

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 5 Posters 4.5k Views 4 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.
  • M Offline
    M Offline
    MrTomtom
    wrote on last edited by
    #1

    Hi

    i try to compile the ethernet gateway sketch for an adruino nano with a ENC28J60 module. I get the error:
    Sketch uses 33,370 bytes (108%) of program storage space. Maximum is 30,720 bytes.
    Global variables use 1,672 bytes (81%) of dynamic memory, leaving 376 bytes for local variables. Maximum is 2,048 bytes.
    ....
    Sketch too big

    I have comment out the lines as described in the begin of the sketch:

    //#include <DigitalIO.h>     // This include can be removed when using UIPEthernet module  
    // Use this if you have attached a Ethernet ENC28J60 shields  
    #include <UIPEthernet.h>  
    
    // Use this for WizNET W5100 module and Arduino Ethernet Shield 
    // #include <Ethernet.h>  
    

    and also comment out the DEBUG in the MyConfig.h file:

    // #define DEBUG
    

    I use the arduino 1.6.5 on Windows 7.

    Thanks for your support.

    Regards
    Thomas

    1 Reply Last reply
    0
    • M Offline
      M Offline
      meddie
      wrote on last edited by
      #2

      Hi,

      i am new to mysensors, and i have an another Problem, but i have an Arduino Nano and when i compile the Sketch it shows that this use 95%. So it dows work for me.
      I hope its usefull for you.
      Maybe you have some libriaries which will be comiled in to arduino. Try to load only MySensors libs in Arduino Programm.
      Greets Eddie

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        Yveaux
        Mod
        wrote on last edited by
        #3

        @MrTomtom said:

        ENC28J60

        Code footprint for ENC28J60 is significantly larger than for W5100.
        Any chance you can use a W5100 for the gateway?

        http://yveaux.blogspot.nl

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MrTomtom
          wrote on last edited by
          #4

          @meddie: did you use also an ENC28J60 for lan-connection? or an W5100?

          @Yveaux: yes, the chance is real. I can order a lan-shield with W5100. But i could not believer that it's not possible to compile the gateway with an ENC28J60... And the ENC28J60 looks nicer with the arduino, so i get a small package with lan-shield, arduino and rf-shield. :)

          Anyone had compile successfull the lan-gateway wtih ENC28J60?
          Greets
          Thomas

          1 Reply Last reply
          0
          • M Offline
            M Offline
            meddie
            wrote on last edited by
            #5

            Hi yes i have an enc and I can compile. 95% used.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MrTomtom
              wrote on last edited by
              #6

              Strange.... on which platform do you compile? Windows, Linux? and which version do you use of arduino ide?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                meddie
                wrote on last edited by
                #7

                Hi,
                on Windows 7 arduino IDE 1.6.6.
                I have to use win 7 because i use a Clone of arduino nano and this have a prolific 2303 Chip wich Has only drivers for win 7.

                1 Reply Last reply
                0
                • Y Offline
                  Y Offline
                  Yveaux
                  Mod
                  wrote on last edited by
                  #8

                  @MrTomtom @meddie Which MySensors library are you using?

                  http://yveaux.blogspot.nl

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    meddie
                    wrote on last edited by
                    #9

                    the newest 1.5.1

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      BSB
                      wrote on last edited by
                      #10

                      Remark out as many serial statements as you can.
                      With any luck you can scrape a few bytes back and it will compile and run.

                      Even if you have some form of debug define set for serial output the serial statements are still viable memory hogs.

                      1 Reply Last reply
                      0
                      • mfalkviddM Offline
                        mfalkviddM Offline
                        mfalkvidd
                        Mod
                        wrote on last edited by
                        #11

                        MySensors 1.6 (still in development) is quite a lot smaller than 1.5. You cound try it and see if it is enough.

                        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


                        18

                        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