Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write timeout on MIMXRT DVJ6B #75

Open
ajaxerror opened this issue Mar 29, 2022 · 1 comment
Open

write timeout on MIMXRT DVJ6B #75

ajaxerror opened this issue Mar 29, 2022 · 1 comment

Comments

@ajaxerror
Copy link

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?

@JonasEr
Copy link

JonasEr commented Jun 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants