-
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
UPDI initialisation failed - ATTINY402 #62
Comments
Hi! |
@maciejap You are right! that's why I do NOT connect RX of CH340 to 12V. Same error continues to show up... |
In the chapter 30.3.2.2 "UPDI Enable with 12V Override of RESET Pin" in the datasheet for attiny402 is described timings for eneable UPDI by 12V. |
Yes, thanks for pointing it out. Is there any easier way to be able to use UPDI? |
For now You can use pyUPDI when pin UPDI is not configured as gpio (when is fused as !RESET, 12V is not required). |
OK, but that's an issue still. I run pyUPDI after a power on (RX of CH340 is connected to RESET pin) I get the same error logs. |
You are sure that attiny and ch340 is not broken? Do you set on attiny any fuse/lock bits? |
Hi Folks,
Can anyone help me with following error screen shots?
Setup TTL to uart converter: CH340G
TX connected to RX with 4.7K connected to UPDI (PIN6)
VCC of UART & ATT402 shorted to 5V
GND: ATT402 shorted to TTL GND
At power on, connecting a momentary pulse of 12V to UPDI pin and then running following command
command: python pyupdi.py -d tiny402 -f att402.hex -c COM4 -v
result:
INFO:phy Opening COM4 at 115200 baud
INFO:phy send 1 bytes
INFO:phy data: : [0x0]
INFO:link STCS 0x08 to 0x03
INFO:phy send 3 bytes
INFO:phy data: : [0x55, 0xc3, 0x8]
INFO:link STCS 0x80 to 0x02
INFO:phy send 3 bytes
INFO:phy data: : [0x55, 0xc2, 0x80]
INFO:link LDCS from 0x00
INFO:phy send 2 bytes
INFO:phy data: : [0x55, 0x80]
INFO:phy receive : []
INFO:link UPDI not OK - reinitialisation required
INFO:phy Sending double break
INFO:phy Opening COM4 at 115200 baud
INFO:link STCS 0x08 to 0x03
INFO:phy send 3 bytes
INFO:phy data: : [0x55, 0xc3, 0x8]
INFO:link STCS 0x80 to 0x02
INFO:phy send 3 bytes
INFO:phy data: : [0x55, 0xc2, 0x80]
INFO:link LDCS from 0x00
INFO:phy send 2 bytes
INFO:phy data: : [0x55, 0x80]
INFO:phy receive : []
INFO:link UPDI not OK - reinitialisation required
Traceback (most recent call last):
File "pyupdi.py", line 182, in
_main()
File "pyupdi.py", line 95, in _main
nvm = UpdiNvmProgrammer(comport=args.comport,
File "..\pyupdi\updi\nvm.py", line 17, in init
self.application = UpdiApplication(comport, baud, device)
File "..\pyupdi\updi\application.py", line 17, in init
self.datalink = UpdiDatalink(comport, baud)
File "..\pyupdi\updi\link.py", line 32, in init
raise Exception("UPDI initialisation failed")
Exception: UPDI initialisation failed
INFO:phy Closing port 'COM4'
The text was updated successfully, but these errors were encountered: