Your task can be split up in two parts:
- Write a local application which can kill your main application.
To keep the same example as in my first answer, let’s still call this application
- How to start the application
If I got you right part 1 is not an issue, so let’s focus on part 2. There are multiple options:
- If you have access to a USB port or SD card socket, and didn’t disable the AutoRun feature, you can simply create a folder
\AutoRun on a USB drive or SD card, and copy
niraj_kill.exe into this folder.
When you connect this storage to your device,
niraj_kill.exe will be automatically executed.
- You can activate Telnet on your device. Please refer to the following article for details:
Once you have configured it, you can remotely login into your device and start
niraj_kill.exe from the command line.
These two solutions are simple to setup, but open security holes in your device - any application can be executed this way. However, it can be done better:
The Colibri side can then execute
niraj_kill.exe once it was told so by the PC side of your application.
With this approach you can define your own simple protocol, and your Colibri side of the application defines which commands can be executed at all - possibly only