-
Notifications
You must be signed in to change notification settings - Fork 73
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
AtTiny404 link UPDI not OK Reinitialization required #66
Comments
python3 pyupdi.py -v -d tiny404 -c /dev/ttyUSB0 -b 115200 -f /home/pi/Desktop/test.hex |
any chance you have access to a scope to see what's happening on the tx/rx lines? :| |
Hmmm - maybe you should install a pullup? |
Actually I just realized I had swapped the pins for GND and 3V3.. So the output is inverted |
Looks like the double-break, which is used to "recover" once an error is suspected - any sign of the LDCS/STCS? |
I am not sure of the lingo. but I do know that before the double break I do see some peaks. so something is going across the tx terminal. Then the double break. and after that a couple of peaks again. |
Yes, this is a typical try-doublebreak-retry dialog. |
FYI - you might want to try and adjust the trigger to catch one of those shorter negative-pulses as they contain more edges than you can see there, but:
|
I'm 100% sure it is not set to reset/gpio. |
OK. Last question before I sign off:
|
You are definitely right. it is 320mV |
No progress? Been able to catch any frames on the UPDI side (not TX pin)? |
Nothing from UPDI. Right now I'm at the point of giving up on the PyUPDI and going for the Pi->Nano->Tiny via jtag2updi |
Best do what works for you. |
Yup, I tried both methods. Serial GPIO and usb2serial. |
can you capture and post the UPDI init sequence - not the double break - it should consist of about 3 short frames starting with a SYNC on each. |
So I get 3 negative peaks. then the double break. then sometimes 2 sometimes 3 peaks. Maybe its always 3, I just cant see it some times |
I know this issue has been raised for different devices, but I feel in my case I have a different condition.
I am using a Raspberry Pi and a FT232R USB UART adapter. The Tiny does not have the UPDI pin configured as an i/o pin. Yet it keeps giving me the error that it failed to be initialized.
I have tried both the GPIO serial and USB2TTL. I changed the GPIO setup according to the link too. but no success.
My terminal output is
python3 pyupdi.py -v -d tiny404 -c /dev/ttyUSB0 -b 115200 -f /home/pi/Desktop/test.hex INFO:phy Opening /dev/ttyUSB0 at 115200 baud INFO:phy send : [0x0] INFO:link STCS to 0x03 INFO:phy send : [0x55, 0xc3, 0x8] INFO:link STCS to 0x02 INFO:phy send : [0x55, 0xc2, 0x80] INFO:link LDCS from 0x00 INFO:phy send : [0x55, 0x80] INFO:phy receive : [] INFO:link UPDI not OK - reinitialisation required INFO:phy Sending double break INFO:phy Opening /dev/ttyUSB0 at 115200 baud INFO:link STCS to 0x03 INFO:phy send : [0x55, 0xc3, 0x8] INFO:link STCS to 0x02 INFO:phy send : [0x55, 0xc2, 0x80] INFO:link LDCS from 0x00 INFO:phy send : [0x55, 0x80] INFO:phy receive : [] INFO:link UPDI not OK - reinitialisation required Traceback (most recent call last): File "pyupdi.py", line 178, in <module> _main() File "pyupdi.py", line 95, in _main device=Device(args.device)) File "/home/pi/Downloads/pyupdi-master/updi/nvm.py", line 17, in __init__ self.application = UpdiApplication(comport, baud, device) File "/home/pi/Downloads/pyupdi-master/updi/application.py", line 17, in __init__ self.datalink = UpdiDatalink(comport, baud) File "/home/pi/Downloads/pyupdi-master/updi/link.py", line 31, in __init__ raise Exception("UPDI initialisation failed") Exception: UPDI initialisation failed INFO:phy Closing /dev/ttyUSB0
Any help or suggestions will be greatly appreciated.
The text was updated successfully, but these errors were encountered: