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. pb compilation MEGA2560 + sketch W5100

pb compilation MEGA2560 + sketch W5100

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 3.5k 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.
  • B Offline
    B Offline
    brakc
    wrote on last edited by
    #1

    Hello,

    I'm Mysensors user newbie ;-) and I want create Ethernet Gateway

    I use:

    • Arduino 1.6.4 on Yosemit
      --> IDE in System/Applications
      --> library are in /Volumes/Data/Documents/Arduino/Arduino-master (or Arduino-development)
    • MEGA2560
    • Ethernet Shield W5100 (like this : https://www.arduino.cc/en/Guide/ArduinoEthernetShield)
    • NRF24L01+ (1436AH)
    • MySensors Arduino Library v1.5

    Pin configuration:
    CE : 10
    CSN : 11
    MISO : 50
    MOSI : 51
    SCK : 52

    I uncommented #define SOFTSPI in MyConfig.h

    But compilation doesn't work. Can you help me please?

    EthernetGateway.ino:59:90: fatal error: DigitalIO.h: No such file or directory
    compilation terminated.

    For information:

    • I tryed master and development branch and it's the same
    • I tryed without Ethernet Shield W5100, same again

    Thank you for your help,

    Fabrice.

    ;-)

    mntlvrM 1 Reply Last reply
    0
    • B brakc

      Hello,

      I'm Mysensors user newbie ;-) and I want create Ethernet Gateway

      I use:

      • Arduino 1.6.4 on Yosemit
        --> IDE in System/Applications
        --> library are in /Volumes/Data/Documents/Arduino/Arduino-master (or Arduino-development)
      • MEGA2560
      • Ethernet Shield W5100 (like this : https://www.arduino.cc/en/Guide/ArduinoEthernetShield)
      • NRF24L01+ (1436AH)
      • MySensors Arduino Library v1.5

      Pin configuration:
      CE : 10
      CSN : 11
      MISO : 50
      MOSI : 51
      SCK : 52

      I uncommented #define SOFTSPI in MyConfig.h

      But compilation doesn't work. Can you help me please?

      EthernetGateway.ino:59:90: fatal error: DigitalIO.h: No such file or directory
      compilation terminated.

      For information:

      • I tryed master and development branch and it's the same
      • I tryed without Ethernet Shield W5100, same again

      Thank you for your help,

      Fabrice.

      mntlvrM Offline
      mntlvrM Offline
      mntlvr
      wrote on last edited by
      #2

      @brakc said:

      Hello,

      I'm Mysensors user newbie ;-) and I want create Ethernet Gateway

      I use:

      • Arduino 1.6.4 on Yosemit
        --> IDE in System/Applications
        --> library are in /Volumes/Data/Documents/Arduino/Arduino-master (or Arduino-development)
      • MEGA2560
      • Ethernet Shield W5100 (like this : https://www.arduino.cc/en/Guide/ArduinoEthernetShield)
      • NRF24L01+ (1436AH)
      • MySensors Arduino Library v1.5

      Pin configuration:
      CE : 10
      CSN : 11
      MISO : 50
      MOSI : 51
      SCK : 52

      I uncommented #define SOFTSPI in MyConfig.h

      But compilation doesn't work. Can you help me please?

      EthernetGateway.ino:59:90: fatal error: DigitalIO.h: No such file or directory
      compilation terminated.

      For information:

      • I tryed master and development branch and it's the same
      • I tryed without Ethernet Shield W5100, same again

      Thank you for your help,

      Fabrice.

      Where is your "mysensor" library?
      Digital.io is in the utilities directory of "mysensors".

      1 Reply Last reply
      0
      • B Offline
        B Offline
        brakc
        wrote on last edited by
        #3

        Hello,

        DigitalIO
        /Volumes/Data/Documents/Arduino/libraries/Arduino-master/DigitalIO

        MySensors
        /Volumes/Data/Documents/Arduino/libraries/Arduino-master/MySensors

        I don't have utilities directory in MySensors

        For information, if I use EthernetGatway exemple in mysensor site : http://www.mysensors.org/build/ethernet_gateway

        If I comment "#include <DigitalIO.h>" I have a same problem with other include : MySigningNone.h, MyTransportRFM69.h ...

        Only SPI.h is OK

        Thanks for your help

        ;-)

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          Development branch should be working for you.

          B 1 Reply Last reply
          0
          • hekH hek

            Development branch should be working for you.

            B Offline
            B Offline
            brakc
            wrote on last edited by brakc
            #5

            @hek said:

            Development branch should be working for you.

            Branch development is same :disappointed:

            MyConfig.h

            // Enable SOFTSPI for NRF24L01 when using the W5100 Ethernet module
            #define SOFTSPI
            #ifdef SOFTSPI
            	// Define the soft SPI pins used for NRF radio
            	const uint8_t SOFT_SPI_MISO_PIN = 50;
                const uint8_t SOFT_SPI_MOSI_PIN = 51;
                const uint8_t SOFT_SPI_SCK_PIN = 52;
            #endif
            

            And I use default example EthernetGateway.ino

            Other suggestion please?

            ;-)

            1 Reply Last reply
            0
            • B Offline
              B Offline
              brakc
              wrote on last edited by
              #6

              compilation OK !!!

              In fact I move in directory /Volumes/Data/Documents/Arduino

              • DigitalIO
              • list itemMySensors (branch development)
              • list itemPinChangeInt

              ping OK

              but I have fail msg in serial : 0;0;3;0;9;radio init fail

              One suggestion please?

              ;-)

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


              22

              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