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
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():
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
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
Code:
Serial.begin(9600);
while(!Serial);
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: