Thanks Paul for that excellent information on Teensyduino 1.57 in your blog article.
This made it possible for me for the first time to successfully implement MTP access to the SD card on an audio board!
Aug 3, 22 : MalwareBytes Support got the teensy_secure.exe program removed from unsafe list.
Originally Posted by defragster
Going back and forth with MalwareBytes on False Positive detection for Quarantine of Teensy_Secure.exe in %appdata% folder on Win 11.
They have twice said it should be fixed with updates to their software - but it is still getting caught for Quarantine.
In gathering info for reply I noticed Win 11 showing a Certificate issue: ‘One of the counter signatures was invalid’
Quick note: I ran into interesting issue yesterday, building with current release. Note I built using TSET stuff (Defragster) on SublimeText, but it is using the Arduino 1.8.19 build setup.
Transiting to machine with Windows 11, which has OneDrive on it... But I do most of my stuff outside of Onedrive.
Initially I the machine had Arduino Sketch book at: C:\Users\kurte\OneDrive\Desktop\Documents\Arduino
But I changed it to: C:\Users\kurte\Documents\Arduino
When I built the sketch under Sublime-text I was trying to program a locked MicroMod and it failed.
Looking at the build log it: did not create the .ehex file.
As it could not find the key.pem file.
I put a copy of it in: C:\Users\kurte\OneDrive\Desktop\Documents\Arduino
And then it built fine
I probably should migrate my Arduino folder to where the system by default wants it... Will probably do that later today,
The teensy_secure utility looks for your key.pem file in 1 specific place. The full path it will search is shown in the Tools > Teensy 4 Security window.
On Windows, that location comes from reading {AppData}/Arduino15/preferences.txt to find a "sketchbook.path=" line. Whatever path that line says is where it will look for your key.pem file. I believe you can change this path from the IDE GUI using File > Preferences.
It doesn't matter where your .ino code is located. The key.pem file is not found relative to your source code. The "sketchbook.path" from preferences.txt is the only place key.pem is used.
Thanks, Paul, as I mentioned I had changed the Preferences for Sketchbook using their preferences dialog. And the GUI was finding the sketches in it...
This time it worked properly... wondering why in the one case yesterday that it failed? Maybe the preferences file had not yet updated properly? i.e. maybe later updated the file when I exited Arduino 1.8.19
But it is working today? Probably just a onetime fluke.
Maybe the IDE only writes changes the preferences.txt when you quit?
That is what I am guessing. I know it does write out on close, or at least used to, as there was warning about manually editing the file, you need to make sure Arduino is not running...
I had a request via PM for an example of how to use the new Dynamic AudioConnection feature introduced in TD 1.57. I've done PR#441 for eventual inclusion in some future Teensyduino release, and have also attached it in this post. Do let me know if you think it can be improved (I'm sure it can...).
Yes - I sort of noticed that earlier as well. I know Paul did something to fix it for 1.57 proper but was not sure if it was something in like platfrom.txt or something within their build.
Yes - I sort of noticed that earlier as well. I know Paul did something to fix it for 1.57 proper but was not sure if it was something in like platfrom.txt or something within their build.
Good to know it is TSET and not just this system.
It is probably path inclusions of: "%LOCALAPPDATA%\Arduino15\..."
> in : ...\TSet\TSet.cmd2
> the same one that BREAKS when that folder fails to exist.