This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pro2 PLUS] 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 File(s)
.txt   P2AT2560_RX_v8.1_b002 Errors.txt (Size: 146,76 KB / Downloads: 7)
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.
MeteoCercal - Air Quality Data
Click here to watch at my ThingSpeak channel



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)