Software Archive
Read-only legacy content
17061 Discussions

Reset of Intel Edison is required to load a new or updated application from Eclipse...

Aaron_N_1
Beginner
935 Views

I am using Eclipse and C/C++ to develop for the Intel Edison. I can successfully download and run an application over the virtual Ethernet over USB, but there appears to be no way to reset the Edison to accept a modified application without doing a full power reset. The Eclipse IDE does not have any obvious way to stop and clear the remote application - as I am used to seeing in other embedded debugging tools. This would be much easier than frequent power resets of the Edison target. Is there a way to do this from Eclipse? Or a  way to do a soft reset without unplugging and re-plugging the Edision?

Thanks,

      Aaron

0 Kudos
1 Solution
Stewart_C_Intel
Employee
935 Views

There are a few ways to accomplish this. I usually have a Linux console connection, either via serial or via SSH. That allows me to kill the running process, in this case the program downloaded by Eclipse, ie by running "ps | grep myprog" where myprog is the name of the executable, and then using kill.

You can also open a console from within Eclipse.

The other option is to add a condition to your program eg a button press or other sensor that makes your program exit gracefully.

But as you found out reset, or a reboot will also work.

View solution in original post

0 Kudos
4 Replies
Stewart_C_Intel
Employee
936 Views

There are a few ways to accomplish this. I usually have a Linux console connection, either via serial or via SSH. That allows me to kill the running process, in this case the program downloaded by Eclipse, ie by running "ps | grep myprog" where myprog is the name of the executable, and then using kill.

You can also open a console from within Eclipse.

The other option is to add a condition to your program eg a button press or other sensor that makes your program exit gracefully.

But as you found out reset, or a reboot will also work.

0 Kudos
Aaron_N_1
Beginner
935 Views

Thanks, killing the process works well.

0 Kudos
Mario_M_
New Contributor I
935 Views

If you run/debug the app from Eclipse, open the console window and use the stop button from there.

3-31-2015 2-13-50 PM.png

0 Kudos
Aaron_N_1
Beginner
935 Views

Thanks everyone. Both of these answers were helpful. The method in Eclipse to kill the running process works great. However, there are cases where the kill button in Eclipse becomes unavailable, so then it becomes necessary to run a console and use "ps" to see the process number and "kill <#>" to stop the process. Thanks again.

-Aaron

 

0 Kudos
Reply