Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 14 of 14

Thread: Teensyduino 1.57 Beta #3

  1. #1
    Administrator Paul's Avatar
    Join Date
    Oct 2012
    Posts
    430

    Teensyduino 1.57 Beta #3

    Here is a third beta test for Teensyduino 1.57.


    Linux 32 bit:
    https://www.pjrc.com/teensy/td_157-b...nstall.linux32

    Linux 64 bit:
    https://www.pjrc.com/teensy/td_157-b...nstall.linux64

    Linux ARM:
    https://www.pjrc.com/teensy/td_157-b...stall.linuxarm

    Linux ARM64:
    https://www.pjrc.com/teensy/td_157-b...l.linuxaarch64

    MacOS - Catalina to Monterey
    https://www.pjrc.com/teensy/td_157-b...S_Catalina.zip

    Old MacOS - Lion to Mojave
    https://www.pjrc.com/teensy/td_157-b...inoInstall.dmg

    Windows:
    https://www.pjrc.com/teensy/td_157-b...inoInstall.exe

    Arduino IDE 2.0.0-rc7 (all systems, as version 1.56.53):
    https://www.pjrc.com/teensy/td_156/p...nsy_index.json



    Changes since Teensyduino 1.56-beta2:

    Improve Wire slave mode on Teensy 4
    Fix for Arduino CLI & IDE 2.0 packages messing up Teensy on Arduino 1.8.x.
    Support headless compile (but not yet upload) on Arduino CLI
    Add Serial+MTP USB Type
    Add function descriptions for Arduino IDE 2.0.0-rc7
    SD, Ethernet, LiquidCrystal override Arduino 2.0.0-rc7 builtin libs (KurtE, PerT)
    Audio TDM examples
    Audio S/PDIF fixes on Teensy 4 (Jonathan Oakley)

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    10,565
    Installed on W10 both 1.8.19 and IDE.

    Works. Not sure serial + mtp was added to boards.txt for 3.x

    Edit confirmed that:

    Code:
    teensy41.menu.usb.serialmtp=Serial + MTP Disk (Experimental)
    teensy41.menu.usb.serialmtp.build.usbtype=USB_MTPDISK_SERIAL
    USB Type was not added to T3.x... should be something like::
    Code:
    teensy36.menu.usb.mtp=MTP Disk (Experimental)
    teensy36.menu.usb.mtp.build.usbtype=USB_MTPDISK
    teensy36.menu.usb.serialmtp=Serial + MTP Disk (Experimental)
    teensy36.menu.usb.serialmtp.build.usbtype=USB_MTPDISK_SERIAL
    Code
    Did confirm I could build for T3.6 with this code as I had the following in local.boards.txt
    Code:
    #Beta 2 added MTP + Serial for t4.x
    #teensy41.menu.usb.serialmtp=MTP Disk Serial (Experimental)
    #teensy41.menu.usb.serialmtp.build.usbtype=USB_MTPDISK_SERIAL
    
    #teensyMM.menu.usb.serialmtp=MTP Disk Serial (Experimental)
    #teensyMM.menu.usb.serialmtp.build.usbtype=USB_MTPDISK_SERIAL
    
    #teensy40.menu.usb.serialmtp=MTP Disk Serial (Experimental)
    #teensy40.menu.usb.serialmtp.build.usbtype=USB_MTPDISK_SERIAL
    
    teensy36.menu.usb.serialmtp=MTP Disk SERIAL (Experimental)
    teensy36.menu.usb.serialmtp.build.usbtype=USB_MTPDISK_SERIAL
    
    teensy35.menu.usb.serialmtp=MTP Disk SERIAL (Experimental)
    teensy35.menu.usb.serialmtp.build.usbtype=USB_MTPDISK_SERIAL
    
    teensy31.menu.usb.serialmtp=MTP Disk SERIAL (Experimental)
    teensy31.menu.usb.serialmtp.build.usbtype=USB_MTPDISK_SERIAL
    teensy31.menu.speed.144=144 MHz (overclock)
    Last edited by KurtE; 06-13-2022 at 01:00 AM.

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    16,028
    win10 laptop unzipped ide 2.0.rc7, added board mgr link p#1
    Installed the Teensy boards

    Opened example BlinkWithoutDelay and selected board T_4.1 and did Verify with no Teensy connected, maybe missed error popup that fades.

    Saw error after other changes to opened IDE 2.0 - so opened BlinkWithoutDelay, exited and saved to start fresh with it open.

    Built that example got Error:
    Error: Request compile failed with message: Compilation error: exec: "C:\Users\Tim\AppData\Local\Arduino15\packages\tee nsy\tools\teensy-tools\1.56.53/teensy_secure": file does not exist


    Here are the contents of that directory - that exe is missing:
    Code:
     Directory of C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.56.53
    
    06/12/2022  10:35 PM    <DIR>          .
    06/12/2022  10:35 PM    <DIR>          ..
    06/12/2022  10:32 PM            25,088 mktinyfat.exe
    06/12/2022  10:32 PM            17,920 precompile_helper.exe
    06/12/2022  10:32 PM            12,800 stdout_redirect.exe
    06/12/2022  10:32 PM            10,256 T4Security.jar
    06/12/2022  10:32 PM         4,483,816 teensy.exe
    06/12/2022  10:32 PM            16,384 teensy_gateway.exe
    06/12/2022  10:32 PM            43,520 teensy_ports.exe
    06/12/2022  10:32 PM            26,624 teensy_post_compile.exe
    06/12/2022  10:32 PM            46,592 teensy_reboot.exe
    06/12/2022  10:32 PM            13,312 teensy_restart.exe
    06/12/2022  10:32 PM            47,104 teensy_serialmon.exe
    06/12/2022  10:32 PM            69,632 teensy_size.exe

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    26,404
    Quote Originally Posted by KurtE View Post
    Not sure serial + mtp was added to boards.txt for 3.x
    Yup, I forgot to add them to boards.txt.

    Edited my copy just now, so they'll be in 1.57-beta4.



    Quote Originally Posted by defragster View Post
    Here are the contents of that directory - that exe is missing:
    Code:
     Directory of C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\1.56.53
    
    06/12/2022  10:35 PM    <DIR>          .
    06/12/2022  10:35 PM    <DIR>          ..
    06/12/2022  10:32 PM            25,088 mktinyfat.exe
    06/12/2022  10:32 PM            17,920 precompile_helper.exe
    06/12/2022  10:32 PM            12,800 stdout_redirect.exe
    06/12/2022  10:32 PM            10,256 T4Security.jar
    06/12/2022  10:32 PM         4,483,816 teensy.exe
    06/12/2022  10:32 PM            16,384 teensy_gateway.exe
    06/12/2022  10:32 PM            43,520 teensy_ports.exe
    06/12/2022  10:32 PM            26,624 teensy_post_compile.exe
    06/12/2022  10:32 PM            46,592 teensy_reboot.exe
    06/12/2022  10:32 PM            13,312 teensy_restart.exe
    06/12/2022  10:32 PM            47,104 teensy_serialmon.exe
    06/12/2022  10:32 PM            69,632 teensy_size.exe
    That is very strange. Maybe it was eaten by Windows Defender?

    This is the file Arduino downloaded to install the files in that directory.

    https://www.pjrc.com/teensy/td_157-b...indows.tar.bz2

    You can see teensy_secure.exe is inside that archive together with the others. It's not published as a separate file. Arduino can only download it by fetching that archive which has all the files that are supposed to be in that directory. How you could end up without 1 of the files when they're all downloaded as a group in a single archive is a mystery to me.

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    16,028
    Quote Originally Posted by PaulStoffregen View Post
    ...
    That is very strange. Maybe it was eaten by Windows Defender?

    This is the file Arduino downloaded to install the files in that directory.

    https://www.pjrc.com/teensy/td_157-b...indows.tar.bz2

    You can see teensy_secure.exe is inside that archive together with the others. It's not published as a separate file. Arduino can only download it by fetching that archive which has all the files that are supposed to be in that directory. How you could end up without 1 of the files when they're all downloaded as a group in a single archive is a mystery to me.
    Strange indeed ... Win 11 Desktop and Win 10 laptop both downloaded that .tar. and extracted tools folder.

    Indeed that teensy_secure.exe is present on both, and is executable as extracted. So nothing seems to be interfering when doing it manually using 7-Zip for access?

  6. #6
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,240
    Good Morning all
    Finally got the PI4 updated and operational last night or rather early this morning and started playing with IDE2.0. The PI4 is running Ubuntu-MATE-20.04 to start and the desktop is fairly windows like.

    So ran my mtp-integrity-sketch to see how MTP was behaving on the PI4. Interesting how it shows it self in Ubuntu Mate.

    first connects to the T4 disks faster than windows and shows as a device (phone) on the desktop.
    Click image for larger version. 

