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

Thread: Select from multiple Teensies for updating?

  1. #1
    Senior Member
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    148

    Select from multiple Teensies for updating?

    Apologies in advance if this is a FAQ, I couldn't find the answer elsewhere.

    I'm doing Teensyduino development on two projects, one Teensy 2.0 and the other 3.1. Both are connected to the same Mac.

    How can select which Teensy to update when uploading from the Teensy Loader? It seems I need to only have one connected to reliably have the Loader update the Teensy that I'm targeting.

    I'd be happy to disable auto-updating and have to push the hardware button in order to update the specific Teensy, but I can't see an option for this anywhere...

    Any suggestions?

  2. #2
    I'm using Windows so hopefully this also applies to Mac. I have two Teensy's hooked up to two separate USB ports. To update a given Teensy, I point the bootloader (teensy.exe) to the appropriate .hex file (drag the file onto the bootloader window works) and then press the button on the appropriate Teensy. Downloads to whichever part had the button pressed.

    Not quite as nice as auto-update, but very workable.

    Using C++ so both are called main.hex, so the easy way to tell which the bootloader is pointing to is by looking at the size. Have two directory windows open, drag the appropriate .hex file to the loader window and press the button.

    -TLB

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,672
    from the IDE you select VERIFY

    That activates TeensyDuino with the path to the compiled result

    Pushing the button on a Teensy provokes TeensyDuino to upload to that device.

    I expect using the teensy exe to load a hex would follow through the same way

  4. #4
    Senior Member
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    148
    Ah, thanks defragster! It makes sense now.

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,546
    Yup, Verify and press the button is the best way.

    The Upload tries to automatically reboot the first Teensy it finds. Which one it finds first depends on complex factors within each operating system, which might as well be random.

Posting Permissions

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