Teensy 4.1 no longer connecting to PC

Status
Not open for further replies.

zamandguth

New member
Hello,
I recently purchased a genuine Teensy 4.1 from PJRC, I have been using it quite a bit on my current project, but it occasionally disconnects, only to reconnect later, no worries.
However, this time it is not connecting again and I have no idea why, here's some info that may help
-x64 Windows 8.1 laptop (with no antivirus)
-Arduino v1.8.13, Teensy loader v1.53
-Brand new microUSB cable
-Uploading a basic sketch, such as the Blink example, will result in the following:
"No Teensy boards were found on any USB ports of your computer.
Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch."
It will also sometimes say:
"error sending reboot command (HID)"
-Pressing the program button WILL upload the sketch to the Teensy and I can see the Teensy loader app change and do stuff, however I have no way to view anything through the Arduino serial monitor.
-Nothing is detected in device manager and I cannot select a port in the Arduino IDE.
-The verbose info can be see below: Any help would be greatly appreciated.

Code:
20:55:36.788 (post_compile 1): Begin, version=1.53, high-res time
20:55:36.914 (loader): Teensy Loader 1.53, begin program
20:55:36.963 (loader): File "Blink.ino.hex". 15540 bytes, 0% used
20:55:36.970 (loader): Listening for remote control on port 3149
20:55:36.970 (loader): initialized, showing main window
20:55:37.043 (loader): remote connection 776 opened
20:55:37.043 (loader): remote cmd from 776: "comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)"
20:55:37.044 (post_compile 1): Sending command: comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)
20:55:37.044 (loader): remote cmd from 776: "status"
20:55:37.046 (loader): HID/win32:  vid:0001 pid:0001 ver:0001
20:55:37.047 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, Blink.ino.hex
20:55:37.047 (post_compile 1): Sending command: dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\
20:55:37.047 (loader): remote cmd from 776: "dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\"
20:55:37.047 (loader): remote cmd from 776: "file:Blink.ino.hex"
20:55:37.047 (post_compile 1): Sending command: file:Blink.ino.hex
20:55:37.057 (loader): File "Blink.ino.hex". 15540 bytes, 0% used
20:55:37.060 (loader): remote cmd from 776: "status"
20:55:37.062 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, Blink.ino.hex
20:55:37.062 (post_compile 1): Sending command: auto:on
20:55:37.062 (loader): remote cmd from 776: "auto:on"
20:55:37.062 (post_compile 1): Disconnect
20:55:37.073 (loader): remote connection 776 closed
20:55:40.584 (loader): Verbose Info event
20:55:46.921 (post_compile 2): Begin, version=1.53, high-res time
20:55:46.922 (loader): remote connection 788 opened
20:55:46.924 (loader): remote cmd from 788: "comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)"
20:55:46.925 (post_compile 2): Sending command: comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)
20:55:46.927 (loader): remote cmd from 788: "status"
20:55:46.931 (loader): file changed
20:55:46.947 (loader): File "Blink.ino.hex". 15540 bytes, 0% used
20:55:46.951 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, Blink.ino.hex
20:55:46.951 (post_compile 2): Sending command: dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\
20:55:46.953 (loader): remote cmd from 788: "dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\"
20:55:46.956 (loader): remote cmd from 788: "file:Blink.ino.hex"
20:55:46.956 (post_compile 2): Sending command: file:Blink.ino.hex
20:55:46.969 (loader): File "Blink.ino.hex". 15540 bytes, 0% used
20:55:46.975 (loader): remote cmd from 788: "status"
20:55:46.979 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, Blink.ino.hex
20:55:46.979 (post_compile 2): Disconnect
20:55:46.989 (loader): remote connection 788 closed
20:55:47.034 (post_compile 3): Begin, version=1.53, high-res time
20:55:47.034 (loader): remote connection 788 opened
20:55:47.038 (post_compile 3): Sending command: comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)
20:55:47.038 (loader): remote cmd from 788: "comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)"
20:55:47.040 (loader): remote cmd from 788: "status"
20:55:47.043 (loader): remote cmd from 788: "dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\"
20:55:47.044 (post_compile 3): Status: 1, 1, 0, 0, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, Blink.ino.hex
20:55:47.044 (post_compile 3): Sending command: dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\
20:55:47.046 (loader): remote cmd from 788: "file:Blink.ino.hex"
20:55:47.047 (post_compile 3): Sending command: file:Blink.ino.hex
20:55:47.059 (loader): File "Blink.ino.hex". 15540 bytes, 0% used
20:55:47.066 (loader): remote cmd from 788: "status"
20:55:47.070 (post_compile 3): Status: 1, 1, 0, 0, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, Blink.ino.hex
20:55:47.070 (post_compile 3): Disconnect
20:55:47.080 (loader): remote connection 788 closed
20:55:47.080 (post_compile 4): Running teensy_reboot: "C:\Program Files (x86)\Arduino\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=usb:0/140000/0/1" "-portlabel=(null)" "-portprotocol=(null)"
20:55:47.085 (loader): remote connection 788 opened
20:55:47.096 (reboot 5): Begin, version=1.53, high-res time
20:55:47.096 (reboot 5): location = usb:0/140000/0/1
20:55:47.096 (reboot 5): portlabel = (null)
20:55:47.096 (reboot 5): portprotocol = (null)
20:55:47.096 (reboot 5): LoadLibrary cfgmgr32 ok
20:55:47.096 (reboot 5): LoadLibrary ntdll ok
20:55:47.097 (reboot 5): nothing new, skipping HID & Ports enum
20:55:47.098 (loader): remote connection 852 opened
20:55:47.102 (reboot 5): Disconnect
20:55:47.113 (loader): remote connection 852 closed
20:55:47.118 (loader): remote connection 788 closed
 
This logfile has no "ports" events! Maybe anti-virus software is blocking or has deleted teensy_ports.exe? Normally it's supposed to be installed in C:\Program Files (x86)\Arduino\hardware\tools.

When you start Arduino, an instance of teensy_ports is supposed to launch and keep running automatically in the background. You should be able to see it in the Task Manager. The teensy_ports.exe program is responsible for detecting the arrival and removal of Teensy USB devices. If that's missing, everything should still work but the Ports menu won't show Teensy and you can't select it in Arduino.

I have no idea why, but my best guess is your install of Teensyduino is incomplete or corrupted. We see this sort of thing all the time on Windows system, where lame anti-virus software deletes or disables some files and gives you little or no way to know what it's actually done. It could also be malware, but usually anti-malware is the bigger problem.
 
Hey Paul,
Thanks for getting back to me. I have no anti-virus software on this machine, just Windows Firewall which is disabled, I have also added an exception for teensy.exe and teensy_ports.exe, to no effect.
The teensy_ports.exe file is still there, and when Arduino starts up there is an instance of it running, closing Arduino also ends the process.
I just reinstalled Teensyduino and below is the first verbose info after the re-install, what do you think? Note; I am seeing 'ports' in the first few lines of the log.
The bottom right corner of the Arduino IDE (where it would say COM7 or whatever) says "Fastest on usb:0/140000/0/1".
Like you said, theres no option to change the port either, it's fully greyed out.
Could this possibly be related?

Code:
23:32:30.082 (ports 2): Begin, version=1.53, high-res time
23:32:30.082 (ports 2): LoadLibrary cfgmgr32 ok
23:32:30.082 (ports 2): LoadLibrary ntdll ok
23:32:30.085 (ports 2): callback 0024
23:32:30.085 (ports 2): callback 0081
23:32:30.086 (ports 2): callback 0083
23:32:30.087 (ports 2): hWnd = 197840
23:32:30.090 (ports 2): nothing new, skipping HID & Ports enum
23:33:05.108 (post_compile 1): Begin, version=1.53, high-res time
23:33:05.256 (loader): Teensy Loader 1.53, begin program
23:33:05.313 (loader): File "AccelStepperTest.ino.hex". 24020 bytes, 0% used
23:33:05.322 (loader): Listening for remote control on port 3149
23:33:05.322 (loader): initialized, showing main window
23:33:05.369 (loader): remote connection 772 opened
23:33:05.370 (loader): remote cmd from 772: "comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)"
23:33:05.370 (loader): remote cmd from 772: "status"
23:33:05.370 (post_compile 1): Sending command: comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)
23:33:05.372 (loader): HID/win32:  vid:0001 pid:0001 ver:0001
23:33:05.372 (loader): remote cmd from 772: "dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\"
23:33:05.373 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, AccelStepperTest.ino.hex
23:33:05.373 (post_compile 1): Sending command: dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\
23:33:05.373 (loader): remote cmd from 772: "file:AccelStepperTest.ino.hex"
23:33:05.373 (post_compile 1): Sending command: file:AccelStepperTest.ino.hex
23:33:05.390 (loader): File "AccelStepperTest.ino.hex". 24020 bytes, 0% used
23:33:05.394 (loader): remote cmd from 772: "status"
23:33:05.396 (loader): remote cmd from 772: "auto:on"
23:33:05.397 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, AccelStepperTest.ino.hex
23:33:05.397 (post_compile 1): Sending command: auto:on
23:33:05.398 (post_compile 1): Disconnect
23:33:05.408 (loader): remote connection 772 closed
23:33:10.698 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
23:33:10.698 (loader): remote connection 784 opened
23:33:10.700 (ports 2): nothing new, skipping HID & Ports enum
23:33:11.046 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
23:33:11.047 (ports 2): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000c6a5a#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
23:33:11.047 (ports 2): found_usb_device, loc=usb:0/140000/0/1    Port_#0001.Hub_#0002
23:33:11.047 (ports 2): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
23:33:11.047 (ports 2): found_usb_device, devinst=00000003
23:33:11.047 (ports 2): add: loc=usb:0/140000/0/1, class=HID, vid=16C0, pid=0478, ver=0105, serial=000c6a5a, dev=\\?\usb#vid_16c0&pid_0478#000c6a5a#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
23:33:11.047 (ports 2): hiddev_from_devinst_list: iface=0
23:33:11.047 (ports 2): found_usb_device complete
23:33:11.047 (ports 2): hid, found devinst=00000007
23:33:11.047 (ports 2): hid, path=\\?\hid#vid_16c0&pid_0478#6&2cde993f&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
23:33:11.047 (ports 2): hid,  opened handle
23:33:11.047 (ports 2):  devinst=00000007, location=usb:0/140000/0/1
23:33:11.047 (ports 2):  vid=16C0, pid=0478, ver=0105, usepage=FF9C, use=0025
23:33:11.047 (ports 2):  devpath=\\?\hid#vid_16c0&pid_0478#6&2cde993f&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
23:33:11.048 (ports 2): usb_add: usb:0/140000/0/1  hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader
23:33:11.060 (loader): Device came online, code_size = 8126464
23:33:11.060 (loader): Board is: Teensy 4.1 (IMXRT1062), version 1.05
23:33:11.073 (loader): File "AccelStepperTest.ino.hex". 24020 bytes, 0% used
23:33:11.074 (loader): set background IMG_ONLINE
23:33:11.090 (loader): File "AccelStepperTest.ino.hex". 24020 bytes, 0% used
23:33:11.091 (loader): elf appears to be for Teensy 4.1 (IMXRT1062) (8126464 bytes)
23:33:11.092 (loader): elf binary data matches hex file
23:33:11.092 (loader): elf file is for Teensy 4.1 (IMXRT1062)
23:33:11.092 (loader): begin operation
23:33:11.107 (loader): flash, block=0, bs=1024, auto=1
23:33:11.108 (loader):  gauge old value = 0
23:33:11.108 (loader): flash, block=1, bs=1024, auto=1
23:33:11.331 (loader):  gauge old value = 1
23:33:11.332 (loader): flash, block=2, bs=1024, auto=1
23:33:11.332 (loader):  gauge old value = 2
23:33:11.333 (loader): flash, block=3, bs=1024, auto=1
23:33:11.333 (loader):  gauge old value = 3
23:33:11.334 (loader): flash, block=4, bs=1024, auto=1
23:33:11.334 (loader):  gauge old value = 4
23:33:11.345 (loader): flash, block=5, bs=1024, auto=1
23:33:11.346 (loader):  gauge old value = 5
23:33:11.350 (loader): flash, block=6, bs=1024, auto=1
23:33:11.350 (loader):  gauge old value = 6
23:33:11.352 (loader): flash, block=7, bs=1024, auto=1
23:33:11.352 (loader):  gauge old value = 7
23:33:11.352 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
23:33:11.354 (ports 2): nothing new, skipping HID & Ports enum
23:33:11.354 (loader): flash, block=8, bs=1024, auto=1
23:33:11.355 (loader):  gauge old value = 8
23:33:11.358 (loader): flash, block=9, bs=1024, auto=1
23:33:11.358 (loader):  gauge old value = 9
23:33:11.361 (loader): flash, block=10, bs=1024, auto=1
23:33:11.361 (loader):  gauge old value = 10
23:33:11.362 (loader): flash, block=11, bs=1024, auto=1
23:33:11.362 (loader):  gauge old value = 11
23:33:11.364 (loader): flash, block=12, bs=1024, auto=1
23:33:11.364 (loader):  gauge old value = 12
23:33:11.365 (loader): flash, block=13, bs=1024, auto=1
23:33:11.365 (loader):  gauge old value = 13
23:33:11.367 (loader): flash, block=14, bs=1024, auto=1
23:33:11.367 (loader):  gauge old value = 14
23:33:11.369 (loader): flash, block=15, bs=1024, auto=1
23:33:11.369 (loader):  gauge old value = 15
23:33:11.371 (loader): flash, block=16, bs=1024, auto=1
23:33:11.371 (loader):  gauge old value = 16
23:33:11.373 (loader): flash, block=17, bs=1024, auto=1
23:33:11.373 (loader):  gauge old value = 17
23:33:11.375 (loader): flash, block=18, bs=1024, auto=1
23:33:11.375 (loader):  gauge old value = 18
23:33:11.376 (loader): flash, block=19, bs=1024, auto=1
23:33:11.377 (loader):  gauge old value = 19
23:33:11.378 (loader): flash, block=20, bs=1024, auto=1
23:33:11.378 (loader):  gauge old value = 20
23:33:11.380 (loader): flash, block=21, bs=1024, auto=1
23:33:11.380 (loader):  gauge old value = 21
23:33:11.381 (loader): flash, block=22, bs=1024, auto=1
23:33:11.382 (loader):  gauge old value = 22
23:33:11.383 (loader): flash, block=23, bs=1024, auto=1
23:33:11.383 (loader):  gauge old value = 23
23:33:11.392 (loader): sending reboot
23:33:11.392 (loader): begin wait_until_offline
23:33:11.396 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
23:33:11.396 (ports 2): remove: loc=usb:0/140000/0/1
23:33:11.396 (ports 2): usb_remove: usb:0/140000/0/1
23:33:11.396 (ports 2): nothing new, skipping HID & Ports enum
23:33:11.443 (loader): offline, waited 1
23:33:11.443 (loader): end operation, total time = 0.351 seconds
23:33:11.444 (loader): set background IMG_REBOOT_OK
23:33:11.447 (loader): redraw timer set, image 14 to show for 1200 ms
23:33:11.479 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
23:33:11.479 (ports 2): nothing new, skipping HID & Ports enum
23:33:11.559 (loader): HID/win32:  vid:0001 pid:0001 ver:0001
23:33:11.685 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
23:33:11.685 (ports 2): nothing new, skipping HID & Ports enum
23:33:12.656 (loader): redraw, image 9
23:33:13.088 (ports 2): purge, name=hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader, loc=usb:0/140000/0/1, age=1.692 sec
23:33:20.557 (loader): file changed
23:33:20.575 (loader): File "AccelStepperTest.ino.hex". 24020 bytes, 0% used
23:33:20.600 (post_compile 3): Begin, version=1.53, high-res time
23:33:20.601 (loader): remote connection 640 opened
23:33:20.602 (post_compile 3): Sending command: comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)
23:33:20.602 (loader): remote cmd from 640: "comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)"
23:33:20.602 (loader): remote cmd from 640: "status"
23:33:20.603 (post_compile 3): Status: 1, 1, 0, 1, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, AccelStepperTest.ino.hex
23:33:20.603 (post_compile 3): Sending command: dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\
23:33:20.603 (loader): remote cmd from 640: "dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\"
23:33:20.603 (loader): remote cmd from 640: "file:AccelStepperTest.ino.hex"
23:33:20.603 (post_compile 3): Sending command: file:AccelStepperTest.ino.hex
23:33:20.623 (loader): File "AccelStepperTest.ino.hex". 24020 bytes, 0% used
23:33:20.627 (loader): remote cmd from 640: "status"
23:33:20.628 (post_compile 3): Status: 1, 1, 0, 1, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, AccelStepperTest.ino.hex
23:33:20.628 (post_compile 3): Disconnect
23:33:20.639 (loader): remote connection 640 closed
23:33:20.685 (post_compile 4): Begin, version=1.53, high-res time
23:33:20.686 (loader): remote connection 772 opened
23:33:20.686 (loader): remote cmd from 772: "comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)"
23:33:20.686 (loader): remote cmd from 772: "status"
23:33:20.687 (post_compile 4): Sending command: comment: Teensyduino 1.53 - WINDOWS (teensy_post_compile)
23:33:20.687 (loader): remote cmd from 772: "dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\"
23:33:20.687 (loader): remote cmd from 772: "file:AccelStepperTest.ino.hex"
23:33:20.688 (post_compile 4): Status: 1, 1, 0, 1, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, AccelStepperTest.ino.hex
23:33:20.688 (post_compile 4): Sending command: dir:C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\
23:33:20.688 (post_compile 4): Sending command: file:AccelStepperTest.ino.hex
23:33:20.701 (loader): File "AccelStepperTest.ino.hex". 24020 bytes, 0% used
23:33:20.703 (loader): remote cmd from 772: "status"
23:33:20.705 (post_compile 4): Status: 1, 1, 0, 1, 0, 0, C:\Users\Peter\AppData\Local\Temp\ArduinoServer\MW\, AccelStepperTest.ino.hex
23:33:20.705 (post_compile 4): Disconnect
23:33:20.715 (loader): remote connection 772 closed
23:33:20.715 (loader): remote connection 816 opened
23:33:20.715 (post_compile 5): Running teensy_reboot: "C:\Program Files (x86)\Arduino\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=usb:0/140000/0/1" "-portlabel=(null)" "-portprotocol=(null)"
23:33:20.723 (reboot 6): Begin, version=1.53, high-res time
23:33:20.723 (reboot 6): location = usb:0/140000/0/1
23:33:20.723 (reboot 6): portlabel = (null)
23:33:20.723 (reboot 6): portprotocol = (null)
23:33:20.723 (reboot 6): LoadLibrary cfgmgr32 ok
23:33:20.723 (reboot 6): LoadLibrary ntdll ok
23:33:20.724 (reboot 6): nothing new, skipping HID & Ports enum
23:33:20.726 (loader): remote connection 772 opened
23:33:20.726 (reboot 6): Disconnect
23:33:20.737 (loader): remote connection 772 closed
23:33:20.741 (loader): remote connection 816 closed
23:33:47.788 (loader): Verbose Info event
 
Last edited:
Ok, I see ports events in this new log.

Here's 2 things to try...

1: Turn off Auto mode in Teensy Loader. Then press the button on your Teensy. You should see Teensy Loader detect the board. It should also appear in Arduino's Tools > Ports menu. From the info in this log, I'm guessing you should see this work.

2: Do the 15 second restore. Hold the pushbutton for ~15 sec. Release when you see the quick flash on the red LED. Teensy 4.1 will do a complete wipe of its flash. You'll see the red LED bright for many seconds as it slowly wipes the memory. Then it will restore a known-good LED blink. You'll know it's finished when the red LED turns off and the orange LED is blinking.

When Teensy runs that LED blink, your PC should detect a HID device with ID 16C0:0486. If your PC's USB system and teensy_ports.exe is working, you should see that ID number appear in the logfile and that HID device appear in the Ports menu.

It should also appear in Windows Device Manager under Human Interface Device, but Device Manager is unpleasant to use because your PC will have other HID and you can't tell them apart unless you do into the Advanced properties tab of each one and look through the many pieces of info (which Microsoft only lets you see one at a time) to find the "Hardware Id". I generally don't recommend using Device Manager, because so many people look only at "Ports" and conclude Teensy must not be working, when in fact it is working but you have to dig through many HID devices and advanced properties to see it.

If the 15 second restore works and the Ports menu shows a HID device, that's a pretty sure sign your PC is somehow building non-working code for Teensy. Why, I can't say. But we do occasionally see Windows problems where the Teensyduino install is corrupted for unknown reasons. Usually we attribute this to anti-virus, but the honest reality of Windows is we tend to figure out "what" the problem is but almost never "why" it happens.

If the 15 sec restore brings your Teensy back to blinking, but a HID device with ID 16C0:0486 isn't detected, that's a sign sometime is wrong with the USB hardware or USB driver/subsystem on Windows.
 
Hey Paul,
Really appreciate you helping me out here, this is for my thesis project due in 3 weeks, so it's super important to me.
Before you replied, I did a complete re-install of Arduino and Teensyduino too.
For step 1. Correct this worked, now the only port available is: "hid#vid_16c0&pid_0478 Bootloader (Teensy 4.1)"
For step 2. 15 second restore worked and the orange LED is blinking away happily.
I found two "HID-compliant vendor-defined device" 's with PID_0486 mentioned, see image attached.
HIDDevice.PNG

This actually fixed the uploading issue, for one or two uploads
I now have COM3 and COM4 as Teensy USB Serial device's and the Arduino IDE has selected COM3 Dual Serial as the port, yet struggling to upload as "Unable to open COM3 for reboot request".
The bottom right corner still says "Teensy 4.1 on usb:0/140000/0/1", my understanding is that it should be reading a port number, as when I try and open the serial monitor it says "Board at usb:0/140000/0/1 is not available"
Ideas? We are definitely getting close here. Cheers
 
Probably best to try using a different PC at this point. First check if the other PC detects the Teensy that's been programmed with this PC. Then use Arduino on that machine to reprogram it. If it works on another PC, bring it back to this one and see if the Port menu updates.

Since your PC detects the bootloader and the RawHID LED blink after 15 sec restore, my best guess is something is really messed up with the software, creating non-working programs. Again, it's a lot easier to get to what the problem is than why it's happening.

About this question:

The bottom right corner still says "Teensy 4.1 on usb:0/140000/0/1", my understanding is that it should be reading a port number

No, this is normal and correct. Teensyduino uses the USB bus/controller/hub/port numbers. This is done because Teensy becomes different USB device types. One moment it's a COM port, the next a HID device, and you can change to many others with Tools > USB Type. So this special syntax is correct. You can also see this syntax in the Teensy Loader verbose log.
 
Hi Paul,
I have removed the Teensy from my circuit to eliminate the possibility of a ground loop causing interference, or interrupts preventing uploads (which I've heard about but I am not using interrupts).
I am now on my Windows 10 machine, with the same v1.8.13 Arduino and v1.53 Teensy Loader.
It detects instantly here and although originally I was having the same problems as I previously mentioned, I noticed there were no "ports" info within the verbose info of the Teensy Loader.
So I closed it all down, ended all the processes that could be interfering with COM ports, such as 3D printers, Virtual machines and things. I also added an exception in the anti-virus for teensy_ports.exe and stopped the anti-virus altogether.
Now it seems to be working relatively well, however I fear for when this happens next.
Thank you for your help Paul, I hope this thread also helps others in the future.
Cheers
 
Not seeing anything here that has shown on Win 10 machines here.

Firewall has no Teensy programs listed. Only thing is adding JAVA on first run for new IDE install, it pops up an APPROVE box I allow.

I have migrated my UnZip IDE installs to an independent SSD drive where all SCANS [Win security and MalwareBytes] are disabled on installed IDE folder and TEMP directories, and where all TEMP and build files are located ... perhaps that drastic process is avoiding something, but I've run the same on a Surface laptop without that and had it work ... just slower.
 
Status
Not open for further replies.
Back
Top