Teensyduino 1.60 Beta #3

Paul

Administrator
Staff member
Here is a third beta test for Teensyduino 1.60.

Arduino 2.3.x, all systems:
1: Quit Teensy Loader, if running
2: Use Boards Manager to uninstall Teensy, if previously installed
3: Use File > Preferences (Arduino IDE > Settings on MacOS) to install new URL
4: Press Ctrl-Shift-P (Command-Shift-P on MacOS) click "Arduino: Update Indexes"
5: Use Boards Manager to install Teensy
6: Restart Arduino IDE (if using plugin for Lockable Teensy)

Arduino 1.8.x, Linux 64 bit:

Arduino 1.8.x, Linux ARM:

Arduino 1.8.x, Linux ARM64:

Arduino 1.8.x, Windows:

PlatformIO, DIY beta support:


Changes since Teensyduino 1.60-beta2

Add VS code plugin for Lockable Teensy features on Arduino IDE 2.3.x
Automatically find key.pem in IDE 1.8 or IDE 2.3 sketchbook locations
teensy_secure add "keyfile" option to show key.pem pathname
Teensy Loader built with latest wxWidgets 3.2.6 on all platforms
Fix Teensy Loader toolbar icons on Windows
Fix Teensy Loader toolbar on MacOS
 
Morning - still on first cup of coffee. Installed on Win 11 - IDE 2.3.3 no issues.

Looks like Loader buttons are working again:
1728472580157.png


Now to wake up some more and figure teensy-secure - been awhile since I last used it
 
Closed and restarted IDE 2.3.3 a couple of times but I am not seeing Teensy 4 Security on the tools menu. Either than or am still half asleep
1728473127836.png
 
Unfortunate. Anyway doing the Ctrl-Shift-P route I now see:
1728474582795.png


If I click on Generate Key, show key location and Step1 fuse write sketch, nothing happens. Am I missing something?
 
Downloaded on old MAC... Keyboard sequence different (Command instead of control)...
Did a verify sketch and it loaded up sketch and run on secured T4.1 I have sitting on my workspace

Also downloaded to W11 machine, running 2.3.3
Show key location showed up in one of their notification window.

Tried Verify sketch again and window opened was able to build and it said the T4.1 was fine.
1728480343984.png
 
Last edited:
Not sure it matters, but on the MAC, the VerifySecure.ino shows up as a locked sketch. On windows it does not:
1728480494281.png

1728480629907.png

2nd EDIT: Was able to open all three sketches on PC... Did not try the other two on MAC.

Also did not do a generate key ... As I already have one.

And as previously mentioned the W11 Teensy app icons appear to be fixed:
1728481161545.png
 
Last edited:
Environment particulars:
Win11pro
Arduino IDE: 2.3.3
Entered updated additional boards manager URL in File/Preferences: https://www.pjrc.com/teensy/td_160-beta3/package_teensy_0.60.3_index.json
Restarted the Arduino IDE (several times) & occasionally see "Indexing: xx/87" in bottom left corner.
Selected either Teensy 4.0 or Teensy 4.1.

Hitting CTRL-SHIFT-P, I don't get the Teensy Secure entries in the pop-up list...must be missing something.

Mark J Culross
KD5RXT

1728485158348.png


1728484569951.png
 
Last edited:
I figured it out: the IDE did me a great favor & re-installed 1.59.0 over 0.60.3...deleting 1.59.0 & re-installing 0.60.3 did the trick :p

EDIT: Or, more likely, I just forgot to install 0.60.3 in the first place...DOH...need more coffee !!

Mark J Culross
KD5RXT

P.S. The "Security Steps" also open additional windows as expected/intended. MJC

1728485873543.png
 
Last edited:
Installed this beta (0.60.3) and then restarted the IDE. macOS 14.7, Arduino IDE 2.3.3.

When I try to execute any of the Teensy Secute commands via cmd-shift-p, I see this error message:
"Could not find teensy_secure utility. Please use Boards Manager to install Teensy."
 
As shown in p#6 the Teensy Secure is present, but not found an option that results in anything showing activity.

TaskMan shows "Arduino IDE (10)" tasks - nothing adds one - unless it is once momentarily.

NOTE: Machine shutdown for UPDATES after p#5 and now Freshly restarted - T_4.1 (PROD Not Lockable) selected and even built.

Repeat with Locked T_4.1 and no change.
 
@kd5rxt-mark gave me an idea. I deleted all things teensy from packages and staging and reinstalled 0.60.3 and then did a generate key and it started working. @defragster you might want to give it a try

Generate Key and key location:
1728501959596.png


Fuse sketch:
1728502032168.png


And in the sketchbook directory it creates a file: key=betaboard.pem
 
@defragster you might want to give it a try
Thx, Working now!
> uninstalled 0.60.3
> Closed IDE
> removed Teensy packages folder
> Went into 'Staging' removed 'TEENSY*.*'
Restarted IDE 2
installed 0.60.3
Restarted IDE 2 <REQUIRED>
>> key.pem location: T:\T_Drive\tCode\key.pem
>> Ran 'LockSecureMode' :: T:\TEMP\teensysecure-sPuFsC\LockSecureMode
Code:
Set Lockable Teensy into secure mode
Success: Secure mode set
- of course the first locked one was OLD early BETA: Fail: Teensy has old serial number, before HAB support.
Funny because Verbose shows:
Code:
13:21:40.960 (loader): using encrypted ehex (required - secure mode is locked)
 
When I tested, after installing 0.60.3 and restarting the IDE, first attempt to use the Ctrl-Shift-P immediately after restart IDE to run the security commands gives errors about Teensy not installed. But if I select Teensy from the drop-down list of detected boards, it works fine. Then if I select a non-Teensy board, it still works. Why, I'm not sure.

I am pretty sure the place it's failing is this findTool() function I copied from the arduino-littlefs-upload (for ESP32) plugin. I don't have a deep understanding of the Arduino API code, or even of Typescript in general, to know know why it depends on selecting a Teensy board after install. Pretty sure this one is going to be "solved" by updating the documentation and error message.
 
When I try to execute any of the Teensy Secute commands via cmd-shift-p, I see this error message:
"Could not find teensy_secure utility. Please use Boards Manager to install Teensy."

Try selecting Teensy from the drop-down list of detected boards. Does that make it start to work?
 
IDE 2.3.3 seems to be hanging today while checking for Teensy boards updates. Either 0.60.3 or 1.59.
 
IDE 2.3.3 seems to be hanging today while checking for Teensy boards updates. Either 0.60.3 or 1.59.
Yes, I have not gotten IDE 2.3.x to work at all. It always seems to hang. I am currently using IDE 2.2.1 (on Linux), and I have not gotten the new json link to work for Teensy, so I'm stuck at 1.59 or 0.60.1.

On the xterm window that I launched the 2.3.3 IDE from I get a lot of lines like the following. Just in case, I deleted the Teensy board from the 2.2.1 IDE before starting the 2.3.3 IDE:

Code:
Errors:
link failed but did not provide an info log
[515613:1013/122504.725090:ERROR:shared_context_state.cc(98)] Skia shader compilation error
------------------------
// Vertex SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform float4 sk_RTAdjust;in float2 position;in float2 localCoord;noperspective out float2 vlocalCoord_S0;void main() {// Primitive Processor QuadPerEdgeAAGeometryProcessor
vlocalCoord_S0 = localCoord;sk_Position = position.xy01;}
// Fragment SKSL
#extension GL_NV_shader_noperspective_interpolation: require
sampler2D uTextureSampler_0_S0;
noperspective in float2 vlocalCoord_S0;void main() {// Stage 0, QuadPerEdgeAAGeometryProcessor
half4 outputColor_S0 = half4(1);float2 texCoord;texCoord = vlocalCoord_S0;outputColor_S0 = (blend_modulate(sample(uTextureSampler_0_S0, texCoord), half4(1)));const half4 outputCoverage_S0 = half4(1);{ // Xfer Processor: Porter Duff
sk_FragColor = outputColor_S0 * outputCoverage_S0;}}
// Vertex GLSL
#version 300 es

#extension GL_NV_shader_noperspective_interpolation : require
precision mediump float;
precision mediump sampler2D;
uniform highp vec4 sk_RTAdjust;
in highp vec2 position;
in highp vec2 localCoord;
noperspective out highp vec2 vlocalCoord_S0;
void main() {
    vlocalCoord_S0 = localCoord;
    gl_Position = vec4(position, 0.0, 1.0);
    gl_Position = vec4(gl_Position.xy * sk_RTAdjust.xz + gl_Position.ww * sk_RTAdjust.yw, 0.0, gl_Position.w);
}

// Fragment GLSL
#version 300 es

#extension GL_NV_shader_noperspective_interpolation : require
precision mediump float;
precision mediump sampler2D;
out mediump vec4 sk_FragColor;
uniform sampler2D uTextureSampler_0_S0;
noperspective in highp vec2 vlocalCoord_S0;
void main() {
    mediump vec4 outputColor_S0 = vec4(1.0);
    highp vec2 texCoord = vlocalCoord_S0;
    outputColor_S0 = texture(uTextureSampler_0_S0, texCoord, -0.5);
    {
        sk_FragColor = outputColor_S0;
    }
}


Errors:
link failed but did not provide an info log
 
Last edited:
IDE 2.3.3 seems to be hanging today

Is Serial Monitor open?

A bug in Arduino CLI was recently found, where having the serial monitor open causes something to get stuck, stalling any downloads. Just closing serial monitor lets the downloads run again.

We'll probably get IDE 2.3.4 in a couple weeks, once they get a new CLI published and then go through their IDE release process.
 
I rembered made sure it was closed and then closed ide and then reopened. Seemed to be working ok yesterday but will try again later
 
s Serial Monitor open?

A bug in Arduino CLI was recently found, where having the serial monitor open causes something to get stuck, stalling any downloads. Just closing serial monitor lets the downloads run again.
Just readded both teensyduino link and the -.60.3 links back into the IDE 2.3.3 and seems to be working again. Seems to be a glitch in the matrix
 
Quick note: on running arduino-cli on RPI5 with this version of Teensyduino.

When it is programming the Teensy (in this case a Micromod,
It shows the "erasing... fine, but then it displays: "ogrammi"
That is the text is clipped off on both sides.

Edit: looks fine on the Windows 11 machine
 
Last edited:
Back
Top