Skip to content

Reset program button #5866

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

Open
mgameiro opened this issue Jan 17, 2017 · 5 comments
Open

Reset program button #5866

mgameiro opened this issue Jan 17, 2017 · 5 comments
Labels
Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix)

Comments

@mgameiro
Copy link

It would be nice to have a button at IDE to reset the program already inside arduino, without upload the code on computer.

@Ivan-Perez
Copy link
Contributor

Ivan-Perez commented Jan 19, 2017

Once you are on the serial monitor, you can reset the device by changing the baud rate (click on the dropdown and select the same baud rate you are using - you don't need to select another baud rate and move back to the previous one). After it the Arduino should have been reset.

@matthijskooijman
Copy link
Collaborator

This isn't possible to implement completely portable right now. Most Arduinos are built so that opening the serial port will reset them, but some (Leonardo) need other prodding to reset. Additionally, third party boards might not support resetting at all. How and if a board is reset is not stored in boards.txt, so I don't think this is as trivial to implement as it sounds. To do it properly, boards.txt would have to get a new property "reset_method" or something? Not sure if this is something anyone wants to invest time in, though.

@matthijskooijman matthijskooijman added Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix) labels Jan 19, 2017
@agdl
Copy link
Member

agdl commented Jan 19, 2017

@Ivan-Perez actually on boards with an USB2Serial bridge like UNO, Zero (Programming Port) if you press the reset button on the board you see again the code from the start, but in boards like MKR1000, Leonardo this is not possible because the USB is re-enumerated so you loose the USB connection since that serial port is busy

@mgameiro
Copy link
Author

Thank you for responding.
I though that resetting Serial connection would reset program for all Arduino boards, making it easier to do so. If it doesn't, maybe it really is a little more complicated than that.
Anyway, a button to close and open again Serial connection could also be useful, and even used like this for most cases.

@alexceltare2
Copy link

alexceltare2 commented Apr 9, 2019

I also support the idea. A dedicated button on Arduino IDE to send a reset pulse to the target board will definitely be a great idea since there's a lot of room in the buttons area to use besides Verify, Upload, New Open and Save.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

No branches or pull requests

5 participants