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

Problems compiling latest version of Pro2 Plus Rx Software
#1

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


Attached Files
.txt P2AT2560_RX_v8.1_b002 Errors.txt Size: 146,76 KB  Downloads: 193
Reply
#2

(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.

Reply
#3
Smile 

(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!
Reply




Users browsing this thread: 1 Guest(s)