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

Thread: Teensy linux command line code upload

  1. #1

    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?

  2. #2
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    626
    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.

  3. #3
    Member
    Join Date
    Oct 2019
    Location
    Calgary
    Posts
    93
    Quote Originally Posted by brtaylor View Post
    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!

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,495
    TyCommander also has a command line version that may offer different or more usable command line parameters.

  5. #5
    Senior Member manicksan's Avatar
    Join Date
    Jun 2020
    Location
    Sweden
    Posts
    228
    If I understand this correctly
    There are many computers each having a connected teensy and they are headless linux-based?

  6. #6
    Quote Originally Posted by manicksan View Post
    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.

  7. #7
    Senior Member brtaylor's Avatar
    Join Date
    Mar 2016
    Location
    Portland, OR
    Posts
    626
    Quote Originally Posted by JasonH View Post
    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.

  8. #8
    Quote Originally Posted by brtaylor View Post
    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
  •