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

Thread: PlatformIO reboot issue when multiple boards connected using teensy-cli.

  1. #1
    Junior Member
    Join Date
    Oct 2018
    Posts
    6

    PlatformIO reboot issue when multiple boards connected using teensy-cli.

    TLDR: Ubuntu, Visual Studio Code, PlatformIO extension and multiple Teensy (3.6) connected. When uploading the program to one Teensy (let's call it #1 on /dev/ttyACM1 port) with teensy-cli the second one (let's call it #2 on /dev/ttyACM0 port) is switched to bootloader mode along with #1. However, #1 is performing reset but #2 (this one, that is not actually programmed) isn't.

    Explanation: In my platformio.ini file I have:
    Code:
    platform = teensy
    board = teensy36
    board_build.f_cpu = 240000000L
    
    framework = arduino
    
    upload_protocol = teensy-cli
    upload_port = /dev/ttyACM1
    When switched the upload_protocol to teensy-gui the upload_port settings is completely omitted.

    The only way (that I found to work with upload_port settings) is to use teensy-cli, then the upload_port settings seem to work properly. But the Teensy Loader must be quit (when it was previously opened, if it is opened the tycommander says after all that board is missing).

    However after uploading, the teensy tools (I think), all boards besides that one which is programmed are turned into bootloader mode (that's saying the tycommander from Karomix). So I have to use tycommander and click Reset which is not very efficient.

    Is this a known issue or is there any workaround?

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,986
    I've found using the TyCommander by koromix to be the general solution. It does uploading by Serial# and targets a specific device. Works from Arduino IDE and the VisualTeensy extension code by luni for VSCode. If you find that thread maybe the needed mods can be implemented. TyCommander replaces use of TeensyLoader (cli or gui) and prompts for one (or more with -multi) Teensy unit(s) to associate to the code for upload. Provides a great SerMon interface and the RESET other GUI elements you may have seen.

    With TeensyDuino 1.42 or later the Arduino IDE has a way to tell the TeensyLoader GUI to target a specific device - but IIRC may still get confused if another online Teensy is in bootloader requiring reset as above. With no active TeensyLoader TyComm handles all of this well.

  3. #3
    Junior Member
    Join Date
    Oct 2018
    Posts
    6
    OK, I thought my way is working (and only reset is needed), but I was wrong. On teensy-cli it goes randomly as on teensy-gui. For the sake of clarity, the problem is related to Teensy's tools, not PlatformIO. Am I right?

    I need to peek on https://forum.pjrc.com/threads/53604...alCode-(Win10) luni solution.

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,986
    Quote Originally Posted by Matthew View Post
    OK, I thought my way is working (and only reset is needed), but I was wrong. On teensy-cli it goes randomly as on teensy-gui. For the sake of clarity, the problem is related to Teensy's tools, not PlatformIO. Am I right?

    I need to peek on https://forum.pjrc.com/threads/53604...alCode-(Win10) luni solution.
    Yep - and that is the thread.

Posting Permissions

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