Teensyduino 1.60 Beta #1

Paul

Administrator
Staff member
Teensyduino 1.60 Beta #1

Here is a first beta test for Teensyduino 1.60.

Arduino 2.3.x, all systems platforms:
Use Boards Manager to install Teensy version 0.60.1
(to refresh versions, Shift-Ctrl-P and click "Arduino: Update Package Index")

Arduino 1.8.x, Linux 32 bit:

Arduino 1.8.x, Linux 64 bit:

Arduino 1.8.x, Linux ARM:

Arduino 1.8.x, Linux ARM64:

Arduino 1.8.x, MacOS (Catalina to Sonoma)
-sorry could not build this, Apple notarization stopped working on my old Mac-

Arduino 1.8.x, Old MacOS (Mojave)

Arduino 1.8.x, Windows:
-compression didn't work so this file is huge, please be patient with download and 1st run-

PlatformIO, DIY beta support:


Changes since Teensyduino 1.60:

Update FlexIO_t4, ILI9488_t3, LittleFS, QuadEncoder, ShiftPWM
SoftwareSerial fix TX on Teensy 4, fix RX on Teensy 3 and 4
Fix __cxa_guard_release on Teensy 3 (jmarsh)
Fix CCM_ANALOG_PLL_SYS_DIV_SELECT define (A-Dunstan)
Fix makeTime() leap year (A-Dunstan)
Add C++ new aligned (A-Dunstan)
Fix HardwareSerial XBAR pins 7, 8, 36 on Teensy 4 (KurtE)
Fix HardwareSerial receive with setRX on Teensy 4 (sndsgd)
Fix HardwareSerial serialEvent on Teensy 3
Check non-const pin number with digitalWriteFast
Fix extmem_realloc with NULL on Teensy 4.1
FS class virtual destructor
Fix __SSAT return type
Audio fix TDM2 input and output (Jonathan Oakley)
Audio fix stuck AudioEffectFade with no input (Jonathan Oakley)
Audio fix AudioEffectFreeverbStereo (Synvox)
Audio fix AudioSynthToneSweep buffer overflow (Steven Hazel)
Audio improve AudioEffectReverb (Eric Brombaugh)
Audio MidiSynth examples updated with PROGMEM for samples
Audio fix for Teensy LC code (Mark Tillotson)
Teensy Loader wait longer for large flash erase
MacOS properly sign utility programs
Linux check for missing /etc/udev/rules.d/00-teensy.rules file
Suppress pointless C++ ABI warnings
 
Last edited:
Using Arduino 1.8.19 under Win11pro. Attempted installation & received an unusual warning from Norton 360:

Category: Data Protector
Date & Time,Risk,Activity,Status,Recommended Action,Status,Program Path,Program Name,Date & Time,Action Observed,Target
9/12/2024 9:40:53 PM,High,Data Protector blocked a suspicious action by TeensyduinoInstall_1.60b1.exe,Action Blocked,No Action Required,Action Blocked,C:\Users\mjculross\Downloads\Installed\TeensyduinoInstall_1.60b1.exe,TeensyduinoInstall_1.60b1.exe,9/12/2024 9:40:53 PM,Suspicious process attempted to open a file protected by Data Protector,C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SdFat\doc\class_ex_name__t__inherit__graph.png

Told Norton to exclude this process (presumably, the TeensyduinoInstall), attempted installation a 2nd time & everything concluded successfully.

Tested compilation on a couple of my projects, & no problems detected.

Mark J Culross
KD5RXT
 
Installed fine on Arduino 1.8.19 under Win10pro.
First compilation under Arduino 1.8.19 / Visual Studio + Visual Micro compiler without error.
 
A little heads up for anyone who has upgraded from Ubuntu 22.04 to Ubuntu 24.04. Arduino 2.3.2 will fail to execute giving an error:
Code:
The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now.
The solution that worked for me can be found here:
https://github.com/electron/electron/issues/42510
I used this the following on the command line:
Code:
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
and was able to upgrade to 1.60B1. Ran several sketchs without issue.
Arduino 1.8.19 and TD 1.60B1 seems to work ok as well. Tested on Ubuntu 22.04 and Ubuntu 24.04...
 
Installed with IDE 2.3.2 nightly (4/22) on Win 11 home with 23H2 with no issues. Compiled and ran a sketch without any problems. Also downloaded the 1.8.19 version and inslalled without issue
 
I updated to .60.1 for IDE 2.x which went smoothly. Note: I am running the nightly build: 20240910. I updated earlier this week to this nightly as they actually pulled in some PRs into arduino-ide. First ones in maybe seven months :D
In particular they updated to use CLI 1.0.4 - Not sure if this included the speed ups for library detection code yet or not.

Fix HardwareSerial serialEvent on Teensy 3
Note: the current fix here, only fixes Serial1. Serial2-6 will not use the Serial Events if their begin has a format specified.

The version for IDE 1.x on my W11 machine gave me the warnings like:
1726234596117.png

Norton has now blocked it:
1726234763560.png

1726234800570.png

Note, I brought up the advanced details, clicked on exclude process, then went back to Teensy install, hit the back button, and then next ones... And it installed. I did a compile of the basic blink program for T3.2 and it completed.


Back to IDE2, my first program I tried to build, failed... Then remembered it was using a function we created to set the PSRAM speed.
Code:
D:\github\NT35510_t4x_p\examples\Kurts_NT35510_t4x_p_FB_and_clip_tests/Kurts_NT35510_t4x_p_FB_and_clip_tests.ino:150: undefined reference to `set_psram_clock'

Other things built.
I updated the build to again use my https://github.com/KurtE/cores/tree/variants_override
branch which is up to date with the master branch of cores (I rebased it a couple days ago)

The sketch builds again...

@mjs513 @PaulStoffregen - If it does not look promising to integrate this (pr #750) maybe we should integrate this function...
The PR that pulled it into the variants branch is:

Now back to playing
 
@KurtE
The version for IDE 1.x on my W11 machine gave me the warnings like:
Saw the same thing - did what I usually do - click on report as safe and then said Keep and install no issue.

Norton has now blocked it:
If I remember right I added Teensyduino to the exclude list in Norton so not seeing that anymore. As for IDE 2.3.2 I added the install directory to exclude directory list so the ide install doesn't cause an issue.

@mjs513 @PaulStoffregen - If it does not look promising to integrate this (pr #750) maybe we should integrate this function...
The PR that pulled it into the variants branch is:
Yeah - really hope @Paul considers that for incorporation into the next beta. Really helpfu.
 
Anyone using MacOS? How about old Macs?

I ran into a lot of problems with the old MacOSX builds. Apple discontinued support for notarization, which newer MacOS requires, to be done from older versions of Xcode. The newer versions only run on newer Mac hardware. The new versions lack the SDKs for older MacOS-X, and they come with a lot of things that just don't work for older code. I debating what to do about MacOS support for Teensy.... and right now it's looking like dropping support for older MacOS.
 
Win 11 {huge} download was blocked, requested 'Keep' as above it isn't known by Windows Security / Microsoft Defender. And Reported it Safe.

Install ran:
1726254479723.png


Built two open sketches no problem in 1.8.19.

T_3.2 (and T_4.1) :: Confirmed serialEvent1() works from prior test sketch when given: Serial1.begin(115200); or, Serial1.begin(115200, SERIAL_8N1);
Note: the current fix here, only fixes Serial1. Serial2-6 will not use the Serial Events if their begin has a format specified.
Confirm prior test sketch - fix needed for Serial2 {etc} still fails serialEvent2():
Code:
Hello USB World
LOOP USB: DATA WAITING >>>>>
Hello World

LOOP USB: DATA WAITING <<<<<
LOOP USB: DATA WAITING >>>>>
3301

LOOP USB: DATA WAITING <<<<<

ALSO NOTE: Since the new PJRC FORUM/Server: Not receiving any email for FORUM posts to my '@Hotmail.com'- they are not even making it to 'JUNK/spam' - just not delivered. MSFT seems to distrust current PJRC.com - that may explain initial download distrust to some degree?
 
MSFT seems to distrust current PJRC.com - that may explain initial download distrust to some degree?

Pretty sure they're separate, and it's something specific about the forum because emails from the main server go through to Outlook and Hotmail.

The app signing will probably start to be trusted as more people click the button to report it's safe. That's exactly what happened last time we were forced to get a new signing key.
 
Pretty sure they're separate, and it's something specific about the forum because emails from the main server go through to Outlook and Hotmail.

The app signing will probably start to be trusted as more people click the button to report it's safe. That's exactly what happened last time we were forced to get a new signing key.
Could be separate, but not placed any order or gotten Paul/Robin email lately even with a couple test emails sent. So wasn't sure Forum and Main are unique.

Yes, typically after some downloads reported KEEP/SAFE they come without blocking. Just seems they should have marked server/CERT downloads okay by now as seems prior CERT was trusted until it expired.
 
T_3.2 (and T_4.1) :: Confirmed serialEvent1() works from prior test sketch when given: Serial1.begin(115200); or, Serial1.begin(115200, SERIAL_8N1);
Confirm prior test sketch - fix needed for Serial2 {etc} still fails serialEvent2():
If you get a chance, you might try my fork/branch mentioned earlier and verify that it works.
 
Windows 11, Arduino1.8.19, TD1.60B1 - Header files are in the "TeensyRA8876_8080-main/src" directory. As seen below it says "RA8876_Config_8080.h" is not found but then shows it as a candidate. Is there something I am missing?

Code:
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\wwats\OneDrive\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10819 -build-path C:\Users\wwats\AppData\Local\Temp\arduino_build_462067 -warnings=none -build-cache C:\Users\wwats\AppData\Local\Temp\arduino_cache_32651 -verbose C:\Users\wwats\OneDrive\Documents\Arduino\libraries\TeensyRA8876-8080-main\TeensyRA8876-8080-main\examples\gauges\gauges.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\wwats\OneDrive\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10819 -build-path C:\Users\wwats\AppData\Local\Temp\arduino_build_462067 -warnings=none -build-cache C:\Users\wwats\AppData\Local\Temp\arduino_cache_32651 -verbose C:\Users\wwats\OneDrive\Documents\Arduino\libraries\TeensyRA8876-8080-main\TeensyRA8876-8080-main\examples\gauges\gauges.ino
Using board 'teensy41' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Using core 'teensy4' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -Wno-psabi -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=160 -DARDUINO=10819 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\wwats\\AppData\\Local\\Temp\\arduino_build_462067\\sketch\\gauges.ino.cpp" -o nul
Alternatives for RA8876_Config_8080.h: []
C:\Users\wwats\OneDrive\Documents\Arduino\libraries\TeensyRA8876-8080-main\TeensyRA8876-8080-main\examples\gauges\gauges.ino:8:10: fatal error: RA8876_Config_8080.h: No such file or directoryResolveLibrary(RA8876_Config_8080.h)

  -> candidates: []
    8 | #include "RA8876_Config_8080.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Error compiling for board Teensy 4.1.
 
@wwatson
Windows 11, Arduino1.8.19, TD1.60B1 - Header files are in the "TeensyRA8876_8080-main/src" directory. As seen below it says "RA8876_Config_8080.h" is not found but then shows it as a candidate. Is there something I am missing?
Tried it in IDE 2.3.2 with no issue compiled fine using graphics.ino as a test.

As for IDE 1.8.19 using same graphics.ino sketch - again compiled no issues.
Code:
Opening Teensy Loader...
Memory Usage on Teensy 4.1:
  FLASH: code:73852, data:11572, headers:8780   free for files:8032260
   RAM1: variables:12768, code:68776, padding:29528   free for local variables:413216
   RAM2: variables:12416  free for malloc/new:511872
Note I did just update to @KurtE's core - but that shouldn't make a difference in this case.

Tried Gauges.ino out of curiosity and it compiled again no issues?
 
@wwatson

Tried it in IDE 2.3.2 with no issue compiled fine using graphics.ino as a test.

As for IDE 1.8.19 using same graphics.ino sketch - again compiled no issues.
Code:
Opening Teensy Loader...
Memory Usage on Teensy 4.1:
  FLASH: code:73852, data:11572, headers:8780   free for files:8032260
   RAM1: variables:12768, code:68776, padding:29528   free for local variables:413216
   RAM2: variables:12416  free for malloc/new:511872
Note I did just update to @KurtE's core - but that shouldn't make a difference in this case.

Tried Gauges.ino out of curiosity and it compiled again no issues?
I figured it out. When I extracted the zip files W11 created 2 levels of the zip filename, "TeensyRA8876_8080-main\TeensyRA8876_8080-main\src". Never seen that before :confused: Sorry for the trouble...
 
I figured it out. When I extracted the zip files W11 created 2 levels of the zip filename, "TeensyRA8876_8080-main\TeensyRA8876_8080-main\src". Never seen that before :confused: Sorry for the trouble...
No problem - its not like I have not done things like that before. :)
 
Here is my first attempt to build the Windows installer with ZSTD compression.


This download is much more reasonably sized. :)

Previously I was using UPX, but it's no longer able to handle a file of this size. It's also incredibly slow, which makes building the installers a pretty unpleasant chore. Hopefully ZSTD will solve all those problems.
 
As one might expect, same experience (Norton objected, told to exclude process, then success) as reported in P#2 (& detailed by @KurtE in P#7) above.

Mark J Culross
KD5RXT
 
Anyone using MacOS? How about old Macs?

I ran into a lot of problems with the old MacOSX builds. Apple discontinued support for notarization, which newer MacOS requires, to be done from older versions of Xcode. The newer versions only run on newer Mac hardware. The new versions lack the SDKs for older MacOS-X, and they come with a lot of things that just don't work for older code. I debating what to do about MacOS support for Teensy.... and right now it's looking like dropping support for older MacOS.
I and a lot of other people use Mac OS for development (everything supported for Arduino, KiCad, FreeCad...), specially using the Teensy 4.0 og Teensy 4.1. I have several projects using the Teensy 4.1 and the Mac is a very stable platform for all software. Please continue support for the Mac OS platform!
 
Back
Top