-
Notifications
You must be signed in to change notification settings - Fork 25
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
Linux UART left in unknown state after first use flashing UPDI #33
Comments
Logged internally as DSG-6071 |
I have tested this with Linux Ubuntu 22.04.01 LTS and a mega4809 on a Curiosity Nano using its own CDC and it works just fine every time. |
Thanks for testing. I have a CR2102 USB-UART. I will configure a test with it. |
I tested with both the CH340 and CR2102 and both have the issue. I realized I left one thing out of my original description and it may be the underlying cause. The environment is "Linux (Ubuntu 22.04.1 LTS) in a virtual machine". It may well be the virtualization layer of the USB that is the actual issue. Given the environment may be the actually issue, I would conclude I will leave this for a couple of days for anyone to add comments. |
Thanks for the update! |
My environment is Lubuntu 22.04 running in a VMware Workstation 15 image. I feel the issue is partly the VM. There is likely a “cheap USB-UART” complicating the situation. The second use, after starting up the VM is nearly always a problem. Some combination of |
Thanks - we use VMs for many scenarios but not (yet) relating to hardware tools. |
I've been using pymcuprog in a VM to a USM UART CH340 for a few weeks. The issue occurs frequently but not consistently. Using thus far I do not have a reproducible set of steps. The problem is there but hard to pin down and I cannot say with 100% certainty if it is the VM, pymcuprog, or the intersection of the two. |
Command: `pymcuprog write -t uart -d attiny1616 -u /dev/ttyUSB0 -c 115200 -f firmware.hex --erase --verify
Platform: Linux (Ubuntu 22.04.1 LTS)
UART: CH340-E
Target: ATtiny1616
Behavior: flash completes first time successfully; subsequent attempts fail.
unplugging / pluggin-in the USB-UART accomplish some sort of reset and it will work again, once.
Note: The same test under Windows 10 x64 works every time and does not require the USB-UART to bet manually reset.
The text was updated successfully, but these errors were encountered: