Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Compilation Errors Rx v2.0 b011
#1

I have tried to update the Rx board but I keep getting the following errors which I don't understand.Can someone please explain?[/quote]


Arduino: 1.6.8 (Windows 8.1), Board: "Arduino Nano, ATmega328"

In file included from sketch\WeatherDuino_Pro2_RX_v2.0_b011.ino.cpp:1:0:

C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino: In function 'void SystemInit1()':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:100:38: error: invalid operands of types 'double' and 'int' to binary 'operator&'

#define lowByte(w) ((uint8_t) ((w) & 0xff))

^

C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:9:30: note: in expansion of macro 'lowByte'

ExternalEeprom_write(0x0B, lowByte(LATITUDE)); // EEPROM_LATITUDE_LSB

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:101:40: error: invalid operands of types 'double' and 'int' to binary 'operator>>'

#define highByte(w) ((uint8_t) ((w) >> 8))

^

C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:10:30: note: in expansion of macro 'highByte'

ExternalEeprom_write(0x0C, highByte(LATITUDE)); // EEPROM_LATITUDE_MSB

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:100:38: error: invalid operands of types 'double' and 'int' to binary 'operator&'

#define lowByte(w) ((uint8_t) ((w) & 0xff))

^

C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:11:30: note: in expansion of macro 'lowByte'

ExternalEeprom_write(0x0D, lowByte(LONGITUDE)); // EEPROM_LONGITUDE_LSB

^

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:101:40: error: invalid operands of types 'double' and 'int' to binary 'operator>>'

#define highByte(w) ((uint8_t) ((w) >> 8))

^

C:\WeatherDuino_Pro2_v2.0_20160321\WeatherDuino_Pro2\v2.0\software\RX software\WeatherDuino_Pro2_RX_v2.0_b011\Routines.ino:12:30: note: in expansion of macro 'highByte'

ExternalEeprom_write(0x0E, highByte(LONGITUDE)); // EEPROM_LONGITUDE_MSB

^

exit status 1
Error compiling for board Arduino Nano.
Reply
#2

There is a note that say :
Version: : 2.0 b011 (Requires Arduino IDE 1.7.7 or newer to compile)
Reply
#3

(08-04-2016, 13:22)laulau Wrote:  There is a note that say :
Version: : 2.0 b011 (Requires Arduino IDE 1.7.7 or newer to compile)

I have tried that-I have used both arduino.cc's IDE and the 1.7.8 from arduino .srl.
Reply
#4

Hi dishlikker,

Do you have removed the previously used LiquidCrystal-I2C library and installed the new one? I'm not sure, but it seems to be the problem.

From How to upgrade WeatherDuino Pro2 Software:
- v2.0 uses a new LiquidCrystal-I2C library. Backup your existing library and delete the folder. Don’t just override your existing library.
- Copy the new LiquidCrystal-I2C library from the libraries folder included in the software package, to your Arduino libraries folder.

Reply




Users browsing this thread: 1 Guest(s)