Name:	Screenshot at 2022-06-13 06-49-58.png 
Views:	15 
Size:	119.1 KB 
ID:	28670

    when I open the device:
    Click image for larger version. 

Name:	Screenshot at 2022-06-13 06-27-41.png 
Views:	9 
Size:	223.2 KB 
ID:	28671
    Did a right click on the QSPI disk and checked its properties and looks it gets the number of items on the disk right but free space shows as zero and the total bytes is strange

    Now I guess I will see if I can get the too talking to each other

  7. #7
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    8,240
    Installing on windows now.

    First update of Arduino 2rc7:
    • the board manager shows that 1.56.1 is installed and shows the dropdown for the new install version of 1.56.53???? Any reason for the 53 vs 3 - not an issue just curious.
    • Interesting side note though is that in my windows setup it shows the Teensy SD library in the examples under T4.1, with the PI SD for Teensy does not show.
    • Did check to see if teensy_secure.exe was in the tools directory and it was


    Install for 1.8.19 went smoothly - no issues.

  8. #8
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    26,404
    Quote Originally Posted by mjs513 View Post
    ... new install version of 1.56.53???? Any reason for the 53 vs 3 - not an issue just curious.
    Short answer is it's pretty much an arbitrary choice on my part.

    Arduino's version numbers are meant to follow a convention called semantic versioning. According to the official spec, at least as I understand it, this should probably be called "1.57.0-beta.3". Whether Arduino's Boards Manager supports beta suffix, and how well, I don't know. Rather than spend time exploring this, I just added 50 and made the minor version 56, so it'll sort properly on a list using only the 3 numbers.

  9. #9
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    16,028
    Quote Originally Posted by PaulStoffregen View Post
    ...
    That is very strange. Maybe it was eaten by Windows Defender?

    This is the file Arduino downloaded to install the files in that directory.
    ...
    Back to this laptop - opened IDE 2
    In board Mgr selected The Teensy 1.56.1 marked installed

    Clicked INSTALL and it proceeded to reinstall:
    Code:
    ...
    Upgrading platform teensy:avr@1.56.53 with teensy:avr@1.56.1
    Uninstalling teensy:teensy-tools@1.56.53, tool is no more required
    Tool teensy:teensy-tools@1.56.53 uninstalled
    Configuring platform.
    Platform teensy:avr@1.56.1 installed
    When it was complete this time there is a: "C:\Users\Tim\AppData\Local\Arduino15\packages\tee nsy\tools\teensy-tools\1.56.1\teensy_secure.exe"

    Not sure anything changed with WINDOWS on the computer since last install to not 'reject' the file ... seems like the IDE installer may have just made a misstep?

  10. #10
    I'm trying this on Ubuntu but for some reason it's giving me this:

    Checking Arduino 1.8.13:
    version: "lib/version.txt" file missing
    Does not match Arduino 1.8.13.

    And it repeats this for all versions...

    Mind you I tried a 1.8.19 install and then a 2.1 using the corresponding Teensyduino installers. Still the same error. I tried as sudo too. Nothing.

    Any help would be appreciated!
    Thanks!

  11. #11
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    10,565
    Quote Originally Posted by teensyweensyz View Post
    I'm trying this on Ubuntu but for some reason it's giving me this:

    Checking Arduino 1.8.13:
    version: "lib/version.txt" file missing
    Does not match Arduino 1.8.13.

    And it repeats this for all versions...

    Mind you I tried a 1.8.19 install and then a 2.1 using the corresponding Teensyduino installers. Still the same error. I tried as sudo too. Nothing.

    Any help would be appreciated!
    Thanks!
    How did you install the Arduino? Did you download from arduino.cc?
    As mentioned in the download and install instructions: https://www.pjrc.com/teensy/td_download.html
    Note: Arduino from Linux distro packages is not supported.
    Good luck.

  12. #12
    Quote Originally Posted by KurtE View Post
    How did you install the Arduino? Did you download from arduino.cc?
    As mentioned in the download and install instructions: https://www.pjrc.com/teensy/td_download.html


    Good luck.
    I solved it. But what threw me off was having to select the manually downloaded folder in ~/Downloads and not whatever was in /usr/ or anywhere else. I noticed a few people online making this same error. Thank you for the reply!

  13. #13
    Senior Member
    Join Date
    Dec 2015
    Location
    LA
    Posts
    243
    Installed ok on Mac Catalina 10.15.7
    Still haven't managed to crash the serial monitor with b1 or b3. Skipped b2.

    FYI on another minor issue:
    With 1.57b1 I often got a situation when uploading a program where if Teensy loader window was behind the Arduino terminal window the upload wouldn't happen and Arduino would show on the bottom left 'Uploading...' (forever? but still responsive). Then if I moved the terminal window to expose Teensy loader it would magically start loading. Had never seen that before, maybe a macOS background issue. I was trying to reliably reproduce this problem so I could report it, but couldn't. Some sessions it would happen nearly every time others not so much. I think I ruled out the program I was loading or the one running on the Teensy. Did seem to happen more with 4.1 than 3.2 and maybe more with a lot of apps running.

    So far with 1.57b3 I haven't been able to get this to happen. so yah! It was a minor issue anyway but you never know.

  14. #14
    Senior Member
    Join Date
    Oct 2019
    Posts
    292
    Quote Originally Posted by bicycleguy View Post
    FYI on another minor issue:
    With 1.57b1 I often got a situation when uploading a program where if Teensy loader window was behind the Arduino terminal window the upload wouldn't happen and Arduino would show on the bottom left 'Uploading...' (forever? but still responsive). Then if I moved the terminal window to expose Teensy loader it would magically start loading. Had never seen that before, maybe a macOS background issue. I was trying to reliably reproduce this problem so I could report it, but couldn't. Some sessions it would happen nearly every time others not so much. I think I ruled out the program I was loading or the one running on the Teensy. Did seem to happen more with 4.1 than 3.2 and maybe more with a lot of apps running.
    This happens to me on TD1.56 on both a 2016 Macbook Pro and a 2020 M1 both with the latest Mac OS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •