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

Re: Intel Edison + Arduino Breakboard -- Eclipse Kepler

$
0
0

Hi, I plugged my Arduino breakboard and LED IO11 starts blinking (just like yesterday with cross-compiled file) after booting Yocto Linux  althoug there is no 04_cpp_onboard_LED_blink file in /tmp. I have checked there is a launch process running on background but I could not find where is the boot configuration file since there is no /etc/init.c or /etc/rc netiher a crontab conf. files for this Linux kernel. In fact, I got persistent data in memoey without making any physical copy of cross-compiled file.


On the other hand, I have tried to kill the app using the sketch reset command but nothings happened, the LED gone on blinking

root@Edison:/opt/edison# ls -lart

-rwxr-xr-x    1 root    root            58 Oct  9 09:26 sketch_reset.sh

-rwxr-xr-x    1 root    root          341 Oct  9 09:26 launcher.sh

-rwxr-xr-x    1 root    root          5896 Oct  9 09:27 sketch_reset

-rwxr-xr-x    1 root    root        48676 Oct  9 09:27 clloader

drwxr-xr-x    2 root    root          4096 Oct 14 13:32 .

drwxr-xr-x    4 root    root          4096 Nov 20 17:03 ..

root@Edison:/opt/edison#

root@Edison:/opt/edison# sh sketch_reset.sh

root@Edison:/opt/edison#


However I used  kill command to stop the application:

root@Edison:/opt/edison# ps | grep launcher.sh

  165 root      2412 S    {launcher.sh} /bin/sh /opt/edison/launcher.sh

  293 root      2420 S    grep launcher.sh

root@Edison:/opt/edison#

root@Edison:/opt/edison# kill 165

root@Edison:/opt/edison#

 

So, I could stopped the blinking LED by killing the process

root@Edison:/opt/edison# sh sketch_reset.sh

killall: clloader: no process killed

killall: clloader: no process killed

root@Edison:/opt/edison#

 

I have repeteaded the process but running the blinking program first and then killing it with sketch reset command and this time , it worked.

 

root@Edison:/opt/edison# sh launcher.sh

Opened /dev/ttyGS0 as inputOpened /dev/ttyGS0 as outputSketch child process sta

rted, pid=0301

Starting /sketch/sketch.elf /dev/pts/0 ▒▒Ç

^C

root@Edison:/opt/edison#

 

root@Edison:/opt/edison# sh sketch_reset.sh

signal- hup  signal rxed.. go back to wait for command ...

critical fault during select errno=4HUP or CHLDTERM Received, Change state to wait for command from host

Going to kill child process:pid 301

Waiting for terminated child process:pid 301

signal- child ignore  signal rxed

/opt/edison/clloader: caught signal 15; exiting

root@Edison:/opt/edison#


Viewing all articles
Browse latest Browse all 17366

Trending Articles



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