can´t upload my sketches anymore!!!



  • aftrer a while I tried to set up some nodes but I have problems to upload code to a new node which I already used in the past successfully. Right now I am using the latest arduino IDE 1.6.7. Here is my code:

    // Simple binary switch example 
    // Connect button or door/window reed switch between 
    // digitial I/O pin 3 (BUTTON_PIN below) and GND.
    
    #include <MySensor.h>
    #include <SPI.h>
    #include <Bounce2.h>
    
    #define CHILD_ID 1
    #define BUTTON_PIN  8  // Arduino Digital I/O pin for button/reed switch
    
    MySensor gw;
    Bounce debouncer = Bounce(); 
    int oldValue=-1;
    
    // Change to V_LIGHT if you use S_LIGHT in presentation below
    MyMessage msg(CHILD_ID,V_TRIPPED);
    
    void setup()  
    {  
      gw.begin();
    
     // Setup the button
      pinMode(BUTTON_PIN,INPUT);
      // Activate internal pull-up
      digitalWrite(BUTTON_PIN,HIGH);
      
      // After setting up the button, setup debouncer
      debouncer.attach(BUTTON_PIN);
      debouncer.interval(5);
      
      // Register binary input sensor to gw (they will be created as child devices)
      // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. 
      // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
      gw.present(CHILD_ID, S_DOOR);  
    }
    
    
    //  Check if digital input has changed and send in new value
    void loop() 
    {
      debouncer.update();
      // Get the update value
      int value = debouncer.read();
     
      if (value != oldValue) {
         // Send in the new value
         gw.send(msg.set(value==HIGH ? 1 : 0));
         oldValue = value;
      }
    } 
    
    

    and here the errors I get:

    
    
    
    
    
    
    
    
    
    
    WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:144:9: error: prototype for 'uint8_t SPIFlash::readByte(uint32_t)' does not match any in class 'SPIFlash'
    
     uint8_t SPIFlash::readByte(uint32_t addr) {
    
             ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:79:11: error: candidate is: uint8_t SPIFlash::readByte(long int)
    
       uint8_t readByte(long addr);
    
               ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:155:6: error: prototype for 'void SPIFlash::readBytes(uint32_t, void*, uint16_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::readBytes(uint32_t addr, void* buf, uint16_t len) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:80:8: error: candidate is: void SPIFlash::readBytes(long int, void*, word)
    
       void readBytes(long addr, void* buf, word len);
    
            ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:214:6: error: prototype for 'void SPIFlash::writeByte(uint32_t, uint8_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::writeByte(uint32_t addr, uint8_t byt) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:81:8: error: candidate is: void SPIFlash::writeByte(long int, uint8_t)
    
       void writeByte(long addr, uint8_t byt);
    
            ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:228:6: error: prototype for 'void SPIFlash::writeBytes(uint32_t, const void*, uint16_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::writeBytes(uint32_t addr, const void* buf, uint16_t len) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:82:8: error: candidate is: void SPIFlash::writeBytes(long int, const void*, uint16_t)
    
       void writeBytes(long addr, const void* buf, uint16_t len);
    
            ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:263:6: error: prototype for 'void SPIFlash::blockErase4K(uint32_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::blockErase4K(uint32_t addr) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:85:8: error: candidate is: void SPIFlash::blockErase4K(long int)
    
       void blockErase4K(long address);
    
            ^
    
    T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:272:6: error: prototype for 'void SPIFlash::blockErase32K(uint32_t)' does not match any in class 'SPIFlash'
    
     void SPIFlash::blockErase32K(uint32_t addr) {
    
          ^
    
    In file included from T:\Programme\Arduino\libraries\MySensors\utility\SPIFlash.cpp:35:0:
    
    T:\Programme\Arduino\libraries\SPIFlash/SPIFlash.h:86:8: error: candidate is: void SPIFlash::blockErase32K(long int)
    
       void blockErase32K(long address);
    
            ^
    
    exit status 1
    Error compiling.
    Invalid library found in T:\Programme\Arduino\libraries\WIZ_Ethernet_Library: T:\Programme\Arduino\libraries\WIZ_Ethernet_Library
    

    can you help?? Thank you guys!!



  • solved, pls close


  • Hardware Contributor

    Perhaps you could also add a short description how you solved it before this gets closed. Might safe someone the time later on.



  • I had to re-download and reinstall the complete 1.5 library what solved the issue. Don´t know what happened but that helped! Just the quick and dirty way...


Log in to reply
 

Suggested Topics

47
Online

11.4k
Users

11.1k
Topics

112.6k
Posts