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

Problem verifying TX software
#1
Question 

I seem to have a lot of time on my hands at present (because of some little bug!) so I'm finally getting back to my WeatherDuino, but I'm having problems because I have a very bad memory!! Confused

TX board is V3.12

I updated my version on Arduino IDE to 1.8.12 and I downloaded and opened the WeatherDuino_Pro2_Universal_TX_V7.0_b002. When I try to do the verify, I get the following error message:
 
Code:
Arduino: 1.8.12 (Linux), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

/home/gord/Arduino/libraries/DHTxx/DHTxx.cpp:6:25: fatal error: util/atomic.h: No such file or directory
 #include <util/atomic.h>
                         ^
compilation terminated.
exit status 1
Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

So I created a directory in /home/gord/Arduino/libraries/DHTxx called util and copied the file called atomic.h to that new directory. Now when I do the verify I get the following error message:
Code:
Arduino: 1.8.12 (Linux), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/WeatherDuino_Pro2_Universal_TX_v7.0_b002.ino: In function 'void setup()':
WeatherDuino_Pro2_Universal_TX_v7.0_b002:302:3: error: 'DDRB' was not declared in this scope
   DDRB  = DDRB | B100000;        // pinMode(13, OUTPUT); - Led on Pin D13
   ^
WeatherDuino_Pro2_Universal_TX_v7.0_b002:303:14: error: 'PORTB' was not declared in this scope
   setPortLOW(PORTB, 5);          // digitalWrite(13, LOW);
              ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/WeatherDuino_Pro2_Universal_TX_v7.0_b002.ino:68:33: note: in definition of macro 'setPortLOW'
 #define setPortLOW(port, pin) ((port) &= ~(1 << (pin)))
                                 ^
WeatherDuino_Pro2_Universal_TX_v7.0_b002:304:3: error: 'DDRD' was not declared in this scope
   DDRD = DDRD | B100000;         // pinMode(FAN_PIN, OUTPUT); - Fan Pin D5
   ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/Process_IDx.ino: In function 'void send_SensorID0()':
Process_IDx:49:17: error: 'PORTD' was not declared in this scope
     setPortHIGH(PORTD, 5);           // digitalWrite(FAN_PIN, HIGH);  // Turn FAN power (Pin D5) ON

                 ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/WeatherDuino_Pro2_Universal_TX_v7.0_b002.ino:67:34: note: in definition of macro 'setPortHIGH'
 #define setPortHIGH(port, pin) ((port) |= (1 << (pin)))
                                  ^
Process_IDx:54:16: error: 'PORTD' was not declared in this scope
     setPortLOW(PORTD, 5);            // digitalWrite(FAN_PIN, LOW);  // Turn FAN power (Pin D5) OFF

                ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/WeatherDuino_Pro2_Universal_TX_v7.0_b002.ino:68:33: note: in definition of macro 'setPortLOW'
 #define setPortLOW(port, pin) ((port) &= ~(1 << (pin)))
                                 ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/Process_IDx.ino: In function 'double get_WindVane()':
Process_IDx:144:17: error: 'PORTD' was not declared in this scope
     setPortHIGH(PORTD, VANEPOWER_PIN);    // digitalWrite(VANEPOWER_PIN, HIGH); - Vane power Pin D4

                 ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/WeatherDuino_Pro2_Universal_TX_v7.0_b002.ino:67:34: note: in definition of macro 'setPortHIGH'
 #define setPortHIGH(port, pin) ((port) |= (1 << (pin)))
                                  ^
WeatherDuino_Pro2_Universal_TX_v7.0_b002:77:22: error: 'A3' was not declared in this scope
 #define VANE_PIN     A3
                      ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/Process_IDx.ino:146:16: note: in expansion of macro 'VANE_PIN'
     analogRead(VANE_PIN);                // Do 1 reading to stabilize ADC

                ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/Process_IDx.ino: In function 'void send_SensorID5()':
WeatherDuino_Pro2_Universal_TX_v7.0_b002:76:22: error: 'A2' was not declared in this scope
 #define BATVOLT_PIN  A2
                      ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/Process_IDx.ino:339:16: note: in expansion of macro 'BATVOLT_PIN'
     analogRead(BATVOLT_PIN);

                ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/Routines.ino: In function 'void sendData(int, long int, long int, long int, long int)':
Routines:144:15: error: 'PORTD' was not declared in this scope
   setPortHIGH(PORTD, 7);                                // digitalWrite(TX_PTT_PIN, HIGH); - Turn on power to TX module. Pin D7

               ^
/home/gord/Arduino/WeatherDuino_Pro2_Compact v3/software/TX software/WeatherDuino_Pro2_Universal_TX_v7.0_b002/WeatherDuino_Pro2_Universal_TX_v7.0_b002.ino:67:34: note: in definition of macro 'setPortHIGH'
 #define setPortHIGH(port, pin) ((port) |= (1 << (pin)))
                                  ^
exit status 1
'DDRB' was not declared in this scope


I know I must be doing something wrong but I can't see what.
Any help appreciated,
Gord
Reply
#2

Think you selected the wrong board - WeMos instead of Nano.
Regards,
engolling
Reply
#3

(24-03-2020, 23:08)WetCoast Wrote:  Any help appreciated,
Gord

Hi Gord,

As Engolling said, on boards select Arduino Nano, and on Processor select ATmega 328P (old bootloader)
Rgs
Reply
#4

You are absolutely correct, if I change the board to "Android Nano" it works perfectly!!

I must try to remember:
Android Nano for the TX board
Code:
LOLIN(WEMOS) D1 R2 & mini for the RX board

Thanks very much,
Gord
 
Reply




Users browsing this thread: 1 Guest(s)