-
Notifications
You must be signed in to change notification settings - Fork 23
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
Prevent MCU from booting between pymcuprog commands? #42
Comments
Hi @nabelekt - unfortunately there is currently no way to prevent the MCU from running. A modern AVR does not always have a RESET line, and its also not known whether the debugger even has control over it. |
Thanks for the suggestion, @xedbg. I finally got around to giving it a go. I tried running this as my first command
But that returned the error here:
I figure I can do this instead:
It makes the programming process longer than I'd like, but it does work. Any particular reason why we can't erase when writing fuses? |
@nabelekt - I think we just did not consider this use-case when adding the --literal write. We can consider this as a feature-request going forward. |
Please do. It would also be great if we could write both fuses and a program in a single command.
This indeed does help quite a bit! |
I run two commands in sequence:
and may add:
I do this very often. My problem is that between the two commands, the previous program starts running. I need it not to. Is there any way to prevent this programmatically, and keep the MCU from booting between commands? I think maybe the RESET line would need to be held LOW?
Thanks for this tool! It is immensely helpful.
The text was updated successfully, but these errors were encountered: