Software Archive
Read-only legacy content
17061 Discussões

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

Aaron_N_1
Principiante
931 Visualizações

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 Solução
Stewart_C_Intel
Funcionário
931 Visualizações

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.

Ver solução na publicação original

4 Respostas
Stewart_C_Intel
Funcionário
932 Visualizações

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.

Aaron_N_1
Principiante
931 Visualizações

Thanks, killing the process works well.

Mario_M_
Novo colaborador I
931 Visualizações

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

Aaron_N_1
Principiante
931 Visualizações

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

 

Responder