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

Where exactly does the UPDI transmission start and end in the code? #38

Open
mikrocoder opened this issue Jun 19, 2020 · 2 comments
Open

Comments

@mikrocoder
Copy link

Hello,

first of all, thanks for maintaining the code. However, it is difficult to keep track of the flow of the actual code. :-) So I have to ask where in the code does the UPDI transmission start and end exactly?

I moved the switching on and off of the programming led.
I moved "on" to the beginning of enter_progmode() and "off" to the end of go(). But the beginning of the transmission is still missing.

Where exactly does the UPDI transmission start and end?

https://www.directupload.net/file/d/5855/hz7c22vr_png.htm

@ElTangas
Copy link
Owner

There is a variable meant to keep track of that, JTAG2::ConnectedTo bit 0 is a flag that is set when UPDI is transmitting, cleared when not.
Anyway, the first time UPDI is used is in the JTAG2::set_device_descriptor() function, and the last is JTAG2::go() but I think the best way to keep track is the flag I mentioned.

@mikrocoder
Copy link
Author

Thank you very much.

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

2 participants