Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 17366

Re: Intel Edison + Arduino Breakboard -- Eclipse Kepler

$
0
0

Hi Guys, not sure what the question is?

 

The Arduino system is setup, that it puts the compiled sketch into the /sketch directory.  Paralytically as /sketch/sketch.elf  As already mentioned there is system control (the launcher) that will start up that app at system startup time and also when the Arduino system downloads a new program to run.

 

When I don't want it to run, I simply remove that app. I also have a sledgehammer Arduino sketch I keep around for doing that:

void setup() {  // put your setup code here, to run once:  delay(2000);  Serial.begin(1152000);  Serial.println("Kill the program");  system ("cp -f /tmp/log* /home/root/");  system ("mv -f /sketch/sketch.elf /sketch/sketch.elf.old");  //system("rm \/sketch\/\*");  delay(500);  system("reboot");
}

void loop() {
  // put your main code here, to run repeatedly:  
}

Some reason the paste did in clude the final } line,   Again this one I use when things are not going right.  It keeps the temporary log files that Arduino creates when the program runs, it renames the sketch  and reboots the processor...


Viewing all articles
Browse latest Browse all 17366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>