¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: V12 compiling error

 

Jack
Odd part it complied all the way thru on once, did not change anything and after that I started to get error?


Re: V12 compiling error

 

Unless you have some reason for using John's code (I know he's got some interesting stuff going on), I would suggest you try Oliver's code. ()

If you need some C programming help, take a look at Beginning C for Arduino (Amazon, 1484209419). Read some of the reviews and see if it might work for you.

Jack, W8TEE


On Sunday, February 9, 2025 at 11:43:12 PM EST, Tim via groups.io <w4yn@...> wrote:


makes sense Jack. not much of a programmer here.
I am using John's 50.2 sketch off gethub /



maybe that is wrong version I should be using ?
?

--
Jack, W8TEE


Re: V12 compiling error

 

makes sense Jack. not much of a programmer here.
I am using John's 50.2 sketch off gethub /
maybe that is wrong version I should be using ?
?


Re: V12 compiling error

 

I think this is what you're looking for:


Jack, W8TEE




On Sunday, February 9, 2025 at 05:09:02 PM EST, Tim via groups.io <w4yn@...> wrote:


V12 boards using Ai6YM kit.
50.2 build.
I am trying to reload IDE to see if I can prevent program hangs. Will only run a short time before it stops running.
I have all the libraries loaded and get to end of compile and get this message.
Has me confused:
?
?
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\JSON.cpp:2:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\JSON.h:5:10: fatal error: ArduinoJson.h: No such file or directory
? ? 5 | #include <ArduinoJson.h>
? ? ? | ? ? ? ? ?^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: ArduinoJson.h: No such file or directory
?
I don't see that file on git hub.
Any thoughts?
Tim?

--
Jack, W8TEE


Re: V12 compiling error

 

Some versions of the code do use Serial and Serial1. If you are working with CAT control, Serial1 needs to be defined somewhere.

Jack, W8TEE

On Sunday, February 9, 2025 at 11:07:27 PM EST, Tim via groups.io <w4yn@...> wrote:


I fixed the Adafruit issue (I think) first compile went OK? then on up load and additional complies I get this:
?
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino: In function 'void BIT_display()':
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino:2697:7: warning: unused variable 'centerCall' [-Wunused-variable]
?2697 | ? int centerCall;
? ? ? | ? ? ? ^~~~~~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino: In function 'void setup()':
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino:2823:3: error: 'SerialUSB1' was not declared in this scope; did you mean 'SerialUSB'?
?2823 | ? SerialUSB1.begin(9600);
? ? ? | ? ^~~~~~~~~~
? ? ? | ? SerialUSB
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\G0ORX_CAT.cpp: In function 'void CATSerialEvent()':
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\G0ORX_CAT.cpp:434:12: error: 'SerialUSB1' was not declared in this scope; did you mean 'SerialUSB'?
? 434 | ? while((i=SerialUSB1.available())>0) {
? ? ? | ? ? ? ? ? ?^~~~~~~~~~
? ? ? | ? ? ? ? ? ?SerialUSB
Multiple libraries were found for "SD.h"
? Used: C:\Users\Admin\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SD
? Not used: C:\Users\Admin\AppData\Local\Arduino15\libraries\SD
exit status 1
Compilation error: 'SerialUSB1' was not declared in this scope; did you mean 'SerialUSB'?

--
Jack, W8TEE


Re: V12 compiling error

 

A variable with an extern declaration makes no sense with a static definition. The keyword extern is used as a decaration for a variable so the compiler has an attribute list of the properties of a variable (e.g., name, type, etc). So, if I define a variable in the INO file (i.e., a definition allocates storage for the variable--it has a known lvalue), but want to use it in a different CPP file, the compiler needs that attribute list so it knows how to generate the correct code. When the compiler is processing the CCP file, it doesn't know the memory address of that variable, so think of it as writing ???? for the memory address. It's the linker's job to get that memory address from the INO file and copy it to the ???? space in the CCP code.

The static keyword, when used outside of a function, creates a variable with global scope, but only for the file in which it is defined. In other words, the scope of a static defined outside of a function is limited to the one file in which it is defined. So, to have a static defined in the INO file, but use the extern keyword in a different CPP file makes no sense and is a semantic error.

Jack, W8TEE

On Sunday, February 9, 2025 at 05:44:42 PM EST, Tim via groups.io <w4yn@...> wrote:


Found a couple of versions think I finally got correct library version 7.3
Now I get this message:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.cpp:9:26: warning: 'mcpBPF' was declared 'extern' and later 'static' [-fpermissive]
? ? 9 | static Adafruit_MCP23X17 mcpBPF; // connected to Wire2
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ?^~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:37,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.h:7:26: note: previous declaration of 'mcpBPF'
? ? 7 | extern Adafruit_MCP23X17 mcpBPF; // connected to Wire2
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ?^~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.cpp:10:17: warning: 'BPF_GPAB_state' was declared 'extern' and later 'static' [-fpermissive]
? ?10 | static uint16_t BPF_GPAB_state;
? ? ? | ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:37,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.h:8:17: note: previous declaration of 'BPF_GPAB_state'
? ? 8 | extern uint16_t BPF_GPAB_state;
? ? ? | ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:9:26: warning: 'mcpLPF' was declared 'extern' and later 'static' [-fpermissive]
? ? 9 | static Adafruit_MCP23X17 mcpLPF; // connected to Wire2
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ?^~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:33,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.h:7:26: note: previous declaration of 'mcpLPF'
? ? 7 | extern Adafruit_MCP23X17 mcpLPF; // connected to Wire2
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ?^~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:10:15: warning: 'swrADC' was declared 'extern' and later 'static' [-fpermissive]
? ?10 | static AD7991 swrADC; // on K9HZ LPF board
? ? ? | ? ? ? ? ? ? ? ^~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:33,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.h:8:15: note: previous declaration of 'swrADC'
? ? 8 | extern AD7991 swrADC; // on K9HZ LPF board
? ? ? | ? ? ? ? ? ? ? ^~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:11:16: warning: 'LPF_GPB_state' was declared 'extern' and later 'static' [-fpermissive]
? ?11 | static uint8_t LPF_GPB_state;
? ? ? | ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:33,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.h:9:16: note: previous declaration of 'LPF_GPB_state'
? ? 9 | extern uint8_t LPF_GPB_state;
? ? ? | ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:12:16: warning: 'LPF_GPA_state' was declared 'extern' and later 'static' [-fpermissive]
? ?12 | static uint8_t LPF_GPA_state;
? ? ? | ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:33,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.h:10:16: note: previous declaration of 'LPF_GPA_state'
? ?10 | extern uint8_t LPF_GPA_state;
? ? ? | ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino: In function 'void BIT_display()':
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino:2697:7: warning: unused variable 'centerCall' [-Wunused-variable]
?2697 | ? int centerCall;
? ? ? | ? ? ? ^~~~~~~~~~
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X08.cpp.o (symbol from plugin): in function `Adafruit_MCP23X08::Adafruit_MCP23X08()':
(.text+0x0): multiple definition of `Adafruit_MCP23X08::Adafruit_MCP23X08()'; Adafruit_MCP23X08.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X08.cpp.o (symbol from plugin): in function `Adafruit_MCP23X08::Adafruit_MCP23X08()':
(.text+0x0): multiple definition of `Adafruit_MCP23X08::Adafruit_MCP23X08()'; Adafruit_MCP23X08.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X08.cpp.o (symbol from plugin): in function `Adafruit_MCP23X08::Adafruit_MCP23X08()':
(.text+0x0): multiple definition of `Adafruit_MCP23X08::enableAddrPins()'; Adafruit_MCP23X08.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::Adafruit_MCP23X17()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::Adafruit_MCP23X17()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::readGPIOA()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::writeGPIOA(unsigned char)'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::readGPIOB()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::writeGPIOB(unsigned char)'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::readGPIOAB()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::writeGPIOAB(unsigned short)'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::enableAddrPins()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::begin_SPI(unsigned char, SPIClass*, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::begin_SPI(signed char, signed char, signed char, signed char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::pinMode(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::digitalRead(unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::digitalWrite(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::readGPIO(unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::writeGPIO(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::setupInterrupts(bool, bool, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::setupInterruptPin(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::disableInterruptPin(unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::getLastInterruptPin()'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::getCapturedInterrupt()'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::clearInterrupts()'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::getRegister(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
? Used: C:\Users\Admin\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SD
? Not used: C:\Users\Admin\AppData\Local\Arduino15\libraries\SD
exit status 1
Compilation error: exit status 1

--
Jack, W8TEE


Re: V12 compiling error

 

I fixed the Adafruit issue (I think) first compile went OK? then on up load and additional complies I get this:
?
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino: In function 'void BIT_display()':
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino:2697:7: warning: unused variable 'centerCall' [-Wunused-variable]
?2697 | ? int centerCall;
? ? ? | ? ? ? ^~~~~~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino: In function 'void setup()':
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino:2823:3: error: 'SerialUSB1' was not declared in this scope; did you mean 'SerialUSB'?
?2823 | ? SerialUSB1.begin(9600);
? ? ? | ? ^~~~~~~~~~
? ? ? | ? SerialUSB
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\G0ORX_CAT.cpp: In function 'void CATSerialEvent()':
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\G0ORX_CAT.cpp:434:12: error: 'SerialUSB1' was not declared in this scope; did you mean 'SerialUSB'?
? 434 | ? while((i=SerialUSB1.available())>0) {
? ? ? | ? ? ? ? ? ?^~~~~~~~~~
? ? ? | ? ? ? ? ? ?SerialUSB
Multiple libraries were found for "SD.h"
? Used: C:\Users\Admin\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SD
? Not used: C:\Users\Admin\AppData\Local\Arduino15\libraries\SD
exit status 1
Compilation error: 'SerialUSB1' was not declared in this scope; did you mean 'SerialUSB'?


Re: V12 compiling error

 

Found a couple of versions think I finally got correct library version 7.3
Now I get this message:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.cpp:9:26: warning: 'mcpBPF' was declared 'extern' and later 'static' [-fpermissive]
? ? 9 | static Adafruit_MCP23X17 mcpBPF; // connected to Wire2
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ?^~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:37,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.h:7:26: note: previous declaration of 'mcpBPF'
? ? 7 | extern Adafruit_MCP23X17 mcpBPF; // connected to Wire2
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ?^~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.cpp:10:17: warning: 'BPF_GPAB_state' was declared 'extern' and later 'static' [-fpermissive]
? ?10 | static uint16_t BPF_GPAB_state;
? ? ? | ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:37,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\BPF_Control.h:8:17: note: previous declaration of 'BPF_GPAB_state'
? ? 8 | extern uint16_t BPF_GPAB_state;
? ? ? | ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:9:26: warning: 'mcpLPF' was declared 'extern' and later 'static' [-fpermissive]
? ? 9 | static Adafruit_MCP23X17 mcpLPF; // connected to Wire2
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ?^~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:33,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.h:7:26: note: previous declaration of 'mcpLPF'
? ? 7 | extern Adafruit_MCP23X17 mcpLPF; // connected to Wire2
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ?^~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:10:15: warning: 'swrADC' was declared 'extern' and later 'static' [-fpermissive]
? ?10 | static AD7991 swrADC; // on K9HZ LPF board
? ? ? | ? ? ? ? ? ? ? ^~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:33,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.h:8:15: note: previous declaration of 'swrADC'
? ? 8 | extern AD7991 swrADC; // on K9HZ LPF board
? ? ? | ? ? ? ? ? ? ? ^~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:11:16: warning: 'LPF_GPB_state' was declared 'extern' and later 'static' [-fpermissive]
? ?11 | static uint8_t LPF_GPB_state;
? ? ? | ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:33,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.h:9:16: note: previous declaration of 'LPF_GPB_state'
? ? 9 | extern uint8_t LPF_GPB_state;
? ? ? | ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:12:16: warning: 'LPF_GPA_state' was declared 'extern' and later 'static' [-fpermissive]
? ?12 | static uint8_t LPF_GPA_state;
? ? ? | ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT.h:33,
? ? ? ? ? ? ? ? ?from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.cpp:4:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\K9HZ_LPF_Control.h:10:16: note: previous declaration of 'LPF_GPA_state'
? ?10 | extern uint8_t LPF_GPA_state;
? ? ? | ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino: In function 'void BIT_display()':
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\SDT_Main.ino:2697:7: warning: unused variable 'centerCall' [-Wunused-variable]
?2697 | ? int centerCall;
? ? ? | ? ? ? ^~~~~~~~~~
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X08.cpp.o (symbol from plugin): in function `Adafruit_MCP23X08::Adafruit_MCP23X08()':
(.text+0x0): multiple definition of `Adafruit_MCP23X08::Adafruit_MCP23X08()'; Adafruit_MCP23X08.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X08.cpp.o (symbol from plugin): in function `Adafruit_MCP23X08::Adafruit_MCP23X08()':
(.text+0x0): multiple definition of `Adafruit_MCP23X08::Adafruit_MCP23X08()'; Adafruit_MCP23X08.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X08.cpp.o (symbol from plugin): in function `Adafruit_MCP23X08::Adafruit_MCP23X08()':
(.text+0x0): multiple definition of `Adafruit_MCP23X08::enableAddrPins()'; Adafruit_MCP23X08.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::Adafruit_MCP23X17()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::Adafruit_MCP23X17()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::readGPIOA()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::writeGPIOA(unsigned char)'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::readGPIOB()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::writeGPIOB(unsigned char)'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::readGPIOAB()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::writeGPIOAB(unsigned short)'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23X17.cpp.o (symbol from plugin): in function `Adafruit_MCP23X17::Adafruit_MCP23X17()':
(.text+0x0): multiple definition of `Adafruit_MCP23X17::enableAddrPins()'; Adafruit_MCP23X17.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::begin_SPI(unsigned char, SPIClass*, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::begin_SPI(signed char, signed char, signed char, signed char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::pinMode(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::digitalRead(unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::digitalWrite(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::readGPIO(unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::writeGPIO(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::setupInterrupts(bool, bool, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::setupInterruptPin(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::disableInterruptPin(unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::getLastInterruptPin()'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::getCapturedInterrupt()'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::clearInterrupts()'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
c:/users/admin/appdata/local/arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld.exe: Adafruit_MCP23XXX.cpp.o (symbol from plugin): in function `Adafruit_MCP23XXX::begin_I2C(unsigned char, TwoWire*)':
(.text+0x0): multiple definition of `Adafruit_MCP23XXX::getRegister(unsigned char, unsigned char)'; Adafruit_MCP23XXX.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
? Used: C:\Users\Admin\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SD
? Not used: C:\Users\Admin\AppData\Local\Arduino15\libraries\SD
exit status 1
Compilation error: exit status 1


Re: V12 compiling error

 

I think you can install the ArduinoJSON library with the Arduino IDE library
manager.

- Jerry, KF6VB

On 2025-02-09 14:08, Tim via groups.io wrote:
V12 boards using Ai6YM kit.
50.2 build.
I am trying to reload IDE to see if I can prevent program hangs. Will
only run a short time before it stops running.
I have all the libraries loaded and get to end of compile and get this
message.
Has me confused:
In file included from
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\JSON.cpp:2:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\JSON.h:5:10:
fatal error: ArduinoJson.h: No such file or directory
5 | #include <ArduinoJson.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: ArduinoJson.h: No such file or directory
I don't see that file on git hub.
Any thoughts?
Tim
Links:
------
[1] /g/SoftwareControlledHamRadio/message/32655
[2] /mt/111092895/243852
[3] /g/SoftwareControlledHamRadio/post
[4] /g/SoftwareControlledHamRadio/editsub/243852
[5]
/g/SoftwareControlledHamRadio/leave/10484476/243852/1943518115/xyzzy


Re: Murata switchers on main board #power #t41

 

On 2025-02-09 13:27, K5ESS via groups.io wrote:
Has anyone that's used these seen any noise problems? The data sheet
states the switching freq. as 500kHz.
*** I'm using three of them. Two on the main board, one on the RF board.. I think.
Haven't heard any noise. If there is noise from those regulators, it's drowned out
by the noise from the video panel.

- Jerry, KF6VB


CAT Control

 

Hi All,

Playing with CAT control of my T41 today. Clearly, nobody's messed with this for a while.

To get it sort of working, I had to move the invocation of CATSerialEvent() to a place in the loop where it actually gets called during receive - not just during transmit. Also had
to resolve a few compile issues, nothing too scary. And of course, I had to choose the "dual USB Serial Port" option in the Arduino IDE.

So now flrig is controlling the T41.. Somewhat. It shows the current frequency. Sometimes. I can set the frequency with flrig. Sometimes. I can also set the operating mode. And the volume. When it works. The volume works more reliably than the frequency.

HOWEVER, if I change modes, sometimes the audio will go away. Dead silent. Only way to
get it back is by resetting the T41. In this "no audio" mode, the main loop is still executing; the spectrum and waterfall are active.

When I say "init" from the flrig configuration menu, it turns on "spectral" noise reduction at the radio.

I'm interested in CAT monitoring - not necessarily control - so I can have the frequency & mode magically go into a logging program - so I don't have to type it.

Clearly this feature has a way to go. But I'm heartened that it works at all. It's a start.

- Jerry, KF6VB


V12 compiling error

 

V12 boards using Ai6YM kit.
50.2 build.
I am trying to reload IDE to see if I can prevent program hangs. Will only run a short time before it stops running.
I have all the libraries loaded and get to end of compile and get this message.
Has me confused:
?
?
In file included from C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\JSON.cpp:2:
C:\Users\Admin\Documents\ai6ym\t41-main\software\SDT_Main\JSON.h:5:10: fatal error: ArduinoJson.h: No such file or directory
? ? 5 | #include <ArduinoJson.h>
? ? ? | ? ? ? ? ?^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: ArduinoJson.h: No such file or directory
?
I don't see that file on git hub.
Any thoughts?
Tim?


Murata switchers on main board #power #t41

 

Has anyone that's used these seen any noise problems?? The data sheet states the switching freq. as 500kHz.
Mike
K5ESS


Re: Calibrate S meter?

 

On 2025-02-09 10:32, jjpurdum via groups.io wrote:
BTW, when doing something "sensitive" like this, if your computer is
close by, turn it off. Eary in the T41 development, I was really
disappointed in the noise it was picking up. Then in a "duh" moment I
remembered the old Target game I used to play on my SOL-20/Z80
machine.
*** I remember my old TRS-80 model 1 - I once tried to use it with ham radio,
NO WAY! It made so much RF hash that it would get into the TV set at the other
end of the house. I think that was a few years before computer gadgets had to
"pass FCC".

- Jerry, KF6VB


Re: Calibrate S meter?

 

Didn't know that...thanks to both!

Jack, W8TEE

On Sunday, February 9, 2025 at 01:49:30 PM EST, Greg KF5N via groups.io <greg.electricity@...> wrote:


Hi Jack-
?
Joerg, DB2OO contributed code to T41EEE which allows calibration of the S meter.
Here is a description:

dBm Signal Level Calibration

A new calibration menu option called "dBm Level Cal" allows adjustment of the dBm level indicator. The indicator is calibrated by the input of a known signal level into the antenna connector. Then choose "dBm Level Cal" from the Calibration menu. Adjust the encoder until the dBm level shown in the upper right area of the display matches the known signal level.

--
73 Greg KF5N

--
Jack, W8TEE


Re: Calibrate S meter?

 

I'm building a new LPF board. I've wound all 33 toroids and have no feeling in my finder tips! (The wire (#20) doesn't lend itself to the Crochet Hook Method with the small cores.) Now I'm tweaking them with an LC meter. Most are very close to the desired value and none (thus far) has needed a turn add/subtracted. I've pinched/fanned a few of them, but most are close enough. I redid Justin's winding table to include estimated wire lengths for each core. If you wind the cores reasonably tight, you'll probably have 2" left over. I still had a lot of wire left over. The real estate on the board is tight and soldering the toroids and relays in place is tedious work, but I'm about halfway through. I don't think I'll finish before the game starts.

Jack, W8TEE

On Sunday, February 9, 2025 at 01:56:53 PM EST, jerry-KF6VB <jerry@...> wrote:


Hmm - at 14.2 MHz with the gen set to -72dBm ( as low as it'll go
without
an external attenuator ), I'm seeing just a hair under S9.? Not bad!

7.2Mhz - just a hair under S8.? Well, on that band the BPF is not well
tuned.
I need to get back to that.? It's also down on transmit power, but since
I
use it with my homebrew linear, I still get 800W out, which is IMHO
plenty.

3.9Mhz - S7.5

10.1 MHz - S8.5

18.1MHz - S8.5

21.1MHz - S8.5

24.9MHz? ? - S7.5

28.35MHz? - S9

? ? ? ? ? ? ? ? ? ? ? - Jerry, KF6VB








--
Jack, W8TEE


Re: Calibrate S meter?

 

Hmm - at 14.2 MHz with the gen set to -72dBm ( as low as it'll go without
an external attenuator ), I'm seeing just a hair under S9. Not bad!

7.2Mhz - just a hair under S8. Well, on that band the BPF is not well tuned.
I need to get back to that. It's also down on transmit power, but since I
use it with my homebrew linear, I still get 800W out, which is IMHO plenty.

3.9Mhz - S7.5

10.1 MHz - S8.5

18.1MHz - S8.5

21.1MHz - S8.5

24.9MHz - S7.5

28.35MHz - S9

- Jerry, KF6VB


Re: Calibrate S meter?

 

Hi Jack-
?
Joerg, DB2OO contributed code to T41EEE which allows calibration of the S meter.
Here is a description:

dBm Signal Level Calibration

A new calibration menu option called "dBm Level Cal" allows adjustment of the dBm level indicator. The indicator is calibrated by the input of a known signal level into the antenna connector. Then choose "dBm Level Cal" from the Calibration menu. Adjust the encoder until the dBm level shown in the upper right area of the display matches the known signal level.

--
73 Greg KF5N


Re: Calibrate S meter?

 

I didn't say that right. The calibration of the s-meter sets the ZERO point
(well... -73 db point) on the meter. That is the intercept of the equation
for "S" units. You also have to calibrate (eg determine) the SLOPE of the
curve using the attenuator (because we know the attenuator is correct).

S-units (an any input) = S-meter calibration point at fake -73 db +
"Detected signal strength in S units above zero"

So above S=0,

"Where Detected signal strength in S units above s=0" = gain(S=full scale
- S=0) * received signal strength in fake dbs.

You need to set the attenuator at two different points to resolve the slope.

This is very crude so don't kill me... just fix it...


Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ
VP2EHZ

Owner - Operator
Big Signal Ranch ¨C K9ZC
Staunton, Illinois

Owner ¨C Operator
Villa Grand Piton ¨C J68HZ
Soufriere, St. Lucia W.I.
Rent it: www.VillaGrandPiton.com

Moderator: North American QRO Group at Groups.IO.
Moderator: Amateur Radio Builders Group at Groups.IO.

email:? bill@...

-----Original Message-----
From: [email protected]
<[email protected]> On Behalf Of K9HZ
Sent: Sunday, February 9, 2025 12:25 PM
To: [email protected]; [email protected]
Subject: Re: [SoftwareControlledHamRadio] Calibrate S meter?

Yeah and make sure you do it with the attenuator at ZERO! THEN go ahead
and calibrate the RX attenuation control.


Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ
VP2EHZ

Owner - Operator
Big Signal Ranch ¨C K9ZC
Staunton, Illinois

Owner ¨C Operator
Villa Grand Piton ¨C J68HZ
Soufriere, St. Lucia W.I.
Rent it: www.VillaGrandPiton.com

Moderator: North American QRO Group at Groups.IO.
Moderator: Amateur Radio Builders Group at Groups.IO.

email:? bill@...


-----Original Message-----
From: [email protected]
<[email protected]> On Behalf Of jerry-KF6VB
Sent: Sunday, February 9, 2025 12:23 PM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] Calibrate S meter?

On 2025-02-09 10:11, jjpurdum via groups.io wrote:
No. It is an approximation based on comparing S signals on commercial
rigs with the T41 reading. At the time the S-meter was coded, its
accuracy was pretty far down the list of things to do,

*** Makes sense. That's actually what I figured :). I think such
calibration would need to be per-band.

- Jerry, KF6VB


Re: Calibrate S meter?

 

BTW, when doing something "sensitive" like this, if your computer is close by, turn it off. Eary in the T41 development, I was really disappointed in the noise it was picking up. Then in a "duh" moment I remembered the old Target game I used to play on my SOL-20/Z80 machine. You could put a broadcast radio nearby and add "sound effects" to the game being played on the screen by listening to the S100 buss signals through the radio. I turned off my computer and looked at the T41 noise level...MUCH better!

Jack, W8TEE

On Sunday, February 9, 2025 at 01:25:30 PM EST, K9HZ <bill@...> wrote:


Yeah and make sure you do it with the attenuator at ZERO!? THEN go ahead
and calibrate the RX attenuation control.


Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ
VP2EHZ

Owner - Operator
Big Signal Ranch ¨C K9ZC
Staunton, Illinois

Owner ¨C Operator
Villa Grand Piton ¨C J68HZ
Soufriere, St. Lucia W.I.
Rent it: www.VillaGrandPiton.com

Moderator: North American QRO Group at Groups.IO.
Moderator: Amateur Radio Builders Group at Groups.IO.

email:? bill@...


-----Original Message-----
From: [email protected]
<[email protected]> On Behalf Of jerry-KF6VB
Sent: Sunday, February 9, 2025 12:23 PM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] Calibrate S meter?

On 2025-02-09 10:11, jjpurdum via groups.io wrote:
> No. It is an approximation based on comparing S signals on commercial
> rigs with the T41 reading. At the time the S-meter was coded, its
> accuracy was pretty far down the list of things to do,


*** Makes sense.? That's actually what I figured :).? I think such
calibration would need to be per-band.

? ? ? ? ? ? ? ? ? - Jerry, KF6VB












--
Jack, W8TEE