linuxarduinointel-galileo

How to RESET running code on Intel Galileo


I am working on Intel Galileo board(Linux running on board) and using arduino as development environment.

Now on getting a particular gpio pin(say digital pin 6) logic 1, I want to reset my code automatically. I want reset done by running sketch on its own(i.e. I don't have press RESET button).

I am not using SD card Image.

I am unable to interpret how it should be done.


Solution

  • Just add the following line to reset the sketch, without the inconvenience of a board reboot:

    system("./opt/cln/galileo/galileo_sketch_reset_script.sh");