Yes, only one Teensy 4 is connected. Wiring is unchanged, lengths, cables, hardware setup. It was working fine, then after one compile this message began appearing. Sometimes (maybe one in 10 times) the Blink example will succeed, then my other code project might works once, then continuously fails with the same error. Happens in both Arduino IDE and platformIO. Several cold boots had no effect. I did notice that someone else mentioned online having a similiar error--in their case the Blink example "fixed" it. However, that does not always seem to be the case for me. There does not seem to be any obvious pattern between blink and my other code working or not. I recently began using the build flags for "USB_KEYBOARDONLY"--but disabling/enabling that does not seem to have any effect either.
Arduino IDE is 1.8.10
OS is Windows 10 1909.
I have not attached any serial monitor.
What follows is the verbose output from the Teensy Loader.....
12:51:20.832 (post_compile 1): Begin, version=1.49, high-res time
12:51:21.069 (loader): Teensy Loader 1.49, begin program
12:51:21.140 (loader): File "firmware.hex". 46780 bytes, 2% used
12:51:21.156 (loader): Listening for remote control on port 3149
12:51:21.156 (loader): initialized, showing main window
12:51:21.180 (loader): remote connection 1356 opened
12:51:21.181 (post_compile 1): Sending command: comment: Teensyduino 1.49 - WINDOWS (teensy_post_compile)
12:51:21.181 (loader): remote cmd from 1356: "comment: Teensyduino 1.49 - WINDOWS (teensy_post_compile)"
12:51:21.181 (loader): remote cmd from 1356: "status"
12:51:21.183 (loader): HID/win32: vid:056A pid:0028 ver:0107
12:51:21.183 (loader): HID/win32: vid:056A pid:0028 ver:0107
12:51:21.183 (loader): HID/win32: vid:195D pid:6008 ver:0015
12:51:21.183 (loader): HID/win32: vid:195D pid:6008 ver:0015
12:51:21.184 (loader): HID/win32: vid:05AC pid:0220 ver:0069
12:51:21.184 (loader): HID/win32: vid:195D pid:6008 ver:0015
12:51:21.184 (loader): HID/win32: vid:195D pid:6008 ver:0015
12:51:21.246 (loader): HID/win32: vid:0B05 pid:1867 ver:0200
12:51:21.247 (loader): HID/win32: vid:046D pid:C526 ver:0500
12:51:21.247 (loader): HID/win32: vid:16C0 pid:04D0 ver:0279
12:51:21.247 (loader): HID/win32: vid:16C0 pid:04D0 ver:0279
12:51:21.248 (loader): HID/win32: vid:046D pid:C526 ver:0500
12:51:21.248 (loader): HID/win32: vid:046D pid:C526 ver:0500
12:51:21.249 (loader): HID/win32: vid:056A pid:0028 ver:0107
12:51:21.250 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\, firmware.hex
12:51:21.250 (post_compile 1): Sending command: dir:z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\
12:51:21.250 (loader): remote cmd from 1356: "dir:z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\"
12:51:21.251 (post_compile 1): Sending command: file:firmware.hex
12:51:21.251 (loader): remote cmd from 1356: "file:firmware.hex"
12:51:21.275 (loader): File "firmware.hex". 46780 bytes, 2% used
12:51:21.281 (loader): remote cmd from 1356: "status"
12:51:21.285 (loader): remote cmd from 1356: "auto
n"
12:51:21.285 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\, firmware.hex
12:51:21.285 (post_compile 1): Sending command: auto
n
12:51:21.286 (post_compile 1): Disconnect
12:51:21.297 (loader): remote connection 1356 closed
12:51:21.297 (post_compile 2): Running teensy_reboot: "C:\Users\smarrocco\.platformio\packages\tool-teensy\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY40"
12:51:21.298 (loader): remote connection 1412 opened
12:51:21.322 (reboot 3): Begin, version=1.49, high-res time
12:51:21.322 (reboot 3): LoadLibrary cfgmgr32 ok
12:51:21.322 (reboot 3): LoadLibrary ntdll ok
12:51:21.325 (reboot 3): found_usb_device, id=\\?\usb#vid_16c0&pid_04d0#6770710#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
12:51:21.325 (reboot 3): found_usb_device, loc=usb:0/140000/0/8/4/4 Port_#0004.Hub_#0006
12:51:21.325 (reboot 3): found_usb_device, hwid=USB\VID_16C0&PID_04D0&REV_0279
12:51:21.325 (reboot 3): found_usb_device, devinst=00000007
12:51:21.325 (reboot 3): add: loc=usb:0/140000/0/8/4/4, class=USB, vid=16C0, pid=04D0, ver=0279, serial=6770710, dev=\\?\usb#vid_16c0&pid_04d0#6770710#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
12:51:21.325 (reboot 3): hiddev_from_devinst_list: iface=1
12:51:21.326 (reboot 3): 00000010: path=\\?\hid#vid_16c0&pid_04d0&mi_01#9&15f5b036&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
12:51:21.328 (reboot 3): found_usb_device complete
12:51:21.329 (reboot 3): hid, found devinst=0000000E
12:51:21.329 (reboot 3): hid, found devinst=00000012
12:51:21.329 (reboot 3): hid, found devinst=00000010
12:51:21.332 (loader): remote connection 1360 opened
12:51:21.332 (loader): remote cmd from 1360: "show:arduino_attempt_reboot"
12:51:21.332 (loader): got request to show arduino rebooting message
12:51:21.333 (reboot 3): found Teensy Loader, version 1.49
12:51:21.333 (reboot 3): Sending command: show:arduino_attempt_reboot
12:51:21.336 (loader): remote cmd from 1360: "comment: Teensyduino 1.49 - WINDOWS (teensy_reboot)"
12:51:21.336 (loader): remote cmd from 1360: "status"
12:51:21.336 (reboot 3): Sending command: comment: Teensyduino 1.49 - WINDOWS (teensy_reboot)
12:51:21.339 (reboot 3): Status: 1, 1, 0, 0, 0, 0, z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\, firmware.hex
12:51:21.339 (reboot 3): hid_send_feature
12:51:23.701 (loader): Verbose Info event
12:51:26.339 (loader): remote cmd from 1360: "status"
12:51:26.339 (reboot 3): error opening reboot command
12:51:26.345 (reboot 3): Status: 1, 1, 0, 0, 0, 0, z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\, firmware.hex
12:51:26.345 (reboot 3): status read, retry 0
12:51:27.670 (loader): remote cmd from 1360: "status"
12:51:27.674 (reboot 3): Status: 1, 1, 0, 0, 0, 0, z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\, firmware.hex
12:51:27.674 (reboot 3): status read, retry 1
12:51:27.774 (loader): remote cmd from 1360: "status"
12:51:27.784 (reboot 3): Status: 1, 1, 0, 0, 0, 0, z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\, firmware.hex
....(Contents edited for brevity)......
12:51:33.142 (loader): remote cmd from 1360: "status"
12:51:33.155 (reboot 3): Status: 1, 1, 0, 0, 0, 0, z:\CodeArchive\PlatformIO\Teensy 4.0\SamPad\SamPad 2.0.0011\.pio\build\teensy40\, firmware.hex
12:51:33.155 (reboot 3): status read, retry 49
12:51:33.256 (reboot 3): Teensy did not respond to a USB-based request to automatically reboot.
12:51:33.295 (loader): remote connection 1360 closed
12:51:33.318 (loader): remote connection 1412 closed
At any point during or after this output, clicking the Teensy 4 on board button loads the code successfully.