I can't download mysensors sketch with a raspberry pi3



  • Hi,
    I juste bought a rp3, and i wanted to try to install arduino IDE on it. When that was done, i had to fight against the beast to add the mysensors library (arduino 2:1.0.5+dfsg2-4-1).
    It's unusual for my, because ther is no library manager with that arduino ide version.
    Any way, i tryed next to dowload a sketch (working fine with windows), and i had a lot of strange message like that:

    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:321:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/drivers/RF24/RF24.cpp: In function ‘void RF24_csn(bool)’:
    /home/pi/sketchbook/libraries/MySensors/drivers/RF24/RF24.cpp:46:38: error: ‘hwDigitalWrite’ was not declared in this scope
      hwDigitalWrite(MY_RF24_CS_PIN, level);
                                          ^
    /home/pi/sketchbook/libraries/MySensors/drivers/RF24/RF24.cpp: In function ‘void RF24_ce(bool)’:
    /home/pi/sketchbook/libraries/MySensors/drivers/RF24/RF24.cpp:51:38: error: ‘hwDigitalWrite’ was not declared in this scope
      hwDigitalWrite(MY_RF24_CE_PIN, level);
                                          ^
    /home/pi/sketchbook/libraries/MySensors/drivers/RF24/RF24.cpp: In function ‘bool RF24_initialize()’:
    /home/pi/sketchbook/libraries/MySensors/drivers/RF24/RF24.cpp:459:34: error: ‘hwPinMode’ was not declared in this scope
      hwPinMode(MY_RF24_CE_PIN, OUTPUT);
                                      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:371:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void stInitTransition()’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:94:45: error: ‘hwReadConfigBlock’ was not declared in this scope
                        sizeof(transportConfig_t));
                                                 ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void stInitUpdate()’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:124:45: error: expected ‘)’ before ‘PRIu8’
        TRANSPORT_DEBUG(PSTR("TSM:INIT:STATID=%" PRIu8 "\n"),(uint8_t)MY_NODE_ID);
                                                 ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:124:4: note: in expansion of macro ‘TRANSPORT_DEBUG’
        TRANSPORT_DEBUG(PSTR("TSM:INIT:STATID=%" PRIu8 "\n"),(uint8_t)MY_NODE_ID);
        ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:371:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:128:61: error: ‘hwWriteConfig’ was not declared in this scope
        hwWriteConfig(EEPROM_NODE_ID_ADDRESS, (uint8_t)MY_NODE_ID);
                                                                 ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void stIDTransition()’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:209:40: error: ‘hwMillis’ was not declared in this scope
       _transportToken = (uint8_t)(hwMillis() & 0xFF);
                                            ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void stUplinkUpdate()’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:261:43: error: ‘hwMillis’ was not declared in this scope
       _transportSM.lastUplinkCheck = hwMillis();
                                               ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:265:44: error: expected ‘)’ before ‘PRIu8’
        TRANSPORT_DEBUG(PSTR("TSM:UPL:DGWC,O=%" PRIu8 ",N=%" PRIu8 "\n"), _transportConfig.distanceGW,
                                                ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:265:4: note: in expansion of macro ‘TRANSPORT_DEBUG’
        TRANSPORT_DEBUG(PSTR("TSM:UPL:DGWC,O=%" PRIu8 ",N=%" PRIu8 "\n"), _transportConfig.distanceGW,
        ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void stReadyTransition()’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:292:40: error: expected ‘)’ before ‘PRIu8’
      TRANSPORT_DEBUG(PSTR("TSM:READY:ID=%" PRIu8 ",PAR=%" PRIu8 ",DIS=%" PRIu8 "\n"),
                                            ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:292:2: note: in expansion of macro ‘TRANSPORT_DEBUG’
      TRANSPORT_DEBUG(PSTR("TSM:READY:ID=%" PRIu8 ",PAR=%" PRIu8 ",DIS=%" PRIu8 "\n"),
      ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void stFailureTransition()’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:342:40: error: expected ‘)’ before ‘PRIu8’
      TRANSPORT_DEBUG(PSTR("TSM:FAIL:CNT=%" PRIu8 "\n"),_transportSM.failureCounter);
                                            ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:342:2: note: in expansion of macro ‘TRANSPORT_DEBUG’
      TRANSPORT_DEBUG(PSTR("TSM:FAIL:CNT=%" PRIu8 "\n"),_transportSM.failureCounter);
      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:371:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void transportSwitchSM(transportState_t&)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:373:37: error: ‘hwMillis’ was not declared in this scope
      _transportSM.stateEnter = hwMillis(); // save time
                                         ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘uint32_t transportTimeInState()’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:378:18: error: ‘hwMillis’ was not declared in this scope
      return hwMillis() - _transportSM.stateEnter;
                      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘bool transportWaitUntilReady(uint32_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:449:38: error: expected ‘)’ before ‘PRIu32’
      TRANSPORT_DEBUG(PSTR("TSF:WUR:MS=%" PRIu32 "\n"), waitingMS); // timeout
                                          ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:449:2: note: in expansion of macro ‘TRANSPORT_DEBUG’
      TRANSPORT_DEBUG(PSTR("TSF:WUR:MS=%" PRIu32 "\n"), waitingMS); // timeout
      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:371:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:450:30: error: ‘hwMillis’ was not declared in this scope
      uint32_t enterMS = hwMillis();
                                  ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘bool transportCheckUplink(bool)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:472:26: error: ‘hwMillis’ was not declared in this scope
      if (!force && (hwMillis() - _transportSM.lastUplinkCheck) < MY_TRANSPORT_CHKUPL_INTERVAL_MS) {
                              ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:481:43: error: ‘hwMillis’ was not declared in this scope
       _transportSM.lastUplinkCheck = hwMillis();
                                               ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:485:44: error: expected ‘)’ before ‘PRIu8’
        TRANSPORT_DEBUG(PSTR("TSF:CKU:DGWC,O=%" PRIu8 ",N=%" PRIu8 "\n"), _transportConfig.distanceGW,
                                                ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:485:4: note: in expansion of macro ‘TRANSPORT_DEBUG’
        TRANSPORT_DEBUG(PSTR("TSF:CKU:DGWC,O=%" PRIu8 ",N=%" PRIu8 "\n"), _transportConfig.distanceGW,
        ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:371:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘bool transportAssignNodeID(uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:503:50: error: ‘hwWriteConfig’ was not declared in this scope
       hwWriteConfig(EEPROM_NODE_ID_ADDRESS, newNodeId);
                                                      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:504:42: error: expected ‘)’ before ‘PRIu8’
       TRANSPORT_DEBUG(PSTR("TSF:SID:OK,ID=%" PRIu8 "\n"),newNodeId); // Node ID assigned
                                              ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:504:3: note: in expansion of macro ‘TRANSPORT_DEBUG’
       TRANSPORT_DEBUG(PSTR("TSF:SID:OK,ID=%" PRIu8 "\n"),newNodeId); // Node ID assigned
       ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:507:45: error: expected ‘)’ before ‘PRIu8’
       TRANSPORT_DEBUG(PSTR("!TSF:SID:FAIL,ID=%" PRIu8 "\n"),newNodeId); // ID is invalid, cannot assign ID
                                                 ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:507:3: note: in expansion of macro ‘TRANSPORT_DEBUG’
       TRANSPORT_DEBUG(PSTR("!TSF:SID:FAIL,ID=%" PRIu8 "\n"),newNodeId); // ID is invalid, cannot assign ID
       ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:371:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘bool transportWait(uint32_t, uint8_t, uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:596:36: error: ‘hwMillis’ was not declared in this scope
      const uint32_t enterMS = hwMillis();
                                        ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘uint8_t transportPingNode(uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:612:44: error: expected ‘)’ before ‘PRIu8’
       TRANSPORT_DEBUG(PSTR("TSF:PNG:SEND,TO=%" PRIu8 "\n"), targetId);
                                                ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:612:3: note: in expansion of macro ‘TRANSPORT_DEBUG’
       TRANSPORT_DEBUG(PSTR("TSF:PNG:SEND,TO=%" PRIu8 "\n"), targetId);
       ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void transportProcessMessage()’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:660:40: error: expected ‘)’ before ‘PRIu8’
      TRANSPORT_DEBUG(PSTR("TSF:MSG:READ,%" PRIu8 "-%" PRIu8 "-%" PRIu8 ",s=%" PRIu8 ",c=%" PRIu8 ",t=%"
                                            ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:660:2: note: in expansion of macro ‘TRANSPORT_DEBUG’
      TRANSPORT_DEBUG(PSTR("TSF:MSG:READ,%" PRIu8 "-%" PRIu8 "-%" PRIu8 ",s=%" PRIu8 ",c=%" PRIu8 ",t=%"
      ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:669:41: error: expected ‘)’ before ‘PRIu8’
       TRANSPORT_DEBUG(PSTR("!TSF:MSG:LEN,%" PRIu8 "!=%" PRIu8 "\n"), payloadLength,
                                             ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:669:3: note: in expansion of macro ‘TRANSPORT_DEBUG’
       TRANSPORT_DEBUG(PSTR("!TSF:MSG:LEN,%" PRIu8 "!=%" PRIu8 "\n"), payloadLength,
       ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:677:42: error: expected ‘)’ before ‘PRIu8’
       TRANSPORT_DEBUG(PSTR("!TSF:MSG:PVER,%" PRIu8 "!=%" PRIu8 "\n"), mGetVersion(_msg),
                                              ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:677:3: note: in expansion of macro ‘TRANSPORT_DEBUG’
       TRANSPORT_DEBUG(PSTR("!TSF:MSG:PVER,%" PRIu8 "!=%" PRIu8 "\n"), mGetVersion(_msg),
       ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:762:53: error: expected ‘)’ before ‘PRIu8’
             TRANSPORT_DEBUG(PSTR("TSF:MSG:FPAR OK,ID=%" PRIu8 ",D=%" PRIu8 "\n"), _transportConfig.parentNodeId,
                                                         ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:762:9: note: in expansion of macro ‘TRANSPORT_DEBUG’
             TRANSPORT_DEBUG(PSTR("TSF:MSG:FPAR OK,ID=%" PRIu8 ",D=%" PRIu8 "\n"), _transportConfig.parentNodeId,
             ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:775:49: error: expected ‘)’ before ‘PRIu8’
          TRANSPORT_DEBUG(PSTR("TSF:MSG:PINGED,ID=%" PRIu8 ",HP=%" PRIu8 "\n"), sender,
                                                     ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:775:6: note: in expansion of macro ‘TRANSPORT_DEBUG’
          TRANSPORT_DEBUG(PSTR("TSF:MSG:PINGED,ID=%" PRIu8 ",HP=%" PRIu8 "\n"), sender,
          ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:789:53: error: expected ‘)’ before ‘PRIu8’
           TRANSPORT_DEBUG(PSTR("TSF:MSG:PONG RECV,HP=%" PRIu8 "\n"),
                                                         ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:789:7: note: in expansion of macro ‘TRANSPORT_DEBUG’
           TRANSPORT_DEBUG(PSTR("TSF:MSG:PONG RECV,HP=%" PRIu8 "\n"),
           ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:371:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:881:21: error: ‘hwMillis’ was not declared in this scope
          delay(hwMillis() & 0x3ff);
                         ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘bool transportSendWrite(uint8_t, MyMessage&)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:1001:42: error: expected ‘)’ before ‘PRIu8’
      TRANSPORT_DEBUG(PSTR("%sTSF:MSG:SEND,%" PRIu8 "-%" PRIu8 "-%" PRIu8 "-%" PRIu8 ",s=%" PRIu8 ",c=%"
                                              ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:1001:2: note: in expansion of macro ‘TRANSPORT_DEBUG’
      TRANSPORT_DEBUG(PSTR("%sTSF:MSG:SEND,%" PRIu8 "-%" PRIu8 "-%" PRIu8 "-%" PRIu8 ",s=%" PRIu8 ",c=%"
      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:371:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘void transportSetRoute(uint8_t, uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:1065:51: error: ‘hwWriteConfig’ was not declared in this scope
      hwWriteConfig(EEPROM_ROUTES_ADDRESS + node, route);
                                                       ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘uint8_t transportGetRoute(uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:1075:52: error: ‘hwReadConfig’ was not declared in this scope
      result = hwReadConfig(EEPROM_ROUTES_ADDRESS + node);
                                                        ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp: In function ‘int16_t transportSignalReport(char)’:
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:1174:39: error: expected ‘)’ before ‘PRIu8’
      TRANSPORT_DEBUG(PSTR("TSF:SIR:CMD=%" PRIu8 ",VAL=%" PRIu16 "\n"), reportCommand, result);
                                           ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MyTransport.cpp:1174:2: note: in expansion of macro ‘TRANSPORT_DEBUG’
      TRANSPORT_DEBUG(PSTR("TSF:SIR:CMD=%" PRIu8 ",VAL=%" PRIu16 "\n"), reportCommand, result);
      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:395:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySplashScreen.cpp: In function ‘void displaySplashScreen()’:
    /home/pi/sketchbook/libraries/MySensors/core/MySplashScreen.cpp:47:4: error: ‘MY_SERIALDEVICE’ was not declared in this scope
        MY_SERIALDEVICE.print(display);
        ^
    /home/pi/sketchbook/libraries/MySensors/core/MySplashScreen.cpp:50:2: error: ‘MY_SERIALDEVICE’ was not declared in this scope
      MY_SERIALDEVICE.println(F(MYSENSORS_LIBRARY_VERSION "\n"));
      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:396:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp: In function ‘void _begin()’:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:92:18: error: ‘hwWatchdogReset’ was not declared in this scope
      hwWatchdogReset();
                      ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:98:35: error: ‘hwInit’ was not declared in this scope
      const bool hwInitResult = hwInit();
                                       ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:107:7: error: in argument to unary !
      if (!hwInitResult) {
           ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:131:46: error: ‘hwReadConfigBlock’ was not declared in this scope
                        sizeof(controllerConfig_t));
                                                  ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:140:64: error: ‘hwWriteConfig’ was not declared in this scope
      hwWriteConfig(EEPROM_PARENT_NODE_ID_ADDRESS, MY_PARENT_NODE_ID);
                                                                    ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:171:42: error: expected ‘)’ before ‘PRIu8’
      CORE_DEBUG(PSTR("MCO:BGN:INIT OK,TSP=%" PRIu8 "\n"), isTransportReady());
                                              ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:171:2: note: in expansion of macro ‘CORE_DEBUG’
      CORE_DEBUG(PSTR("MCO:BGN:INIT OK,TSP=%" PRIu8 "\n"), isTransportReady());
      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:396:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp: In function ‘bool _processInternalMessages()’:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:403:13: error: ‘hwReboot’ was not declared in this scope
        hwReboot();
                 ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:409:41: error: expected ‘)’ before ‘PRIu8’
        CORE_DEBUG(PSTR("MCO:PIM:NODE REG=%" PRIu8 "\n"), _coreConfig.nodeRegistered); // node registration
                                             ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:409:4: note: in expansion of macro ‘CORE_DEBUG’
        CORE_DEBUG(PSTR("MCO:PIM:NODE REG=%" PRIu8 "\n"), _coreConfig.nodeRegistered); // node registration
        ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:396:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:416:49: error: ‘hwWriteConfigBlock’ was not declared in this scope
                           sizeof(controllerConfig_t));
                                                     ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp: In function ‘void saveState(uint8_t, uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:499:54: error: ‘hwWriteConfig’ was not declared in this scope
      hwWriteConfig(EEPROM_LOCAL_CONFIG_ADDRESS+pos, value);
                                                          ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp: In function ‘uint8_t loadState(uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:503:53: error: ‘hwReadConfig’ was not declared in this scope
      return hwReadConfig(EEPROM_LOCAL_CONFIG_ADDRESS+pos);
                                                         ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp: In function ‘void wait(uint32_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:509:39: error: ‘hwMillis’ was not declared in this scope
      const uint32_t enteringMS = hwMillis();
                                           ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp: In function ‘bool wait(uint32_t, uint8_t, uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:517:39: error: ‘hwMillis’ was not declared in this scope
      const uint32_t enteringMS = hwMillis();
                                           ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp: In function ‘void doYield()’:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:530:18: error: ‘hwWatchdogReset’ was not declared in this scope
      hwWatchdogReset();
                      ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:532:8: error: ‘yield’ was not declared in this scope
      yield();
            ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp: In function ‘int8_t _sleep(uint32_t, bool, uint8_t, uint8_t, uint8_t, uint8_t)’:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:542:33: error: expected ‘)’ before ‘PRIu32’
      CORE_DEBUG(PSTR("MCO:SLP:MS=%" PRIu32 ",SMS=%" PRIu8 ",I1=%" PRIu8 ",M1=%" PRIu8 ",I2=%" PRIu8
                                     ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:542:2: note: in expansion of macro ‘CORE_DEBUG’
      CORE_DEBUG(PSTR("MCO:SLP:MS=%" PRIu32 ",SMS=%" PRIu8 ",I1=%" PRIu8 ",M1=%" PRIu8 ",I2=%" PRIu8
      ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:396:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:562:42: error: ‘hwMillis’ was not declared in this scope
       const uint32_t sleepEnterMS = hwMillis();
                                              ^
    In file included from /home/pi/sketchbook/libraries/MySensors/MySensors.h:49:0,
                     from BUREAU_PARENTS.ino:68:
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:572:35: error: expected ‘)’ before ‘PRIu32’
        CORE_DEBUG(PSTR("MCO:SLP:MS=%" PRIu32 "\n"), sleepingTimeMS);
                                       ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:572:4: note: in expansion of macro ‘CORE_DEBUG’
        CORE_DEBUG(PSTR("MCO:SLP:MS=%" PRIu32 "\n"), sleepingTimeMS);
        ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:633:34: error: expected ‘)’ before ‘PRIi8’
      CORE_DEBUG(PSTR("MCO:SLP:WUP=%" PRIi8 "\n"), result); // sleep wake-up
                                      ^
    /home/pi/sketchbook/libraries/MySensors/MyConfig.h:1815:43: note: in definition of macro ‘DEBUG_OUTPUT’
     #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
                                               ^
    /home/pi/sketchbook/libraries/MySensors/core/MySensorsCore.cpp:633:2: note: in expansion of macro ‘CORE_DEBUG’
      CORE_DEBUG(PSTR("MCO:SLP:WUP=%" PRIi8 "\n"), result); // sleep wake-up
      ^
    
    

    i realy don't undersand so if some one had a solution ..... thanks



  • I havent' seen but some one had the same probleme on the forum, and found the solution:
    [link text]
    https://forum.mysensors.org/topic/6096/problem-with-mysensor-library-on-arduino-ide-running-on-raspi/8

    now i can download my sketch with the raspberry pi and i'm very hapy!


Log in to reply
 

Suggested Topics

  • 4
  • 2
  • 2
  • 8
  • 17
  • 9

54
Online

11.4k
Users

11.1k
Topics

112.7k
Posts