Keyboard Shortcuts
Likes
Search
T41 SDT Code Issues
?
Folks,
?
Looking for some ideas for an issues I am having compiling SDT code, to be clear it compiles and loads just fine but when running I get very jittery performance and a sort of "bip bip bip bip bip bip" from the audio, the movement of the waterfall display is in sync with the bip bip effect.
?
In an effort to troubleshoot this I configured a new Arduino IDE 2.3.4, remove all of the old arduino library folders out of c:\users\.. so that I would have a clean slate, then installed Teensy 1.59, then all of the various required libs as per below...
?
Using library Adafruit MCP23017 Arduino Library at version 2.3.2 in folder: N:\arduino\libraries\Adafruit_MCP23017_Arduino_Library?
Using library Adafruit BusIO at version 1.17.0 in folder: N:\arduino\libraries\Adafruit_BusIO? Using library Wire at version 1.0 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Wire? Using library SPI at version 1.0 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SPI? Using library Chrono at version 1.2.0 in folder: N:\arduino\libraries\Chrono? Using library Regressino at version 1.5 in folder: N:\arduino\libraries\Regressino? Using library Regression at version 1.0.1 in folder: N:\arduino\libraries\Regression? Using library Adafruit GFX Library at version 1.11.11 in folder: N:\arduino\libraries\Adafruit_GFX_Library? Using library OpenAudio_ArduinoLibrary-master in folder: N:\arduino\libraries\OpenAudio_ArduinoLibrary-master (legacy) Using library Audio at version 1.3 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Audio? Using library SD at version 2.0.0 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SD? Using library SdFat at version 2.1.2 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SdFat? Using library SerialFlash at version 0.5 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SerialFlash? Using library Time at version 1.6.1 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Time? Using library Metro in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Metro (legacy) Using library Bounce in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Bounce (legacy) Using library Timer at version 1.2.1 in folder: N:\arduino\libraries\Timer? Using library RA8875 at version 0.7.11 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\RA8875? Using library EEPROM at version 2.0 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\EEPROM? Using library ArduinoJson at version 7.3.0 in folder: N:\arduino\libraries\ArduinoJson? ?
The settings are 600MHz, Faster with LTO and Dual Serial, it all compiles fine and uploads but I still have the issue as per above, now to be clear this is the 064 build of the code which I don't think has been released, BUT I had kind of similar issues using the 050 version of the code whereby if the SDR started up in the 20M band and I moved to the 40m band and then back to the 20m band I would get the same jittery performance, switching the SDR off and back on again it would start up just fine on the 20m band. Similarly if it booted in 40 or 80 meters and I moved up to anything higher than 10MHz I would get the same jittery performance until the SDR was powered off and on again. REALLY weird behavior.
?
Now out of interest I loaded the hex file Jack posted a few weeks back for 064 and the SDR works perfectly with this image, no jittery performance at all, so this is definitely an issue with my build environment or something I am doing wrong in the config, can't think what though and moreover the build environment should be a blank slate. I just have the Main and RF boards at present.
?
Kind of stumped and looking for ideas, can anyone spot an anomalies in the above libs perhaps ?
?
Jack could you share your config.hf file in case I am missing something obvious ?
?
Thanks and Best regards, Peter EI3JCB
? |
Peter: Try recompiling with the options set to "Smallest code with LTO". You should get something similar to: ? FLASH: code:205768, data:127192, headers:9052?? free for files:7784452 ?? RAM1: variables:178176, code:195112, padding:1496?? free for local variables:149504 ?? RAM2: variables:462432? free for malloc/new:61856 The critical value is highlighted above and represents the stack space that's available. This chunk of memory gets chewed up as functions are called and, if that goes to zero, the stack collides with the heap space and it's anyone's guess what happens next. That number should be at least 50K, preferably more. Let us know what happens after the compiler adjustment. Jack, W8TEE
On Friday, February 21, 2025 at 07:10:07 AM EST, Peter McCracken EI3JCB via groups.io <peter.mccracken@...> wrote:
?
Folks,
?
Looking for some ideas for an issues I am having compiling SDT code, to be clear it compiles and loads just fine but when running I get very jittery performance and a sort of "bip bip bip bip bip bip" from the audio, the movement of the waterfall display is in sync with the bip bip effect.
?
In an effort to troubleshoot this I configured a new Arduino IDE 2.3.4, remove all of the old arduino library folders out of c:\users\.. so that I would have a clean slate, then installed Teensy 1.59, then all of the various required libs as per below...
?
Using library Adafruit MCP23017 Arduino Library at version 2.3.2 in folder: N:\arduino\libraries\Adafruit_MCP23017_Arduino_Library?
Using library Adafruit BusIO at version 1.17.0 in folder: N:\arduino\libraries\Adafruit_BusIO? Using library Wire at version 1.0 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Wire? Using library SPI at version 1.0 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SPI? Using library Chrono at version 1.2.0 in folder: N:\arduino\libraries\Chrono? Using library Regressino at version 1.5 in folder: N:\arduino\libraries\Regressino? Using library Regression at version 1.0.1 in folder: N:\arduino\libraries\Regression? Using library Adafruit GFX Library at version 1.11.11 in folder: N:\arduino\libraries\Adafruit_GFX_Library? Using library OpenAudio_ArduinoLibrary-master in folder: N:\arduino\libraries\OpenAudio_ArduinoLibrary-master (legacy) Using library Audio at version 1.3 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Audio? Using library SD at version 2.0.0 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SD? Using library SdFat at version 2.1.2 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SdFat? Using library SerialFlash at version 0.5 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\SerialFlash? Using library Time at version 1.6.1 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Time? Using library Metro in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Metro (legacy) Using library Bounce in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\Bounce (legacy) Using library Timer at version 1.2.1 in folder: N:\arduino\libraries\Timer? Using library RA8875 at version 0.7.11 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\RA8875? Using library EEPROM at version 2.0 in folder: C:\Users\peter\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\libraries\EEPROM? Using library ArduinoJson at version 7.3.0 in folder: N:\arduino\libraries\ArduinoJson? ?
The settings are 600MHz, Faster with LTO and Dual Serial, it all compiles fine and uploads but I still have the issue as per above, now to be clear this is the 064 build of the code which I don't think has been released, BUT I had kind of similar issues using the 050 version of the code whereby if the SDR started up in the 20M band and I moved to the 40m band and then back to the 20m band I would get the same jittery performance, switching the SDR off and back on again it would start up just fine on the 20m band. Similarly if it booted in 40 or 80 meters and I moved up to anything higher than 10MHz I would get the same jittery performance until the SDR was powered off and on again. REALLY weird behavior.
?
Now out of interest I loaded the hex file Jack posted a few weeks back for 064 and the SDR works perfectly with this image, no jittery performance at all, so this is definitely an issue with my build environment or something I am doing wrong in the config, can't think what though and moreover the build environment should be a blank slate. I just have the Main and RF boards at present.
?
Kind of stumped and looking for ideas, can anyone spot an anomalies in the above libs perhaps ?
?
Jack could you share your config.hf file in case I am missing something obvious ?
?
Thanks and Best regards, Peter EI3JCB
?
-- Jack, W8TEE |
In its current state, I would say No, but others (Greg?) have added the extra memory chip but I don't know their results...perhaps they could enlighten us. Right now, our T41 code uses less than 3% of flash space, but eats about 70% of SRAM. I have been lax about getting rid of globals, which is a horrible admission on a number of fronts (e.g., encapsulation, memory use efficiency, etc). I'd like to say I'm going to go back after this next software release and clean that up, but that would likely be a lie as both Al and I have been at this for almost 7 years and we're getting a little burned out.? Also, I have other distractions now. At some time yesterday my main data drive died which I need to recover as it appears my backup hasn't run for several months! The good news is I've sent all the T41 code to Al all along, so he's never more than a few hours behind me. The bad news is everything else from current tax records to personal photos are on the lost drive. There's a lesson here, people... Jack, W8TEE
On Friday, February 21, 2025 at 09:27:29 AM EST, Tim via groups.io <w4yn@...> wrote:
Jack
I see that there are additional memory options that can added to Teensy.
At some point does it make sense to swap out current Teensy for one with added memory chips?
I see that it does not add a great deal of $$ to build.
Tim W4YN
-- Jack, W8TEE |
Hi Tim-
?
Yes, you can add a lot of external memory.? There are pros and cons.? This memory, being physically external to the Teensy (System On Chip), is going to be slower than the memory on the same die as the microcontroller.
The worst part about the external memory is that you can't use it for functions.? It is restricted to data.? So the use case for the external memory is a requirement for (volatile) storage of a lot of data.
What we need is more stack and heap, and the only way to fix that is to re-design the Teensy.? Other than that, diligent software design with conservation of memory is the only option.
?
--
73 Greg KF5N |
If a new main board was designed... I think I would do what John did... sort
toggle quoted message
Show quoted text
of... I would put the main board right on the back of the display. That way there is no display cable. The thing is already a 4 layer board so the noise from the display encroaching into the audio portions should be relatively small (although I'd want to check that). 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: Friday, February 21, 2025 9:50 AM To: [email protected] Cc: Greg KF5N via groups.io <greg.electricity@...> Subject: Re: [SoftwareControlledHamRadio] T41 SDT Code Issues If we were to redesign the Teensy - or just do a Main Board with a directly soldered iMXRT1062 - I'd want to free up the JTAG port for *hardware debug*!!!! It would speed up software development by an order of magnitude. - Jerry, KF6VB |
What would be the cause of the display issues when some of us have ribbon connectors to the display that are 4-5" long? Jack, W8TEE
On Friday, February 21, 2025 at 11:57:46 AM EST, jerry-KF6VB <jerry@...> wrote:
On 2025-02-21 07:58, K9HZ wrote: > If a new main board was designed... I think I would do what John did... > sort > of... I would put the main board right on the back of the display.? > That way > there is no display cable. *** Like the Ubitx.? Good idea. ? ? ? ? ? ? ? ? ? - Jerry, KF6VB -- Jack, W8TEE |
On 2025-02-21 06:47, jjpurdum via groups.io wrote:
Also, I have other distractions now. At some time yesterday my main*** That sucks. Did it die completely, or just lose data? Sometimes they can be read by putting the drive in the fridge. I have a unique system. I don't keep anything important on my desktop PC. Instead, I have a Linux server running the Samba suite that acts as a windows fileserver. I actually have three of those servers; two active, and the third being upgraded to a newer Linux. Also, I do an encrypted incremental backup to the cloud once a week. The server in use backs itself up to the second hot server every night. So far, I've been lucky. Have had some close calls, but never lost it all. My email queue goes back to 1989! Back then I didn't have real Internet. My PC ran a program called "UUPC" that dialed up another computer and transferred mail and netnews via the UUCP protocol. I had it on a 24 hour timer. In the middle of the night, it would come on for a few hours. UUPC was in the autoexec.bat. - Jerry, KF6VB |
¿ªÔÆÌåÓýIt seems to be a combination of things (not just one)¡ weak SPI line drivers on the Teensy T4.1 and cross-talk (capacitive coupling) between the data lines that gets worse as the cables get longer.? That¡¯s why shorter cables or cables with some form of ferrite can make the display work.? ? There are a few ways to fix this: ?
? There may be more but that¡¯s what we know about for sure¡ ? ? ? 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 jjpurdum via groups.io
Sent: Friday, February 21, 2025 11:07 AM To: [email protected] Subject: Re: [SoftwareControlledHamRadio] T41 SDT Code Issues ? What would be the cause of the display issues when some of us have ribbon connectors to the display that are 4-5" long? ? Jack, W8TEE ? On Friday, February 21, 2025 at 11:57:46 AM EST, jerry-KF6VB <jerry@...> wrote: ? ? On 2025-02-21 07:58, K9HZ wrote:
|
I have the C boot drive which is a SSD, but only 500G, my D drive, which holds everything and is 1 TB and the drive that died, and drive F which is a 2T hot-swap backup drive. D no longer shows up in Windows Explore or the Disk Manager. I'm hoping it's a faulty/dirty connector which I will check when I tear the system down later today. If that doesn't work, how long in the fridge? If that fails, I'll go over to Al's and put it in an old system he has and see if that controller can find it. If that doesn't work, I've lost a tremendous amount of non-T41 stuff and I'll start shopping for a large pile of kindling and a very flammable Viking ship. Jack, W8TEE
On Friday, February 21, 2025 at 12:18:23 PM EST, jerry-KF6VB <jerry@...> wrote:
On 2025-02-21 06:47, jjpurdum via groups.io wrote: > Also, I have other distractions now. At some time yesterday my main > data drive died *** That sucks.? Did it die completely, or just lose data?? Sometimes they can be read by putting the drive in the fridge. ? I have a unique system.? I don't keep anything important on my desktop PC.? Instead, I have a Linux server running the Samba suite that acts as a windows fileserver.? I actually have three of those servers;? two active, and the third being upgraded to a newer Linux.? Also, I do an encrypted incremental backup to the cloud once a week.? The server in use backs itself up to the second hot server every night. ? So far, I've been lucky.? Have had some close calls, but never lost it all. My email queue goes back to 1989!? Back then I didn't have real Internet.? My PC ran a program called "UUPC" that dialed up another computer and transferred mail and netnews via the UUCP protocol.? I had it on a 24 hour timer.? In the middle of the night, it would come on for a few hours.? UUPC was in the autoexec.bat. ? ? ? ? ? ? ? ? ? - Jerry, KF6VB -- Jack, W8TEE |
On 2025-02-21 09:47, jjpurdum via groups.io wrote:
I have the C boot drive which is a SSD, but only 500G, my D drive,*** Does Al have a infrared camera? I saw a video where somebody fixed a dead SSD by imaging it - and quickly finding a shorted electrolytic. The shorted electrolytic got hot, and the camera saw it. I've been looking at such things, because I have a nice mini-pc that died. It's pulling down the power supply and the power supply light is blinking. I tested the supply on the bench, and it delivers its rated current, no problem. Whatever's loading down that supply is surely heating up. There are approximately a zillion of these things on Amazon. The main feature I'm looking for is "macro" - the ability to focus on something really close - like a circuit board. - Jerry, KF6VB which I will check when I tear the system down later today. If that |
Jack, Put the failed drive in a zip lock bag, then that in another zip .lock bag.? I usually put the double bagged drive in the freezer for at least 24 hours.? Once you take it out of the freezer, you have about 45 minutes to reconnect the drive and try to recover your data.? This has worked for me over the past 35 years. Larry - AC8YE
Sent with secure email.
On Friday, February 21st, 2025 at 12:47 PM, jjpurdum via groups.io <jjpurdum@...> wrote:
|
I will give it a try. At this point, I would put salt on a swallow's tail if I thought that would work. I did back up my personal photos, but not my past tax records. I also had about 8 months work on a "How-To" book and I never back any of it up. Stupid...just plain stupid. I'll let you know if it worked. Jack, W8TEE
On Friday, February 21, 2025 at 01:49:37 PM EST, Larry - AC8YE via groups.io <ac8ye@...> wrote:
Jack, Put the failed drive in a zip lock bag, then that in another zip .lock bag.? I usually put the double bagged drive in the freezer for at least 24 hours.? Once you take it out of the freezer, you have about 45 minutes to reconnect the drive and try to recover your data.? This has worked for me over the past 35 years. Larry - AC8YE
Sent with secure email.
On Friday, February 21st, 2025 at 12:47 PM, jjpurdum via groups.io <jjpurdum@...> wrote:
--
Jack, W8TEE |
I'll ask him, but I don't think he does. I have an infrared "gun" that I might poke around with. I'm gonna try the freezer thing too. Jack, W8TEE
On Friday, February 21, 2025 at 01:43:06 PM EST, jerry-KF6VB <jerry@...> wrote:
On 2025-02-21 09:47, jjpurdum via groups.io wrote: > I have the C boot drive which is a SSD, but only 500G, my D drive, > which holds everything and is 1 TB and the drive that died, and drive > F which is a 2T hot-swap backup drive. D no longer shows up in Windows > Explore or the Disk Manager. I'm hoping it's a faulty/dirty connector *** Does Al have a infrared camera?? I saw a video where somebody fixed a dead SSD by imaging it - and quickly finding a shorted electrolytic. The shorted electrolytic got hot, and the camera saw it. I've been looking at such things, because I have a nice mini-pc that died.? It's pulling down the power supply and the power supply light is blinking.? I tested the supply on the bench, and it delivers its rated current, no problem. Whatever's loading down that supply is surely heating up. There are approximately a zillion of these things on Amazon.? The main feature I'm looking for is "macro" - the ability to focus on something really close - like a circuit board. ? ? ? ? ? ? ? ? - Jerry, KF6VB > which I will check when I tear the system down later today. If that > doesn't work, how long in the fridge? If that fails, I'll go over to > Al's and put it in an old system he has and see if that controller can > find it. If that doesn't work, I've lost a tremendous amount of > non-T41 stuff and I'll start shopping for a large pile of kindling and > a very flammable Viking ship. > > Jack, W8TEE > >? On Friday, February 21, 2025 at 12:18:23 PM EST, jerry-KF6VB > <jerry@...> wrote: > > On 2025-02-21 06:47, jjpurdum via groups.io wrote: > >> Also, I have other distractions now. At some time yesterday my main >> data drive died > > *** That sucks.? Did it die completely, or just lose data?? Sometimes > they > can be read by putting the drive in the fridge. > >? I have a unique system.? I don't keep anything important on my > desktop > PC.? Instead, I have a Linux server running the Samba suite that acts > as > a > windows fileserver.? I actually have three of those servers;? two > active, and > the third being upgraded to a newer Linux.? Also, I do an encrypted > incremental > backup to the cloud once a week.? The server in use backs itself up to > > the second hot server every night. > >? So far, I've been lucky.? Have had some close calls, but never lost > it > all. > My email queue goes back to 1989!? Back then I didn't have real > Internet.? My PC > ran a program called "UUPC" that dialed up another computer and > transferred mail and > netnews via the UUCP protocol.? I had it on a 24 hour timer.? In the > middle of the night, > it would come on for a few hours.? UUPC was in the autoexec.bat. > >? ? ? ? ? ? ? ? ? - Jerry, KF6VB > > -- > Jack, W8TEE > > > Links: > ------ > [1] /g/SoftwareControlledHamRadio/message/32850 > [2] /mt/111306866/243852 > [3] /g/SoftwareControlledHamRadio/post > [4] /g/SoftwareControlledHamRadio/editsub/243852 > [5] > /g/SoftwareControlledHamRadio/leave/10484476/243852/1943518115/xyzzy -- Jack, W8TEE |
On Fri, Feb 21, 2025 at 09:06 AM, jjpurdum wrote:
What would be the cause of the display issues when some of us have ribbon connectors to the display that are 4-5" long?I've pondered this question as well.? My 4SQRP kit T41 has an 8-9" cable between the display and main board.? Besides a few glitches early on, which I think were software related, my display has worked well for about a year. |
On 2025-02-21 11:54, jjpurdum via groups.io wrote:
I will give it a try. At this point, I would put salt on a swallow'sYou can always request past tax returns from the IRS. Although - maybe not now. I hear they're a little short-handed. - Jerry, KF6VB |
My Ver 11 build had 6-7 inch display cable 3.3 volt too, never a glitch.
Ver 12 had glitches and freeze ups with any code I used until I slipped some ferrite sleeves over display and front panel ribbon cables.?
Have not had a freeze or glitch except with the long pins on Teensy not making contact.
If I wiggle and hold left pinky in air just right it will run fine for days until I wiggle something again.?
Have ordered some quality long pin female headers and a spare Teensy to see if that clears up issues.
Back to winding coils, LPF done and 2 BPF bands done lots more of the little buggers to go.
Guys TNX for all the work you put into this build!
Tim W4YN |