Compiling Problems
-
I am also having a very similar problem trying to compile the code or the serial gateway onto a nano. I am running Arduino IDE 1.6.6.on Ubuntu 15.04. Error log as follows:
Arduino: 1.6.6 (Linux), Board: "Arduino Nano, ATmega328"
Warning: platform.txt from core 'MySensors AVR based boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
/home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:150: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 /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
/home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:79:11: error: candidate is: uint8_t SPIFlash::readByte(long int)
uint8_t readByte(long addr);
^
/home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:161: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 /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
/home/glenn/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);
^
/home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:220: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 /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
/home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:81:8: error: candidate is: void SPIFlash::writeByte(long int, uint8_t)
void writeByte(long addr, uint8_t byt);
^
/home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:234: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 /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
/home/glenn/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);
^
/home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:269: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 /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
/home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:85:8: error: candidate is: void SPIFlash::blockErase4K(long int)
void blockErase4K(long address);
^
/home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:278: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 /home/glenn/Arduino/libraries/MySensors/utility/SPIFlash.cpp:35:0:
/home/glenn/Arduino/libraries/SPIFlash/SPIFlash.h:86:8: error: candidate is: void SPIFlash::blockErase32K(long int)
void blockErase32K(long address);
^
exit status 1
Error compiling.This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences. -
Update: I should have mentioned in previous post that I have also attempted to remove and reinstall recipes. Also removed and reinstalled the arduino IDE. I also install IDE 1.0.6 which does result in different errors:
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Linux), Board: "Arduino Nano w/ ATmega328"
In file included from SerialGateway.ino:53:
GatewayUtil.h:40: error: ‘MyParserSerial’ does not name a type
GatewayUtil.h:44: error: ‘MAX_PAYLOAD’ was not declared in this scope
GatewayUtil.h:67: error: expected ‘,’ or ‘...’ before ‘&’ token
GatewayUtil.h:67: error: ISO C++ forbids declaration of ‘MyMessage’ with no type
GatewayUtil.h: In function ‘void incomingMessage(int)’:
GatewayUtil.h:74: error: ‘message’ was not declared in this scope
GatewayUtil.h:74: error: ‘mGetCommand’ was not declared in this scope
GatewayUtil.h:74: error: ‘mGetAck’ was not declared in this scope
GatewayUtil.h:74: error: ‘convBuf’ was not declared in this scope
GatewayUtil.h: At global scope:
GatewayUtil.h:98: error: variable or field ‘parseAndSend’ declared void
GatewayUtil.h:98: error: ‘MySensor’ was not declared in this scope
GatewayUtil.h:98: error: ‘gw’ was not declared in this scope
GatewayUtil.h:98: error: expected primary-expression before ‘char’ -
I can confirm that. Just removed 1.6.6 and revert to 1.6.5 and now it is working instantly.
Thank you for the hint.Maybe it's an option to edit the esp8266_gateway page and remove the + from Arduino 1.6.5+ and add a remark that it's not (yet) working on 1.6.6
-
Thanks!! That solved it!!
-
The "Download Libraries" button on this page -> http://www.mysensors.org/about/arduino will give you the 1.5.1 version.
-
This thread helped me as well when I installed Arduino IDE 1.6.7. I still had an old version of the MySensors library kicking around in my Sketch Book (if it isn't broke, don't fix it). I just want to keep this thread alive for awhile. :)
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