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

Thread: Reset makes micros disappear from 'pio device list' on Ubuntu

  1. #1
    Junior Member
    Join Date
    Nov 2021

    How to force teensy to connect as Teensyduino Serial not Teensy Halfkay Bootloader

    EDIT: After more research, I think the issue is that a Teensy is not natively a USB device, and will after being programmed or reset automatically connect in linux as a "Halfkay Bootloader" USB device however, in order to use it in the serial monitor, I need a way to reliably over command line reset it to Serial mode.

    Physically unplugging and replugging it sends it back into Serial mode, but I need a way to do this over the command line as I am remote sometimes.

    Using the GUI does this sometimes, but it's not reliable when using multiple Teensy's

    After plugging both my of Teensy 3.6 boards on Ubuntu they show as follows
    Click image for larger version. 

Name:	Screen Shot 2021-11-08 at 6.40.37 PM.jpg 
Views:	16 
Size:	65.2 KB 
ID:	26444
    However, after uploading and running 'pio device list' again, one of the boards is missing:
    Click image for larger version. 

Name:	Screen Shot 2021-11-08 at 6.42.49 PM.jpg 
Views:	17 
Size:	44.8 KB 
ID:	26445

    My Teensy's are the ACM0 and ACM1 Serial ports.

    Reseting them doesn't help, it actually makes them both disappear. But unplugging and replugging both them in makes them visible again.

    It seems like I need a way to soft refresh the serial ports in linux.
    Last edited by jwaters; 11-09-2021 at 04:32 AM.

  2. #2
    Junior Member
    Join Date
    Nov 2021
    After MUCH more research and pain, I found this thread to be helpful

    Install tycmd command from instructions here

    figure out which boards you have with

    tycmd list
    add 9665090-Teensy Teensy 3.6 (USB Serial)
    add 10253260-Teensy Teensy 3.6 (USB Serial)
    Where those numbers are serial numbers.

    in platformio.ini, add

    upload_command = tycmd upload -B $UPLOAD_PORT $SOURCE
    upload_port = 9665090-Teensy

    where upload port is the one from above you want to program to.

    To get the serial monitor for one of them, type

    tycmd reset -B 10253260 #if it won't open
    tycmd monitor -B 10253260

  3. #3
    Senior Member
    Join Date
    Jul 2014
    A general point
    There is no reset button on Teensy, but a program button that, indeed, removes Teensy from serial port and places Teensy into HID mode for programming.
    This is independent from Teensyduino, patformio, tycommander, etc.

Posting Permissions

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