As the title, I'd like to reset the Arduino sketch from the linux machine. Is it possible? how?
One solution could be to save the hex file inside the sd card and then upload it via the lua sketch but I think there is a smarter solution.
2 Answers 2
Use command reset-mcu
: it's a linux script that resets the 32u4 via GPIO
According to the Yun schematic, GPIO18 of the SoC is connected to the MCU reset circuitry. Toggling it should allow you to reset the MCU.
-
I lightly understand what are you saying. Any ideas on how practically do it?nkint– nkint2014年08月02日 17:03:36 +00:00Commented Aug 2, 2014 at 17:03
-
Depends on where you are when you want to reset it. C? Python? Shell?Ignacio Vazquez-Abrams– Ignacio Vazquez-Abrams2014年08月02日 17:10:51 +00:00Commented Aug 2, 2014 at 17:10
-
python or shell.. c is only the last resource (I'm not good at C)nkint– nkint2014年08月02日 21:05:33 +00:00Commented Aug 2, 2014 at 21:05
-
linino.org/doku.php?id=wiki:gpioChris Stratton– Chris Stratton2014年08月03日 02:25:34 +00:00Commented Aug 3, 2014 at 2:25