Re: Need help with TNCPI96K and ARDOP


John G8BPQ
 

If the environment isn't defining PROJECT_ARDOP_Teensy, then you need to #define ARDOP in TeensyConfig.h, not in ARDOP_Teensy.ino.

73, John

On 04/07/2018 16:49, kc3ccd@... wrote:
I tried to compile. I saw TeensyWrapper.c has #define ARDOP.  TeensyConfig.h is looking for PROJECT_ARDOP_Teensy in order to define ARDOP (yup, it is defined twice, not sure why) so I added #define PROJECT_ARDOP_Teensy in ARDOP_Teensy file.  Now the errors are below. I also pushed the button and nothing happened. Troubleshooting that.

Arduino: 1.8.5 (Mac OS X), TD: 1.42, Board: "Teensy 3.6, Serial, 180 MHz, Faster, US English"
 
In file included from /Documents/Ham/Arduino/TeensyProjects/ARDOP_Teensy/ARDOP_Teensy.ino:61:0:
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/../../ARDOPC/ARDOPC.h:11:0: warning: "SendSize" redefined
 #define SendSize 1200  // 100 mS for now
 
 ^
In file included from /Documents/Ham/Arduino/TeensyProjects/ARDOP_Teensy/ARDOP_Teensy.ino:8:0:
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.h:47:0: note: this is the location of the previous definition
 #define SendSize DAC_SAMPLES_PER_BLOCK
 
 ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp: In function 'void CommonSetup()':
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:188:11: error: 'pttPin' was not declared in this scope
   pinMode(pttPin, OUTPUT);
 
           ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:192:11: error: 'LED1' was not declared in this scope
   pinMode(LED1, OUTPUT);
 
           ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:193:11: error: 'LED2' was not declared in this scope
   pinMode(LED2, OUTPUT);
 
           ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:194:11: error: 'LED3' was not declared in this scope
   pinMode(LED3, OUTPUT);
 
           ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp: In function 'void PlatformSleep()':
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:83:16: error: 'LED3' was not declared in this scope
 #define PKTLED LED3    // flash when packet received
 
                ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:330:14: note: in expansion of macro 'PKTLED'
       SetLED(PKTLED, 0);    // turn off packet rxed led
 
              ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp: In function 'BOOL KeyPTT(BOOL)':
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:711:22: error: 'pttPin' was not declared in this scope
     digitalWriteFast(pttPin, blnPTT);
 
                      ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp: In function 'void WriteDebugLog(int, const char*, ...)':
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:1334:10: warning: unused variable 'Mess' [-Wunused-variable]
     char Mess[256];
 
          ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:1336:6: warning: unused variable 'len' [-Wunused-variable]
  int len;
 
      ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp: In function 'void MONprintf(const char*, ...)':
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:1374:10: warning: unused variable 'Mess' [-Wunused-variable]
     char Mess[256];
 
          ^
/Documents/Ham/Arduino/TeensyProjects/libraries/TeensyConfig/TeensyCommon.cpp:1376:6: warning: unused variable 'len' [-Wunused-variable]
  int len;
 
      ^
Error compiling for board Teensy 3.6.
 
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 

Join RaspberryPi-4-HamRadio@groups.io to automatically receive all group messages.