Forum Rule: Always post complete source code & details to reproduce any issue!
-
Teensy linux command line code upload
We will have about ~150 teensies to manage. We will compile code, then distribute the code to the computers that host the teensy.
How can we load code on the teensy from the command line. The UI is not availble.
I saw arduino-cli, but I don't that it works with a teensy?
-
Senior Member
This is a command line uploader for Teensy:
https://www.pjrc.com/teensy/loader_cli.html
The cool thing with using Linux is that you can use the "-s" option, so you don't even need to press the program button.
-

Originally Posted by
brtaylor
The cool thing with using Linux is that you can use the "-s" option, so you don't even need to press the program button.
Depending on which Teensy it is; I've yet to get the "-s" option to work with a Teensy 4.1. The usage text does say it's just for the 3.x series, but I was hoping!
-
Senior Member+
TyCommander also has a command line version that may offer different or more usable command line parameters.
-
Senior Member
If I understand this correctly
There are many computers each having a connected teensy and they are headless linux-based?
-

Originally Posted by
manicksan
If I understand this correctly
There are many computers each having a connected teensy and they are headless linux-based?
Yes, we need to update the code on the Teensy via ansible. (https://www.ansible.com/)
Quick supplemental question:
The export sequence export two ex files,
project.ino.with_bootloader.yun.hex
project.ino.yun.hex
Which one do I want?
Last edited by JasonH; 12-04-2020 at 07:31 PM.
-
Senior Member

Originally Posted by
JasonH
Yes, we need to update the code on the Teensy via ansible. (
https://www.ansible.com/)
Quick supplemental question:
The export sequence export two ex files,
project.ino.with_bootloader.yun.hex
project.ino.yun.hex
Which one do I want?
Neither, since it's not built for Teensy. Try selecting the Teensy board, you'll only get one hex file.
-

Originally Posted by
brtaylor
Neither, since it's not built for Teensy. Try selecting the Teensy board, you'll only get one hex file.
Excellent catch! I loaded the normal Arduino IDE by mistake. Thank you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules