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

UPDI not OK - reinitialisation required #57

Open
2ni opened this issue Jun 10, 2020 · 0 comments
Open

UPDI not OK - reinitialisation required #57

2ni opened this issue Jun 10, 2020 · 0 comments

Comments

@2ni
Copy link

2ni commented Jun 10, 2020

Hi
I'm using a CH330N as serial chip an connected rxd and txd with a 4.7k resistor as described.
When communicating with the attiny3217 over pyupdi it always needs to reinitialize no matter what baud rate. The 2nd attempt always works, but it makes the process to flash quite slow.
Any hints what I could try?
Here the output:

INFO:phy Opening /dev/cu.wchusbserial1430 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 /dev/cu.wchusbserial1430 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 : [0x40]
INFO:link UPDI init OK
...
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

1 participant