Can't open Serial Monitor - Board not available

Status
Not open for further replies.

el_supremo

Well-known member
Can't open Serial Monitor - Board not available (SOLVED)

Yesterday I was playing with an ENC28J60 on a Teensy 3.2 (just coz). I couldn't get it to work and gave up. A little while later I went back to playing with a T4 and T4.1. The sketch uploads just fine but when I try to open the serial monitor the IDE shows this error message
Code:
Board at usb:0/140000/0/4/4/1/3 is not available
I tried a cold reboot, and various other tricks, none of which worked. Today it is still the same. I can load and run the Blink sketch (which doesn't need the serial monitor) but if I add this in setup():
Code:
  Serial.begin(9600);
  while(!Serial);
it just hangs and I get the same error message when I try to open the serial monitor. I can't run anything that needs the serial monitor on any Teensy processor.
I've attached the output from the Teensy Loader - it starts when I plug the USB into a T4.0 and then do a compile/upload. It seems to be talking to usb:0/140000/0/4/4/1/2 rather than usb:0/140000/0/4/4/1/3.
Anyone know what's going on and how to fix it?

I'm using Arduino 1.8.12 and TD 1.52 on a 64-bit Win 10.

Thanks
Pete
Code:
11:19:03.725 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
11:19:03.726 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#5992510#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
11:19:03.726 (ports 5): found_usb_device, loc=usb:0/140000/0/4/4/1/2    Port_#0002.Hub_#0013
11:19:03.726 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
11:19:03.726 (ports 5): found_usb_device, devinst=00000004
11:19:03.726 (ports 5): add: loc=usb:0/140000/0/4/4/1/2, class=Ports, vid=16C0, pid=0483, ver=0279, serial=5992510, dev=\\?\usb#vid_16c0&pid_0483#5992510#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
11:19:03.726 (ports 5):   comport_from_devinst_list attempt
11:19:03.726 (ports 5):   found Ports in classguid_list at index=0
11:19:03.726 (ports 5):   port COM15 found from devnode
11:19:03.726 (ports 5): found_usb_device complete
11:19:03.727 (ports 5): usb_add: usb:0/140000/0/4/4/1/2  COM15 (Teensy 4.0) Serial
11:19:03.735 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
11:19:03.736 (ports 5): nothing new, skipping HID & Ports enum
11:19:03.745 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
11:19:03.746 (ports 5): nothing new, skipping HID & Ports enum
11:19:03.758 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
11:19:03.759 (ports 5): nothing new, skipping HID & Ports enum
11:19:33.550 (post_compile 14): Begin, version=1.52, high-res time
11:19:33.552 (loader): remote connection 816 opened
11:19:33.554 (post_compile 14): Sending command: comment: Teensyduino 1.52 - WINDOWS (teensy_post_compile)
11:19:33.554 (loader): remote cmd from 816: "comment: Teensyduino 1.52 - WINDOWS (teensy_post_compile)"
11:19:33.555 (loader): remote cmd from 816: "status"
11:19:33.557 (loader): file changed
11:19:33.569 (loader): File "IRsendDemo_T40_1.ino.hex". 14180 bytes, 1% used
11:19:33.575 (post_compile 14): Status: 1, 1, 0, 3, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:33.575 (post_compile 14): Sending command: dir:C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\
11:19:33.577 (loader): remote cmd from 816: "dir:C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\"
11:19:33.579 (post_compile 14): Sending command: file:IRsendDemo_T40_1.ino.hex
11:19:33.580 (loader): remote cmd from 816: "file:IRsendDemo_T40_1.ino.hex"
11:19:33.590 (loader): File "IRsendDemo_T40_1.ino.hex". 14180 bytes, 1% used
11:19:33.600 (loader): remote cmd from 816: "status"
11:19:33.603 (post_compile 14): Status: 1, 1, 0, 3, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:33.603 (post_compile 14): Disconnect
11:19:33.614 (loader): remote connection 816 closed
11:19:33.912 (post_compile 15): Begin, version=1.52, high-res time
11:19:33.913 (loader): remote connection 1508 opened
11:19:33.916 (loader): remote cmd from 1508: "comment: Teensyduino 1.52 - WINDOWS (teensy_post_compile)"
11:19:33.917 (post_compile 15): Sending command: comment: Teensyduino 1.52 - WINDOWS (teensy_post_compile)
11:19:33.919 (loader): remote cmd from 1508: "status"
11:19:33.922 (loader): remote cmd from 1508: "dir:C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\"
11:19:33.923 (post_compile 15): Status: 1, 1, 0, 3, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:33.923 (post_compile 15): Sending command: dir:C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\
11:19:33.925 (loader): remote cmd from 1508: "file:IRsendDemo_T40_1.ino.hex"
11:19:33.926 (post_compile 15): Sending command: file:IRsendDemo_T40_1.ino.hex
11:19:33.937 (loader): File "IRsendDemo_T40_1.ino.hex". 14180 bytes, 1% used
11:19:33.946 (loader): remote cmd from 1508: "status"
11:19:33.950 (post_compile 15): Status: 1, 1, 0, 3, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:33.950 (post_compile 15): Disconnect
11:19:33.961 (loader): remote connection 1508 closed
11:19:33.961 (post_compile 16): Running teensy_reboot: "C:\arduino-1.8.12_1.52\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY40" "-port=usb:0/140000/0/4/4/1/3" "-portlabel=(null)" "-portprotocol=(null)"
11:19:33.965 (loader): remote connection 1508 opened
11:19:33.992 (reboot 17): Begin, version=1.52, high-res time
11:19:33.992 (reboot 17): location = usb:0/140000/0/4/4/1/3
11:19:33.992 (reboot 17): portlabel = (null)
11:19:33.992 (reboot 17): portprotocol = (null)
11:19:33.992 (reboot 17): LoadLibrary cfgmgr32 ok
11:19:33.992 (reboot 17): LoadLibrary ntdll ok
11:19:33.993 (reboot 17): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#5992510#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
11:19:33.993 (reboot 17): found_usb_device, loc=usb:0/140000/0/4/4/1/2    Port_#0002.Hub_#0013
11:19:33.993 (reboot 17): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
11:19:33.993 (reboot 17): found_usb_device, devinst=00000004
11:19:33.993 (reboot 17): add: loc=usb:0/140000/0/4/4/1/2, class=Ports, vid=16C0, pid=0483, ver=0279, serial=5992510, dev=\\?\usb#vid_16c0&pid_0483#5992510#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
11:19:33.993 (reboot 17):   comport_from_devinst_list attempt
11:19:33.993 (reboot 17):   found Ports in classguid_list at index=0
11:19:33.993 (reboot 17):   port COM15 found from devnode
11:19:33.993 (reboot 17): found_usb_device complete
11:19:33.996 (loader): remote connection 1612 opened
11:19:34.000 (loader): remote cmd from 1612: "show:arduino_attempt_reboot"
11:19:34.001 (reboot 17): found Teensy Loader, version 1.52
11:19:34.001 (reboot 17): Sending command: show:arduino_attempt_reboot
11:19:34.004 (loader): got request to show arduino rebooting message
11:19:34.010 (reboot 17): Sending command: comment: Teensyduino 1.52 - WINDOWS (teensy_reboot)
11:19:34.010 (loader): remote cmd from 1612: "comment: Teensyduino 1.52 - WINDOWS (teensy_reboot)"
11:19:34.014 (loader): remote cmd from 1612: "status"
11:19:34.020 (reboot 17): Status: 1, 1, 0, 3, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.020 (reboot 17): do_reset (serial) COM15
11:19:34.022 (loader): remote cmd from 1612: "status"
11:19:34.028 (reboot 17): Status: 1, 1, 0, 3, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.028 (reboot 17): status read, retry 0
11:19:34.056 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
11:19:34.057 (ports 5): remove: loc=usb:0/140000/0/4/4/1/2
11:19:34.057 (ports 5): usb_remove: usb:0/140000/0/4/4/1/2
11:19:34.057 (ports 5): nothing new, skipping HID & Ports enum
11:19:34.128 (loader): remote cmd from 1612: "status"
11:19:34.136 (reboot 17): Status: 1, 1, 0, 3, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.136 (reboot 17): status read, retry 1
11:19:34.236 (loader): remote cmd from 1612: "status"
11:19:34.244 (reboot 17): Status: 1, 1, 0, 3, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.244 (reboot 17): status read, retry 2
11:19:34.264 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
11:19:34.265 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000924d3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
11:19:34.265 (ports 5): found_usb_device, loc=usb:0/140000/0/4/4/1/2    Port_#0002.Hub_#0013
11:19:34.265 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
11:19:34.265 (ports 5): found_usb_device, devinst=0000001b
11:19:34.265 (ports 5): add: loc=usb:0/140000/0/4/4/1/2, class=HID, vid=16C0, pid=0478, ver=0105, serial=000924d3, dev=\\?\usb#vid_16c0&pid_0478#000924d3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
11:19:34.265 (ports 5): hiddev_from_devinst_list: iface=0
11:19:34.266 (ports 5): found_usb_device complete
11:19:34.267 (ports 5): usb_add: usb:0/140000/0/4/4/1/2  [no_device] (Teensy 4.0) Bootloader
11:19:34.344 (loader): remote cmd from 1612: "status"
11:19:34.350 (loader): Device came online, code_size = 2031616
11:19:34.355 (loader): Board is: Teensy 4.0 (IMXRT1062), version 1.05
11:19:34.369 (loader): File "IRsendDemo_T40_1.ino.hex". 14180 bytes, 1% used
11:19:34.377 (loader): set background IMG_ONLINE
11:19:34.393 (loader): File "IRsendDemo_T40_1.ino.hex". 14180 bytes, 1% used
11:19:34.402 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
11:19:34.407 (loader): elf binary data matches hex file
11:19:34.413 (loader): elf file is for Teensy 4.0 (IMXRT1062)
11:19:34.422 (loader): begin operation
11:19:34.435 (reboot 17): Status: 1, 1, 1, 4, 0, 1, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.438 (loader): flash, block=0, bs=1024, auto=1
11:19:34.445 (loader):  gauge old value = 0
11:19:34.450 (loader): flash, block=1, bs=1024, auto=1
11:19:34.610 (loader):  gauge old value = 1
11:19:34.616 (loader): flash, block=2, bs=1024, auto=1
11:19:34.622 (loader):  gauge old value = 2
11:19:34.627 (loader): flash, block=3, bs=1024, auto=1
11:19:34.633 (loader):  gauge old value = 3
11:19:34.638 (loader): flash, block=4, bs=1024, auto=1
11:19:34.643 (loader):  gauge old value = 4
11:19:34.650 (loader): remote cmd from 1612: "status"
11:19:34.655 (loader): flash, block=5, bs=1024, auto=1
11:19:34.655 (reboot 17): Status: 1, 1, 1, 4, 0, 1, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.660 (loader):  gauge old value = 5
11:19:34.667 (loader): flash, block=6, bs=1024, auto=1
11:19:34.672 (loader):  gauge old value = 6
11:19:34.684 (loader): flash, block=7, bs=1024, auto=1
11:19:34.689 (loader):  gauge old value = 7
11:19:34.696 (loader): flash, block=8, bs=1024, auto=1
11:19:34.701 (loader):  gauge old value = 8
11:19:34.707 (loader): remote cmd from 1612: "status"
11:19:34.712 (loader): flash, block=9, bs=1024, auto=1
11:19:34.712 (reboot 17): Status: 1, 1, 1, 4, 0, 1, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.717 (loader):  gauge old value = 9
11:19:34.724 (loader): flash, block=10, bs=1024, auto=1
11:19:34.728 (loader):  gauge old value = 10
11:19:34.735 (loader): flash, block=11, bs=1024, auto=1
11:19:34.740 (loader):  gauge old value = 11
11:19:34.746 (loader): flash, block=12, bs=1024, auto=1
11:19:34.751 (loader):  gauge old value = 12
11:19:34.757 (loader): flash, block=13, bs=1024, auto=1
11:19:34.762 (loader):  gauge old value = 13
11:19:34.768 (loader): remote cmd from 1612: "status"
11:19:34.775 (reboot 17): Status: 1, 1, 1, 4, 0, 1, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.777 (loader): sending reboot
11:19:34.784 (loader): begin wait_until_offline
11:19:34.793 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
11:19:34.794 (ports 5): remove: loc=usb:0/140000/0/4/4/1/2
11:19:34.794 (ports 5): usb_remove: usb:0/140000/0/4/4/1/2
11:19:34.794 (ports 5): nothing new, skipping HID & Ports enum
11:19:34.840 (loader): offline, waited 1
11:19:34.845 (loader): end operation, total time = 0.418 seconds
11:19:34.855 (loader): set background IMG_REBOOT_OK
11:19:34.866 (loader): redraw timer set, image 14 to show for 1200 ms
11:19:34.876 (loader): remote cmd from 1612: "status"
11:19:34.877 (loader): HID/win32:  vid:08BB pid:2904 ver:0100
11:19:34.877 (loader): HID/win32:  vid:051D pid:0002 ver:0101
11:19:34.877 (loader): HID/win32:  vid:1A81 pid:1004 ver:0240
11:19:34.877 (loader): HID/win32:  vid:1A81 pid:1004 ver:0240
11:19:34.877 (loader): HID/win32:  vid:1A81 pid:1004 ver:0240
11:19:34.877 (loader): HID/win32:  vid:1A81 pid:1004 ver:0240
11:19:34.877 (loader): HID/win32:  vid:1A81 pid:1004 ver:0240
11:19:34.878 (reboot 17): Status: 1, 1, 0, 4, 0, 0, C:\Users\Peter\AppData\Local\Temp\arduino_build_322842\, IRsendDemo_T40_1.ino.hex
11:19:34.878 (reboot 17): status read, retry 3
11:19:34.878 (reboot 17): Success
11:19:34.878 (reboot 17): Disconnect
11:19:34.899 (loader): remote connection 1612 closed
11:19:34.899 (loader): remote connection 1508 closed
11:19:35.055 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
11:19:35.056 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#5992510#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
11:19:35.056 (ports 5): found_usb_device, loc=usb:0/140000/0/4/4/1/2    Port_#0002.Hub_#0013
11:19:35.056 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
11:19:35.056 (ports 5): found_usb_device, devinst=00000004
11:19:35.056 (ports 5): add: loc=usb:0/140000/0/4/4/1/2, class=Ports, vid=16C0, pid=0483, ver=0279, serial=5992510, dev=\\?\usb#vid_16c0&pid_0483#5992510#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
11:19:35.056 (ports 5):   comport_from_devinst_list attempt
11:19:35.056 (ports 5):   found Ports in classguid_list at index=0
11:19:35.056 (ports 5):   port COM15 found from devnode
11:19:35.056 (ports 5): found_usb_device complete
11:19:35.057 (ports 5): usb_add: usb:0/140000/0/4/4/1/2  COM15 (Teensy 4.0) Serial
11:19:35.146 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
11:19:35.146 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
11:19:35.147 (ports 5): nothing new, skipping HID & Ports enum
11:19:35.342 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
11:19:35.344 (ports 5): nothing new, skipping HID & Ports enum
11:19:35.365 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
11:19:35.366 (ports 5): nothing new, skipping HID & Ports enum
11:19:36.065 (loader): redraw, image 9
 
Last edited:
In IDE Tools drop down, what do you have for USB type: and what does Port say?

here's my teensy loader verbose for build and run of CoreMark witrh serial monitor...
Code:
15:41:56.942 (post_compile 1): Begin, version=1.52, high-res time
15:41:57.175 (loader): Teensy Loader 1.52, begin program
15:41:57.259 (loader): File "blink.ino.hex". 13540 bytes, 1% used
15:41:57.278 (loader): Listening for remote control on port 3149
15:41:57.278 (loader): initialized, showing main window
15:41:57.307 (loader): remote connection 1344 opened
15:41:57.308 (loader): remote cmd from 1344: "comment: Teensyduino 1.52 - WINDOWS (teensy_post_compile)"
15:41:57.308 (loader): remote cmd from 1344: "status"
15:41:57.308 (post_compile 1): Sending command: comment: Teensyduino 1.52 - WINDOWS (teensy_post_compile)
15:41:57.312 (loader): HID/win32:  vid:413C pid:2111 ver:0107
15:41:57.312 (loader): HID/win32:  vid:413C pid:2111 ver:0107
15:41:57.313 (loader): remote cmd from 1344: "dir:C:\Users\tom\AppData\Local\Temp\arduino_build_6620\"
15:41:57.313 (loader): remote cmd from 1344: "file:CoreMark.ino.hex"
15:41:57.314 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\tom\AppData\Local\Temp\arduino_build_316523\, blink.ino.hex
15:41:57.314 (post_compile 1): Sending command: dir:C:\Users\tom\AppData\Local\Temp\arduino_build_6620\
15:41:57.314 (post_compile 1): Sending command: file:CoreMark.ino.hex
15:41:57.329 (loader): File "CoreMark.ino.hex". 21780 bytes, 1% used
15:41:57.336 (loader): remote cmd from 1344: "status"
15:41:57.338 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:57.338 (post_compile 1): Sending command: auto:on
15:41:57.338 (loader): remote cmd from 1344: "auto:on"
15:41:57.339 (post_compile 1): Disconnect
15:41:57.350 (loader): remote connection 1344 closed
15:41:57.446 (post_compile 2): Begin, version=1.52, high-res time
15:41:57.449 (loader): remote connection 1400 opened
15:41:57.449 (loader): remote cmd from 1400: "comment: Teensyduino 1.52 - WINDOWS (teensy_post_compile)"
15:41:57.450 (post_compile 2): Sending command: comment: Teensyduino 1.52 - WINDOWS (teensy_post_compile)
15:41:57.450 (loader): remote cmd from 1400: "status"
15:41:57.451 (loader): remote cmd from 1400: "dir:C:\Users\tom\AppData\Local\Temp\arduino_build_6620\"
15:41:57.451 (loader): remote cmd from 1400: "file:CoreMark.ino.hex"
15:41:57.452 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:57.452 (post_compile 2): Sending command: dir:C:\Users\tom\AppData\Local\Temp\arduino_build_6620\
15:41:57.452 (post_compile 2): Sending command: file:CoreMark.ino.hex
15:41:57.463 (loader): File "CoreMark.ino.hex". 21780 bytes, 1% used
15:41:57.469 (loader): remote cmd from 1400: "status"
15:41:57.471 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:57.471 (post_compile 2): Disconnect
15:41:57.482 (loader): remote connection 1400 closed
15:41:57.483 (post_compile 3): Running teensy_reboot: "C:\Program Files (x86)\Arduino\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY40" "-port=usb:0/140000/0/3/3" "-portlabel=hid#vid_16c0&pid_0478 Bootloader" "-portprotocol=Teensy"
15:41:57.483 (loader): remote connection 1400 opened
15:41:57.510 (reboot 4): Begin, version=1.52, high-res time
15:41:57.510 (reboot 4): location = usb:0/140000/0/3/3
15:41:57.510 (reboot 4): portlabel = hid#vid_16c0&pid_0478 Bootloader
15:41:57.510 (reboot 4): portprotocol = Teensy
15:41:57.510 (reboot 4): Only location usb:0/140000/0/3/3 will be tried
15:41:57.510 (reboot 4): LoadLibrary cfgmgr32 ok
15:41:57.510 (reboot 4): LoadLibrary ntdll ok
15:41:57.511 (reboot 4): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#6152440#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15:41:57.511 (reboot 4): found_usb_device, loc=usb:0/140000/0/3/3    Port_#0003.Hub_#0004
15:41:57.511 (reboot 4): found_usb_device, devinst=00000002
15:41:57.511 (reboot 4): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
15:41:57.511 (reboot 4): add: loc=usb:0/140000/0/3/3, class=Ports, vid=16C0, pid=0483, ver=0279, serial=6152440, dev=\\?\usb#vid_16c0&pid_0483#6152440#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15:41:57.511 (reboot 4):   comport_from_devinst_list attempt
15:41:57.511 (reboot 4):   found Ports in classguid_list at index=0
15:41:57.511 (reboot 4):   port COM4 found from devnode
15:41:57.511 (reboot 4): found_usb_device complete
15:41:57.516 (loader): remote connection 1424 opened
15:41:57.516 (loader): remote cmd from 1424: "show:arduino_attempt_reboot"
15:41:57.516 (loader): got request to show arduino rebooting message
15:41:57.517 (reboot 4): found Teensy Loader, version 1.52
15:41:57.517 (reboot 4): Sending command: show:arduino_attempt_reboot
15:41:57.518 (loader): remote cmd from 1424: "comment: Teensyduino 1.52 - WINDOWS (teensy_reboot)"
15:41:57.518 (loader): remote cmd from 1424: "status"
15:41:57.519 (reboot 4): Sending command: comment: Teensyduino 1.52 - WINDOWS (teensy_reboot)
15:41:57.520 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:57.520 (reboot 4): do_reset (serial) COM4
15:41:57.522 (loader): remote cmd from 1424: "status"
15:41:57.524 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:57.524 (reboot 4): status read, retry 0
15:41:57.548 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
15:41:57.549 (ports 5): remove: loc=usb:0/140000/0/3/3
15:41:57.549 (ports 5): usb_remove: usb:0/140000/0/3/3
15:41:57.549 (ports 5): nothing new, skipping HID & Ports enum
15:41:57.549 (loader): remote connection 1428 opened
15:41:57.564 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
15:41:57.565 (ports 5): nothing new, skipping HID & Ports enum
15:41:57.624 (loader): remote cmd from 1424: "status"
15:41:57.626 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:57.626 (reboot 4): status read, retry 1
15:41:57.773 (loader): remote cmd from 1424: "status"
15:41:57.774 (loader): Device came online, code_size = 2031616
15:41:57.774 (loader): Board is: Teensy 4.0 (IMXRT1062), version 1.05
15:41:57.785 (loader): File "CoreMark.ino.hex". 21780 bytes, 1% used
15:41:57.789 (loader): set background IMG_ONLINE
15:41:57.803 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
15:41:57.803 (loader): File "CoreMark.ino.hex". 21780 bytes, 1% used
15:41:57.803 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#0009634c#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15:41:57.803 (ports 5): found_usb_device, loc=usb:0/140000/0/3/3    Port_#0003.Hub_#0004
15:41:57.803 (ports 5): found_usb_device, devinst=0000000e
15:41:57.803 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
15:41:57.803 (ports 5): add: loc=usb:0/140000/0/3/3, class=HID, vid=16C0, pid=0478, ver=0105, serial=0009634c, dev=\\?\usb#vid_16c0&pid_0478#0009634c#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15:41:57.803 (ports 5): hiddev_from_devinst_list: iface=0
15:41:57.804 (ports 5): found_usb_device complete
15:41:57.804 (ports 5): hid, found devinst=0000000F
15:41:57.804 (ports 5): hid, path=\\?\hid#vid_16c0&pid_0478#7&166545b1&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
15:41:57.804 (ports 5): hid,  opened handle
15:41:57.804 (ports 5):  devinst=0000000F, location=usb:0/140000/0/3/3
15:41:57.804 (ports 5):  vid=16C0, pid=0478, ver=0105, usepage=FF9C, use=0024
15:41:57.804 (ports 5):  devpath=\\?\hid#vid_16c0&pid_0478#7&166545b1&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
15:41:57.804 (ports 5): usb_add: usb:0/140000/0/3/3  hid#vid_16c0&pid_0478 (Teensy 4.0) Bootloader
15:41:57.809 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
15:41:57.809 (loader): elf binary data matches hex file
15:41:57.809 (loader): elf file is for Teensy 4.0 (IMXRT1062)
15:41:57.811 (loader): begin operation
15:41:57.819 (reboot 4): Status: 1, 1, 1, 1, 0, 1, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:57.822 (loader): flash, block=0, bs=1024, auto=1
15:41:57.822 (loader):  gauge old value = 0
15:41:57.822 (loader): flash, block=1, bs=1024, auto=1
15:41:58.005 (loader):  gauge old value = 1
15:41:58.005 (loader): flash, block=2, bs=1024, auto=1
15:41:58.022 (loader):  gauge old value = 2
15:41:58.022 (loader): remote cmd from 1424: "status"
15:41:58.023 (reboot 4): Status: 1, 1, 1, 1, 0, 1, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:58.023 (loader): flash, block=3, bs=1024, auto=1
15:41:58.023 (loader):  gauge old value = 3
15:41:58.023 (loader): flash, block=4, bs=1024, auto=1
15:41:58.023 (loader):  gauge old value = 4
15:41:58.023 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
15:41:58.024 (ports 5): nothing new, skipping HID & Ports enum
15:41:58.026 (loader): flash, block=5, bs=1024, auto=1
15:41:58.027 (loader):  gauge old value = 5
15:41:58.028 (loader): flash, block=6, bs=1024, auto=1
15:41:58.028 (loader):  gauge old value = 6
15:41:58.030 (loader): flash, block=7, bs=1024, auto=1
15:41:58.030 (loader):  gauge old value = 7
15:41:58.032 (loader): flash, block=8, bs=1024, auto=1
15:41:58.032 (loader):  gauge old value = 8
15:41:58.035 (loader): flash, block=9, bs=1024, auto=1
15:41:58.035 (loader):  gauge old value = 9
15:41:58.037 (loader): flash, block=10, bs=1024, auto=1
15:41:58.037 (loader):  gauge old value = 10
15:41:58.039 (loader): flash, block=11, bs=1024, auto=1
15:41:58.040 (loader):  gauge old value = 11
15:41:58.041 (loader): flash, block=12, bs=1024, auto=1
15:41:58.041 (loader):  gauge old value = 12
15:41:58.043 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
15:41:58.043 (loader): flash, block=13, bs=1024, auto=1
15:41:58.043 (loader):  gauge old value = 13
15:41:58.044 (ports 5): nothing new, skipping HID & Ports enum
15:41:58.044 (loader): flash, block=14, bs=1024, auto=1
15:41:58.045 (loader):  gauge old value = 14
15:41:58.047 (loader): flash, block=15, bs=1024, auto=1
15:41:58.047 (loader):  gauge old value = 15
15:41:58.049 (loader): flash, block=16, bs=1024, auto=1
15:41:58.049 (loader):  gauge old value = 16
15:41:58.051 (loader): flash, block=17, bs=1024, auto=1
15:41:58.051 (loader):  gauge old value = 17
15:41:58.053 (loader): flash, block=18, bs=1024, auto=1
15:41:58.053 (loader):  gauge old value = 18
15:41:58.054 (loader): flash, block=19, bs=1024, auto=1
15:41:58.054 (loader):  gauge old value = 19
15:41:58.056 (loader): flash, block=20, bs=1024, auto=1
15:41:58.056 (loader):  gauge old value = 20
15:41:58.059 (loader): flash, block=21, bs=1024, auto=1
15:41:58.059 (loader):  gauge old value = 21
15:41:58.069 (loader): sending reboot
15:41:58.069 (loader): begin wait_until_offline
15:41:58.076 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
15:41:58.076 (ports 5): remove: loc=usb:0/140000/0/3/3
15:41:58.076 (ports 5): usb_remove: usb:0/140000/0/3/3
15:41:58.076 (ports 5): nothing new, skipping HID & Ports enum
15:41:58.120 (loader): offline, waited 1
15:41:58.120 (loader): end operation, total time = 0.309 seconds
15:41:58.121 (loader): set background IMG_REBOOT_OK
15:41:58.123 (loader): redraw timer set, image 14 to show for 1200 ms
15:41:58.123 (loader): remote cmd from 1424: "status"
15:41:58.124 (loader): HID/win32:  vid:413C pid:2111 ver:0107
15:41:58.124 (loader): HID/win32:  vid:413C pid:2111 ver:0107
15:41:58.125 (reboot 4): Status: 1, 1, 0, 1, 0, 0, C:\Users\tom\AppData\Local\Temp\arduino_build_6620\, CoreMark.ino.hex
15:41:58.125 (reboot 4): status read, retry 2
15:41:58.125 (reboot 4): Success
15:41:58.125 (reboot 4): Disconnect
15:41:58.126 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
15:41:58.126 (ports 5): nothing new, skipping HID & Ports enum
15:41:58.137 (loader): remote connection 1424 closed
15:41:58.139 (loader): remote connection 1400 closed
15:41:58.416 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
15:41:58.417 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#6152440#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15:41:58.417 (ports 5): found_usb_device, loc=usb:0/140000/0/3/3    Port_#0003.Hub_#0004
15:41:58.417 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
15:41:58.417 (ports 5): found_usb_device, devinst=00000005
15:41:58.417 (ports 5): add: loc=usb:0/140000/0/3/3, class=Ports, vid=16C0, pid=0483, ver=0279, serial=6152440, dev=\\?\usb#vid_16c0&pid_0483#6152440#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15:41:58.417 (ports 5):   comport_from_devinst_list attempt
15:41:58.417 (ports 5):   found Ports in classguid_list at index=0
15:41:58.417 (ports 5):   port COM4 found from devnode
15:41:58.417 (ports 5): found_usb_device complete
15:41:58.417 (ports 5): usb_add: usb:0/140000/0/3/3  COM4 (Teensy 4.0) Serial
15:41:58.441 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
15:41:58.441 (ports 5): nothing new, skipping HID & Ports enum
15:41:58.451 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
15:41:58.452 (ports 5): nothing new, skipping HID & Ports enum
15:41:58.452 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
15:41:58.452 (ports 5): nothing new, skipping HID & Ports enum
15:41:59.327 (loader): redraw, image 9
15:42:05.065 (loader): Verbose Info event
15:43:13.345 (serialmon 6): Begin, version=1.52, high-res time
15:43:13.345 (serialmon 6): listening for location: usb:0/140000/0/3/3
15:43:13.345 (serialmon 6): LoadLibrary cfgmgr32 ok
15:43:13.345 (serialmon 6): LoadLibrary ntdll ok
15:43:13.350 (serialmon 6): callback 0024
15:43:13.350 (serialmon 6): callback 0081
15:43:13.350 (serialmon 6): callback 0083
15:43:13.351 (serialmon 6): hWnd = 1311966
15:43:13.352 (serialmon 6): loop stdin, ready=262143
15:43:13.352 (serialmon 6): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#6152440#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15:43:13.352 (serialmon 6): found_usb_device, loc=usb:0/140000/0/3/3    Port_#0003.Hub_#0004
15:43:13.352 (serialmon 6): found_usb_device, devinst=00000002
15:43:13.352 (serialmon 6): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
15:43:13.353 (serialmon 6): add: loc=usb:0/140000/0/3/3, class=Ports, vid=16C0, pid=0483, ver=0279, serial=6152440, dev=\\?\usb#vid_16c0&pid_0483#6152440#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
15:43:13.353 (serialmon 6):   comport_from_devinst_list attempt
15:43:13.353 (serialmon 6):   found Ports in classguid_list at index=0
15:43:13.353 (serialmon 6):   port COM4 found from devnode
15:43:13.353 (serialmon 6): found_usb_device complete
15:43:13.354 (serialmon 6): usb_add: usb:0/140000/0/3/3
15:43:13.354 (serialmon 6): translate "COM4" -> "\\.\COM4"
15:43:13.393 (serialmon 6): GetDefaultCommConfig success
15:43:13.420 (serialmon 6): SetDefaultCommConfig success
15:43:13.421 (serialmon 6): Opened \\.\COM4 Serial
15:43:13.424 (ports 5): callback 001A
15:43:13.442 (loader): remote connection 1412 opened
windows 10, 64-bit, 1.8.12 1.52
USB Type: "Serial"
port Teensy ports "Comm4 Serial (Teensy 4.0)"
 
Last edited:
Oh NO! USB type is serial but the port didn't say anything. I chose COM 15 and now it works.
Thanks Manitou.
Maybe I'm too old for this stuff!

Pete
 
We might have a subtle USB device detection bug on Windows. On the last beta software thread, at least 2 people reported occasionally having to press the button on their Teensy because it wasn't detected for automatic upload, but the problems would happen one day then mysteriously vanish the next.

At this point, it's all just guesswork, and even if it is a software bug, seems to be no sure way to reproduce it. But I am keeping a sort of mental list of people reporting these sporadic USB device detection problems.
 
I have this problem regularly with the T4 & T4.1. It will work for hours then fail several times then OK. It happens on W7 and W10.
 
I just swapped one T_4.1 for another and had a moment of confusion finding the new one - said it wasn't there ... it worked after a button push or two or something ...

<edit>: Turns out I'm using TWO IDE instances! Had issue again and found the OTHER IDE had T_SerMon active

About the time I thought I should look at TD_Verbose or something it was working ... so back on task and now it is working.

Just cut this down from 2MB+ to 269KB. ARRGGHH - 70KB too big ... now 141 KB

COM19 is PROD T_4.1
moved to COM17 Beta T_4.1 and had confusion needing button

Code:
[B]TD_Verbose[/B] ::  [ATTACH]20231._xfImport[/ATTACH]

Only other note than swapping 4.1's is there were several Verify builds before first Upload.

And this is Win10 with notes in verbose of:
> ignoring partial USB device discovery (Windows XP issue?)
> (Windows XP workaround)
 
Last edited:
Status
Not open for further replies.
Back
Top