I was uploading a blank sketch to one of my 4.1 teensy's using most recent Windows 10, with Arduino 1.8.15, not sure Teensyduino version number but the installer was signed on Dec, 22, 2021 and Teensy Loader says it's version 1.56.
While the Teensy Loader tool was switching from it's Erasing status bar to the Programming status bar, the loader tool crashed and force closed. This caused windows to go haywire. Arduino IDE, Teensy Loader and Windows, stopped recognizing teensy 4.1's with COM ports and the loader would freeze immediately. So I figured I'd restart my computer, After restarting, everything seems to recognize the 4.1 boards when plugged in, you hear the chime of an inserted usb device. However in the Arduino IDE, it no longer displays the COM port but instead displays
I've tried different cables and different USB ports, 4 different teensy 4.1 boards and everything has the same problems, Even though only one of them errored out while uploading. That to me suggest it's a driver error or some configuration broken on the Windows side and not specifically the 4.1 boards. I tried updating drivers by reinstalling the serial_install.exe and that says "Windows 10 USB Serial Device driver is present. No installation is necessary." I tried reinstalling the entire Teensyduino package, but the installer tells me the same thing about the drivers and I can't force an install as the option is greyed out.
If you try to upload a sketch in this state, the Teensy tool freezes while erasing and the tool reports an image "DOWNLOAD Error"
the loader log says:
How would I go about fixing this?
I've tried different cables, different USB ports, restarting the host machine, different teensy 4.1's, tried to reinstall drivers.
I have yet to full uninstall and reinstall Arduino IDE or Teensyduino, I wanted to ask here about this, before i did that.
(reinstalling ide would be a massive hassle as there's quite a few thing's I'd have to setup again to get all the boards recognized that I'm using)
Code:
//Blank Sketch
void setup() {
}
void loop() {
}
The Teensy Loader can reboot the device, set auto mode, but cannot program it. Windows also doesn't report the device as a COM device anymore in the device manager.Port: "hid#vid_16c&pid_0478 Bootloader (Teensy 4.1)"
I've tried different cables and different USB ports, 4 different teensy 4.1 boards and everything has the same problems, Even though only one of them errored out while uploading. That to me suggest it's a driver error or some configuration broken on the Windows side and not specifically the 4.1 boards. I tried updating drivers by reinstalling the serial_install.exe and that says "Windows 10 USB Serial Device driver is present. No installation is necessary." I tried reinstalling the entire Teensyduino package, but the installer tells me the same thing about the drivers and I can't force an install as the option is greyed out.
If you try to upload a sketch in this state, the Teensy tool freezes while erasing and the tool reports an image "DOWNLOAD Error"
the loader log says:
23:15:36.263 (loader): Program event
23:15:36.268 (loader): File "C:\Users\...removed...\AppData\Local\Temp\arduino_build_333595\sketch_mar07a.ino.hex", 18432 bytes
23:15:36.269 (loader): File "sketch_mar07a.ino.hex". 18432 bytes, 0% used
23:15:36.290 (loader): elf appears to be for Teensy 4.1 (IMXRT1062) (8126464 bytes)
23:15:36.291 (loader): elf binary data matches hex file
23:15:36.291 (loader): elf file is for Teensy 4.1 (IMXRT1062)
23:15:36.292 (loader): using hex file
23:15:36.313 (loader): begin operation
23:15:36.349 (loader): flash, block=0, bs=1024, auto=0
23:15:36.351 (loader): flash, block=1, bs=1024, auto=0
23:16:06.357 (loader): program: write error
23:16:06.359 (loader): HID/win32: HidD_GetPreparsedData ok, device still online
23:16:06.362 (loader): end operation, total time = 30.049 seconds
23:16:06.364 (loader): set background IMG_DOWNLOAD_ERROR
23:16:06.367 (loader): redraw timer set, image 11 to show for 4000 ms
23:16:10.366 (loader): redraw, image 10
23:16:10.367 (loader): set background IMG_ONLINE
How would I go about fixing this?
I've tried different cables, different USB ports, restarting the host machine, different teensy 4.1's, tried to reinstall drivers.
I have yet to full uninstall and reinstall Arduino IDE or Teensyduino, I wanted to ask here about this, before i did that.
(reinstalling ide would be a massive hassle as there's quite a few thing's I'd have to setup again to get all the boards recognized that I'm using)