-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error while writing to Teensy 4x #99
Comments
Mmmh, I don't have a Teensy MicroMod so I can't test anything... Still, I've changed the code, maybe it works. Can you report if it works? If it does not, can you copy paste everything under |
Thanks for the fast patch! Unfortunately it doesn't work.. `Add serial device '292b4088347d6' on iface 1
Here is the log. From playing around with luni's loader in the past, we found that the issue usually is the timeout while it erases the flash before wiring the hex |
Hi @Koromix! Have you had time to take a look at the log? When using luni’s TeensyShap lib, we found that we needed to allow the tool to try write around 250 times with 500ms delays between each attempt to allow a full flash erase without causing any issues |
I think if you increase the number of attempts here to 250 And increase the timeout here to 500 |
Actually, the delay code has been kind of broken for a while for Teensy 4.x+, because the start address is not 0 on these boards. So the I've pushed a commit that should fix the issue although I don't even have a Teensy with me right now (not at home), so it's untested. I'll improve this more when I get my hand on a Teensy. Meanwhile, there is a new build at https://koromix.dev/files/tytools/ (untested) |
I am encountering what appears to be the same problem with uploading to a Teensy MicroMod using tycmd. The error message is: upload@8478780-Teensy I/O error while writing to '\.\HID#VID_16C0&PID_0478#6&2975C0&0&0000#{41de55b2-f16f-11cf-88cb-001111000030}' Is it possible to get a Windows x64 build with the latest changes to see if they resolve the issue? |
I get the following error when trying to upload a hex to a Teensy MM.
Seems this happens due to my sketch being too big? TeensyLoader can flash it, it just takes a while to erase.
Now, if I let it sit for 30-60 Seconds after that error and then click upload again, it will try to upload, but will present the same error after a while.
Here is the build output of the sketch:
teensy_size: Memory Usage on Teensy MicroMod: teensy_size: FLASH: code:5537116, data:80252, headers:8484 free for files:10889220 teensy_size: RAM1: variables:131520, code:308984, padding:18696 free for local variables:65088 teensy_size: RAM2: variables:336000 free for malloc/new:188288
I know this is due to the amount of flash memory used.
What is the timeout for the erase of the Teensy?
The text was updated successfully, but these errors were encountered: