How to reset Yun board

Hi All,

Apologies if this is a really stupid question but I can't seem to find an answer...

All I want to do is to reset the entire Yun board! On the Uno, I press the reset button and the effect is powering off the board and powering it back on. However, when I press any of the reset buttons on the Yun it seems to only reset a particular IC so the effect isn't what I want. I even tried pressing all three at once...! My code consists of setup where I call three functions and loop where I do nothing. I want to use reset so that I can run the setup again and again to check the results I'm getting. I do not want to use loop() for this.

Has anyone got a solution for this?

Thanks,
Hester

P.S. When I open the serial monitor the board is also not reset so unless I open it up as soon as I plug the Yun in, I miss everything that's happening! I assume this is not supposed to happen...

nano /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

wifi-live-or-reset
boot-complete-notify

#reset-mcu

exit 0

uncomment reset-mcu will make reset arduino/mcu once reset cpu AR9331.

What do you mean by nano /etc/rc.local, is this a file in a library somewhere?

chestnutHester:
What do you mean by nano /etc/rc.local, is this a file in a library somewhere?

this line starts the text editor called "nano" to edit the file "/etc/rc.local" with the changes he outlined in the second box...

Ralf

chestnutHester, that is a command line tool. In order to run it, you should connect to your yun using an SSH client. On windows, you should use putty
Once you see a "prompt" like the one shown in this tutorial, you can type the command suggested by sonnyyu and customize that file

Ah OK thanks for explaining that Federico! I'll give that a go :slight_smile: