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

CMD_SIGN_ON / bootloader has timeout. #3

Open
soldair opened this issue Dec 16, 2014 · 2 comments
Open

CMD_SIGN_ON / bootloader has timeout. #3

soldair opened this issue Dec 16, 2014 · 2 comments

Comments

@soldair
Copy link
Collaborator

soldair commented Dec 16, 2014

i think the boot loader defines a timeout where if it doesn't get commands for x seconds it signs out.

without knowing this timeout we are stuck in a world where random delays in sending commands could cause the bootloader to stop stk500 and resume normal serial. to the user this would look like stk500 timeouts forever. i have had this issue with avrdude.

we need to keep track of this timeout and make sure that the bootloader is in stk500 mode when commands are sent. ideally we keep track of programming mode and page offset so we can reset state as if nothing happened if the bootloader signs out.

@andrewjaykeller
Copy link

How do I make the timeout longer than 5000ms?

@soldair
Copy link
Collaborator Author

soldair commented Jan 24, 2017

this is defined by the bootloader on the chip. probably not something the applies directly to you becaudse you are using a completely different board. :)

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