Open ajaxerror opened 2 years ago
I've also observed this behavior. I'm using a Teensy 4.1.
When this happens I noticed that there seems to be a longer delay once the 3rd block is attempted to be written and the driver returns USBD_STATUS_STALL_PID for all retries of writing that 3rd block until the current set timeout of 500ms is hit. This was observed using wiresharks usb-capture.
Retrying the upload a second time also works and there seems to be no significant delay then.
Was getting a write timeout loading a hex file on the DVJ6B chips with the current teensy_loader_cli (Did not have this problem on the DVJ6A chips). I resolved it by changing line 194 to
r = teensy_write(buf, write_size, first_block ? 5.0 : 2.0);
but is there a better solution here?