Thanks for reaching out!
How long does it take your Edison to crash using the example you posted above? I tested it on my Edison for several minutes, powering it through the power jack as you mentioned, and I never saw it fail.
This might be an issue with the image on your board, so, I suggest you to flash it again to the latest version (which can be found in https://downloadmirror.intel.com/26028/eng/iot-devkit-prof-dev-image-edison-20160606.zip) and try again to see if the issue persists.
Let me know.
Hello Peter. Thank you very much for the response.
Yesterday I passed the whole evening installing again the last version of the image (201606061707), from the same link that you have indicated me.
For it I used the application Intel Edison Board Configuration Tool. I followed 4 steps: repairs "USB driver installed", "Flash firmware", "Change password", and "Change Wifi"
Then, I followed the steps indicated in this link (Procedure to Autostart the Arduino Sketch on Edison | Intel® Software ) in order that the sketch should begin. I had not read the comments in this link, I'm sorry, and I have exactly the same mistake that they describe. The scketch lasts only 5 minutes. I just saw that in this link they also talk about the problem.Run Arduino sketch on boot Workaround
I copied the files that they describe in the zip file of the last link (https://dl.dropboxusercontent.com/u/13635196/clloader.zip) but the scketch stops for 5 minutes too.
The code that I put lasts more than 5 minutes in your intel edison and powering it through the power jack?
Sorry for starting a new thread about this problem.
Don't worry, we are glad to help!
Yes, as you can see in the screenshots below I started the sketch at 7:51 and at 9:06 it was still running.
I have seen some issues similar to what you describe, the workaround I have found is to flash a previous version of the image (like https://downloadmirror.intel.com/25871/eng/iot-devkit-prof-dev-image-edison-20160315.zip) and then going back to the latest. Could you please try this? Also, please use the flashall method to do so. In case you are not aware of the flashall method, you can find instructions on how to do it in https://communities.intel.com/docs/DOC-25154.
Let us know.
Hello Peter. Thank you for the help and your time.
I have followed the steps that you advise: I have installed a previous version of the image (iot-devkit-prof-dev-image-edison-20160315.zip) and later I have installed the last version (iot-devkit-prof-dev-image-edison-20160606).
Next, I have followed the steps indicated in this link in order that the sketch should be executed automatically, but the sketch was stopping to 5 minutes also.
Next, I have proved one of the options that was indicated in this link: to return to the version image 146 (ww18-15) And once realized the configuration in order that the sketch is executed automatically, this time was not stopping the sketch after being working any more than 7 hours!
It has surprised me that in the older version, the folder etc/init.d has more files that in the last version (20160606)
I would like to have the last version, so I will prove the steps that are indicated initially of this link , but I will not be able to realize it up to the weekend. When it does it I will indicate if it has worked these steps or not.
At the moment, that the sketch is not closed already it is a good advance.
Thanks to all.
I'm glad to hear that what you tried made the sketch not stop. Please continue with your tests and keep us updated on this. And if you have any doubts, we'll be more than glad to help in any way we can.
Hi Peter. I have proved the steps indicated in the beginning of this link: but using the version ww18-15 first and the last version 20160606 in the fifth step.
In the step 2, after copying the files (launcher.sh, clloader, sketch_reset, sketch_reset.sh), have given them permission of execution, because when I copied them it did not have these permissions (I think that this one is the key).
Later I had copied my sketch and have followed the steps in this link to allow the execution of my sketch on having restarted my edison. And after more than one hour the sketch continues working, has not stopped!
And I have the last version of the image installed in my edison.
Thank you very much for the help .
Thank you for sharing the steps you took to fix your Edison with the community. These steps will be of much help for other users.
Please don't hesitate to come back to the community whenever you have any other issue or doubt.