Problems compiling latest version of Pro2 Plus Rx Software - Printable Version
+- WeatherDuino Forum (
https://www.meteocercal.info/forum)
+-- Forum: Weather Stations - WeatherDuino Pro2 Line (
https://www.meteocercal.info/forum/Forum-Weather-Stations-WeatherDuino-Pro2-Line)
+--- Forum: Software Questions (
https://www.meteocercal.info/forum/Forum-Software-Questions)
+--- Thread: Problems compiling latest version of Pro2 Plus Rx Software (
/Thread-Problems-compiling-latest-version-of-Pro2-Plus-Rx-Software)
Problems compiling latest version of Pro2 Plus Rx Software -
Zack_ster - 05-02-2019
Hi All,
I've just downloaded the latest version of the Pro2+ Rx software (P2AT2560_RX_v8.1_b002) and libraries, but i'm not able to compile it and get a few errors. The errors are below and I've attached the verbose output from the Arduino IDE during compilation. Has anyone else had these errors, or am I doing something simple wrong?
Thanks in advance for your help!
Zak
Code:
Arduino: 1.8.8 (Windows 10), Board: "Arduino Nano, ATmega328P"
WeatherDuino_P2AT2560_RX_v8.1_b002:428:14: error: 'Serial1' was not declared in this scope
ESP8266 wifi(Serial1);
^
Y:\Zak's Documents\Electronics\Arduino Projects\WeatherDuino\WeatherDuino_Pro2_PLUS\software\RX software\WeatherDuino_P2AT2560_RX_v8.1_b002\Routines.ino: In function 'void B_doubleclick()':
Routines:629:14: error: 'PORTH' was not declared in this scope
setPortLOW(PORTH, 6); //digitalWrite(TFT_BKL, LOW);
^
Y:\Zak's Documents\Electronics\Arduino Projects\WeatherDuino\WeatherDuino_Pro2_PLUS\software\RX software\WeatherDuino_P2AT2560_RX_v8.1_b002\WeatherDuino_P2AT2560_RX_v8.1_b002.ino:129:33: note: in definition of macro 'setPortLOW'
#define setPortLOW(port, pin) ((port) &= ~(1 << (pin)))
^
Y:\Zak's Documents\Electronics\Arduino Projects\WeatherDuino\WeatherDuino_Pro2_PLUS\software\RX software\WeatherDuino_P2AT2560_RX_v8.1_b002\VP.ino: In function 'void cmdDmpaft()':
VP:292:19: error: 'PORTG' was not declared in this scope
setPortHIGH(PORTG, 1); //digitalWrite(FLASH_CS, HIGH);
^
Y:\Zak's Documents\Electronics\Arduino Projects\WeatherDuino\WeatherDuino_Pro2_PLUS\software\RX software\WeatherDuino_P2AT2560_RX_v8.1_b002\WeatherDuino_P2AT2560_RX_v8.1_b002.ino:130:34: note: in definition of macro 'setPortHIGH'
#define setPortHIGH(port, pin) ((port) |= (1 << (pin)))
^
VP:306:14: error: 'PORTG' was not declared in this scope
setPortHIGH(PORTG, 1); //digitalWrite(FLASH_CS, HIGH);
^
Y:\Zak's Documents\Electronics\Arduino Projects\WeatherDuino\WeatherDuino_Pro2_PLUS\software\RX software\WeatherDuino_P2AT2560_RX_v8.1_b002\WeatherDuino_P2AT2560_RX_v8.1_b002.ino:130:34: note: in definition of macro 'setPortHIGH'
#define setPortHIGH(port, pin) ((port) |= (1 << (pin)))
^
exit status 1
'Serial1' was not declared in this scope
RE: Problems compiling latest version of Pro2 Plus Rx Software -
werk_ag - 05-02-2019
(05-02-2019, 10:56)Zack_ster Wrote: Code:
Arduino: 1.8.8 (Windows 10), Board: "Arduino Nano, ATmega328P"
Hello Zak,
I'm afraid you are trying to compile the code for the wrong board.
The Pro2+ software is for a Mega 2560.
RE: Problems compiling latest version of Pro2 Plus Rx Software -
Zack_ster - 05-02-2019
(05-02-2019, 13:58)Werk_AG Wrote: (05-02-2019, 10:56)Zack_ster Wrote: Zak
Code:
Arduino: 1.8.8 (Windows 10), Board: "Arduino Nano, ATmega328P"
Hello Zak,
I'm afraid you are trying to compile the code for the wrong board.
The Pro2+ software is for a Mega 2560.
Doh! - as Homer Simpson would say. Thank you!