Teensy-Cli does not have Teensy 4.0

Recently downloaded teensy cli with a apt-get. Says I have
Code:
version 2.1-1
Screenshot from 2024-06-06 14-26-29.png


When I perform the following i get the following error:

Code:
teensy_loader_cli --mcu=TEENSY40 -s -v V1.0.0_master.hex

Unknown MCU type "TEENSY40"
Supported MCUs are:
 - at90usb162
 - atmega32u4
 - at90usb646
 - at90usb1286
 - mkl26z64
 - mk20dx128
 - mk20dx256
 - mk66fx1m0
 - mk64fx512
 - TEENSY2
 - TEENSY2PP
 - TEENSYLC
 - TEENSY30
 - TEENSY31
 - TEENSY35
 - TEENSY36

According to the PJRC website says that this version should support teensy 4.0.

What am i missing here? Appreciate all the help in advance :)
 
Not sure where you may be getting that outdated version of teensy_loader_cli, but the latest (2.3) is available from <here> . . .

Mark J Culross
KD5RXT
 
Thank you Mark. Was pulling this as a package with
Apache config:
apt-get install teensy-loader-cli

Haven't delved into compiling the source that you sent. How does one do that? Find the documentation Paul mentioned in the repo missing a few things for the newbie like me.

Any ideas why this may not have made it to the latest for apt?
 
Thank you Mark. Was pulling this as a package with
Apache config:
apt-get install teensy-loader-cli

Haven't delved into compiling the source that you sent. How does one do that? Find the documentation Paul mentioned in the repo missing a few things for the newbie like me.

Any ideas why this may not have made it to the latest for apt?

If you do end up having to compile it, I'm going to shamelessly advocate you use the version I modified: https://github.com/collin80/teensy_loader_cli

Why? Because I have confirmed support for all the newer versions (4, 4.1, MM), added more of the USB ids for things like dual and triple serial, added soft reboot for linux and Windows, and increased timeouts to better support large programs. Note that quite a bit of these changes were actually either suggested or done by other people and I just balled it all up and checked it into GitHub. So, it wasn't really my doing for the most part. But, it is the most functionally complete version of teensy-loader-cli that I'm aware of.

It all compiles just the same as the official version. If you are compiling for Windows it's irritating. You have to install some form of GCC, be that MinGW or Cygwin. Then you get to install all sorts of packages and bash your head into a wall until you find all the pieces needed to get it to compile. I've done that and have binaries for Windows, Linux, and MacOS but the MacOS version still doesn't support soft reboot. But, compiling for linux actually is much easier by comparison. You probably need build-essential and libusb-dev or something like that but it isn't tough. Compiling on Windows is like getting a root canal.

As for why it hasn't made it to the apt? Well, linux packages largely rely on volunteers. If nobody updates the package it just plain doesn't get updated. Take me for instance, I use Ubuntu. Ubuntu uses apt so presumably I could run the same command as you. That means if I were so inclined I could probably compile it up, figure out how to package as an apt, figure out if the maintainer is still alive, give them the package I made, see if they will update, see if I have to be the maintainer instead, etc, etc. Or I can compile it myself and move on with life. Guess which happened? Now, project that to everyone else. Maybe nobody has bothered to update the Ubuntu repos because they just don't feel like it. That's one of the dark sides of open source.
 
Back
Top