pb compilation MEGA2560 + sketch W5100



  • 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.



  • @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".



  • 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


  • Admin

    Development branch should be working for you.



  • @hek said:

    Development branch should be working for you.

    Branch development is same 😞

    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?



  • 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?


Log in to reply
 

Suggested Topics

  • 3
  • 24
  • 15
  • 2
  • 3
  • 2

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts