¿ªÔÆÌåÓý

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

Re: V12 compiling error

 

That still seems like a small amount of stack space. Attached is a Beta version of our latest release which is still a week or so away from distribution. Please compile and send me the compile stats. Please do NOT give this to anyone else.

Jack, W8TEE

On Monday, February 10, 2025 at 10:42:31 AM EST, Tim via groups.io <w4yn@...> wrote:


Yes I did that here is result
emory Usage on Teensy 4.1:
? FLASH: code:291988, data:94648, headers:8620 ? free for files:7731208
? ?RAM1: variables:204352, code:267800, padding:27112 ? free for local variables:25024
? ?RAM2: variables:454240 ?free for malloc/new:70048
?
It will run fine for a while then freeze
Boot up stops mid way for several boot ups before it with run again.
Tim

--
Jack, W8TEE


Re: V12 compiling error

 

¿ªÔÆÌåÓý

Tim, sounds just like the problem I had until I shortened the Display cable(~3").

On 2/10/2025 10:44 AM, Tim via groups.io wrote:
Sometimes it freezes when tuning?
Just never know when it will freeze up.
TNX for helping
Tim
--

73 Animated graphic flashing 73 in Morse code.

Bob W3RDL


Virus-free.


Re: V12 compiling error

 

Sometimes it freezes when tuning?
Just never know when it will freeze up.
TNX for helping
Tim


Re: V12 compiling error

 

Yes I did that here is result
emory Usage on Teensy 4.1:
? FLASH: code:291988, data:94648, headers:8620 ? free for files:7731208
? ?RAM1: variables:204352, code:267800, padding:27112 ? free for local variables:25024
? ?RAM2: variables:454240 ?free for malloc/new:70048
?
It will run fine for a while then freeze
Boot up stops mid way for several boot ups before it with run again.
Tim


Re: V12 compiling error

 

That's not enough, and probably causes a stack crash at some point. To fix, go to the Tools menu and select the "Option: Smallest code with LTO" and try again. That should increase the stack space by a factor of 10x. I also selected the 528MHz option for the CPU speed. Others suggest this option extend the life of the Teensy, but I don't know that for a fact. I cannot see that it affects the performance at all.

Jack, W8TEE

On Monday, February 10, 2025 at 12:06:06 AM EST, Tim via groups.io <w4yn@...> wrote:


Loaded but won't start?
Opening Teensy Loader...
Memory Usage on Teensy 4.1:
? FLASH: code:290040, data:130740, headers:8272 ? free for files:7697412
? ?RAM1: variables:251360, code:259720, padding:2424 ? free for local variables:10784
? ?RAM2: variables:389440 ?free for malloc/new:134848
Spectrum and water fall seem frozen
Sry for band width off to bed for now.
TNX for helping Tim

--
Jack, W8TEE


T41 Calibration Routines

 

Hi Everyone,
I am in the process of completing a major revision of the T41Calibration routines. I am on the last one - SSBPA cal. I hate to quote a time to release - these things have a mind of their own. If I can't get it done by the end of today, I will release an incomplete version as a beta.
Thanks,
Al
AC8GY


Rob Sherwood Presentation Slides on Amateur Radio Transceiver Performance

 

The slides are here:

/g/SoftwareControlledHamRadio/files/Sherwood_Presentations

I attempted to video the presentation at Hamcation.? Unfortunately the acoustics and noise at the venue were quite bad.
Here are the videos:



?
--
73 Greg KF5N


Re: V12 compiling error

 

On 2025-02-09 20:23, jjpurdum via groups.io wrote:
Some versions of the code do use Serial and Serial1. If you are
working with CAT control, Serial1 needs to be defined somewhere.
*** Serial1 gets magically defined inside the TeensyDuino support code
when you choose dual serial USB in Arduino.

- Jerry, KF6VB


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
Links:
------
[1] /g/SoftwareControlledHamRadio/message/32662
[2] /mt/111092895/243852
[3] /g/SoftwareControlledHamRadio/post
[4] /g/SoftwareControlledHamRadio/editsub/243852
[5]
/g/SoftwareControlledHamRadio/leave/10484476/243852/1943518115/xyzzy


Re: V12 compiling error

 

¿ªÔÆÌåÓý

Remember to clear the flash memory my holding the button down on the Teensy for about 15 seconds before you load a different version of the code¡­

?

?

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:

?

Moderator: North American QRO Group at Groups.IO.

Moderator: Amateur Radio Builders Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] <[email protected]> On Behalf Of Tim via groups.io
Sent: Sunday, February 9, 2025 11:51 PM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] V12 compiling error

?

Sry I am using his code.

It compiles and loads but seems frozen.

I reloaded AI6YM code as he has it configured for his boards, but it never starts, just blank screen.

Strange as it was supposedly loaded on Tweensy when I got his kit and it ran but was flakey, stopped randomly.?

Think I will go back to winding torroids until my brain un freezes.

TNX agn for help.

Tim?

?


Re: V12 compiling error

 

Sry I am using his code.
It compiles and loads but seems frozen.
I reloaded AI6YM code as he has it configured for his boards, but it never starts, just blank screen.
Strange as it was supposedly loaded on Tweensy when I got his kit and it ran but was flakey, stopped randomly.?
Think I will go back to winding torroids until my brain un freezes.
TNX agn for help.
Tim?
?


Re: V12 compiling error

 

Loaded but won't start?
Opening Teensy Loader...
Memory Usage on Teensy 4.1:
? FLASH: code:290040, data:130740, headers:8272 ? free for files:7697412
? ?RAM1: variables:251360, code:259720, padding:2424 ? free for local variables:10784
? ?RAM2: variables:389440 ?free for malloc/new:134848
Spectrum and water fall seem frozen
Sry for band width off to bed for now.
TNX for helping Tim


Re: V12 compiling error

 

You'll notice I said it was a semantic error, not a syntax error. Still, it should produce a warning even if it finished the compile.

Jack, W8TEE

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


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

--
Jack, W8TEE


Re: V12 compiling error

 

Think I found it Serial Port definition needs to be Dual Serial!
?


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'?